mirror of
https://github.com/gravitational/teleport
synced 2024-10-19 08:43:58 +00:00
126 lines
4.9 KiB
Go
126 lines
4.9 KiB
Go
//go:build e_imports && !e_imports
|
|
|
|
// Copyright 2022 Gravitational, Inc
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package teleport
|
|
|
|
// This file should import all non-stdlib, non-teleport packages that are
|
|
// imported by any package in ./e/, so tidying that doesn't have access to
|
|
// teleport.e (like Dependabot) doesn't wrongly remove the modules that the
|
|
// imported packages belong to.
|
|
|
|
// Remember to check that e is up to date and that there is not a go.work file
|
|
// before running the following command to generate the import list. The list of
|
|
// tags that might be needed in e (currently only "piv") can be extracted with a
|
|
// (cd e && git grep //go:build).
|
|
|
|
// TODO(espadolini): turn this into a lint (needs access to teleport.e in CI and
|
|
// ideally a resolution to https://github.com/golang/go/issues/42504 )
|
|
|
|
/*
|
|
go list -f '
|
|
{{- range .Imports}}{{println .}}{{end -}}
|
|
{{- range .TestImports}}{{println .}}{{end -}}
|
|
{{- range .XTestImports}}{{println .}}{{end -}}
|
|
' -tags piv ./e/... |
|
|
sort -u |
|
|
xargs go list -find -f '{{if (and
|
|
(not .Standard)
|
|
(ne .Module.Path "github.com/gravitational/teleport")
|
|
)}}{{printf "\t_ \"%v\"" .ImportPath}}{{end}}'
|
|
*/
|
|
|
|
import (
|
|
_ "github.com/alecthomas/kingpin/v2"
|
|
_ "github.com/beevik/etree"
|
|
_ "github.com/bufbuild/connect-go"
|
|
_ "github.com/coreos/go-oidc/jose"
|
|
_ "github.com/coreos/go-oidc/oauth2"
|
|
_ "github.com/coreos/go-oidc/oidc"
|
|
_ "github.com/crewjam/saml"
|
|
_ "github.com/crewjam/saml/samlsp"
|
|
_ "github.com/go-piv/piv-go/piv"
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
_ "github.com/gogo/protobuf/proto"
|
|
_ "github.com/google/go-attestation/attest"
|
|
_ "github.com/google/go-cmp/cmp"
|
|
_ "github.com/google/go-cmp/cmp/cmpopts"
|
|
_ "github.com/google/go-tpm-tools/simulator"
|
|
_ "github.com/google/uuid"
|
|
_ "github.com/gravitational/form"
|
|
_ "github.com/gravitational/license"
|
|
_ "github.com/gravitational/roundtrip"
|
|
_ "github.com/gravitational/trace"
|
|
_ "github.com/gravitational/trace/trail"
|
|
_ "github.com/jonboulle/clockwork"
|
|
_ "github.com/julienschmidt/httprouter"
|
|
_ "github.com/mitchellh/mapstructure"
|
|
_ "github.com/okta/okta-sdk-golang/v2/okta"
|
|
_ "github.com/okta/okta-sdk-golang/v2/okta/query"
|
|
_ "github.com/pquerna/otp/totp"
|
|
_ "github.com/russellhaering/gosaml2"
|
|
_ "github.com/russellhaering/gosaml2/types"
|
|
_ "github.com/russellhaering/goxmldsig"
|
|
_ "github.com/sijms/go-ora/v2"
|
|
_ "github.com/sirupsen/logrus"
|
|
_ "github.com/stretchr/testify/assert"
|
|
_ "github.com/stretchr/testify/require"
|
|
_ "github.com/vulcand/predicate"
|
|
_ "golang.org/x/crypto/bcrypt"
|
|
_ "golang.org/x/exp/maps"
|
|
_ "golang.org/x/exp/slices"
|
|
_ "golang.org/x/mod/semver"
|
|
_ "golang.org/x/net/html"
|
|
_ "golang.org/x/oauth2"
|
|
_ "golang.org/x/oauth2/google"
|
|
_ "golang.org/x/sync/errgroup"
|
|
_ "golang.org/x/time/rate"
|
|
_ "google.golang.org/api/admin/directory/v1"
|
|
_ "google.golang.org/api/cloudidentity/v1"
|
|
_ "google.golang.org/api/option"
|
|
_ "google.golang.org/genproto/googleapis/rpc/status"
|
|
_ "google.golang.org/grpc"
|
|
_ "google.golang.org/grpc/codes"
|
|
_ "google.golang.org/grpc/credentials"
|
|
_ "google.golang.org/grpc/credentials/insecure"
|
|
_ "google.golang.org/grpc/status"
|
|
_ "google.golang.org/grpc/test/bufconn"
|
|
_ "google.golang.org/protobuf/proto"
|
|
_ "google.golang.org/protobuf/testing/protocmp"
|
|
_ "google.golang.org/protobuf/types/known/emptypb"
|
|
_ "google.golang.org/protobuf/types/known/fieldmaskpb"
|
|
_ "google.golang.org/protobuf/types/known/timestamppb"
|
|
_ "gopkg.in/check.v1"
|
|
_ "k8s.io/apimachinery/pkg/util/yaml"
|
|
|
|
_ "github.com/gravitational/teleport/api/breaker"
|
|
_ "github.com/gravitational/teleport/api/client"
|
|
_ "github.com/gravitational/teleport/api/client/proto"
|
|
_ "github.com/gravitational/teleport/api/client/webclient"
|
|
_ "github.com/gravitational/teleport/api/constants"
|
|
_ "github.com/gravitational/teleport/api/defaults"
|
|
_ "github.com/gravitational/teleport/api/gen/proto/go/attestation/v1"
|
|
_ "github.com/gravitational/teleport/api/gen/proto/go/teleport/devicetrust/v1"
|
|
_ "github.com/gravitational/teleport/api/gen/proto/go/teleport/loginrule/v1"
|
|
_ "github.com/gravitational/teleport/api/gen/proto/go/teleport/plugins/v1"
|
|
_ "github.com/gravitational/teleport/api/gen/proto/go/teleport/samlidp/v1"
|
|
_ "github.com/gravitational/teleport/api/types"
|
|
_ "github.com/gravitational/teleport/api/types/events"
|
|
_ "github.com/gravitational/teleport/api/types/wrappers"
|
|
_ "github.com/gravitational/teleport/api/utils"
|
|
_ "github.com/gravitational/teleport/api/utils/keys"
|
|
_ "github.com/gravitational/teleport/api/utils/retryutils"
|
|
)
|