repo_name stringlengths 1 52 | repo_creator stringclasses 6
values | programming_language stringclasses 4
values | code stringlengths 0 9.68M | num_lines int64 1 234k |
|---|---|---|---|---|
eks-anywhere | aws | Go | package cmd
import (
"context"
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
)
type listImagesOptions struct {
fileName string
bundlesOverride string
}
var lio = &listImagesOptions{}
func init() {
listCmd.AddCommand(listImagesCommand)
listImagesCommand.Flag... | 60 |
eks-anywhere | aws | Go | package cmd
import (
"context"
"fmt"
"log"
"strings"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"golang.org/x/text/cases"
"golang.org/x/text/language"
"sigs.k8s.io/yaml"
eksav1alpha1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/cluster"
... | 107 |
eks-anywhere | aws | Go | package cmd
import (
"context"
"fmt"
"os"
"github.com/spf13/cobra"
"github.com/aws/eks-anywhere/pkg/curatedpackages"
"github.com/aws/eks-anywhere/pkg/kubeconfig"
)
type listPackagesOption struct {
kubeVersion string
clusterName string
registry string
// kubeConfig is an optional kubeconfig file to use ... | 82 |
eks-anywhere | aws | Go | package cmd
import (
"fmt"
"os"
"path/filepath"
"strings"
"time"
"github.com/spf13/pflag"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/cluster"
"github.com/aws/eks-anywhere/pkg/clustermanager"
"github.com/aws/eks-anywhere/pkg/config"
"github.com/aws/eks-anywhere/pkg/depe... | 214 |
eks-anywhere | aws | Go | package cmd
import (
"context"
"fmt"
"log"
"os"
"path/filepath"
"time"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/aws/eks-anywhere/pkg/logger"
)
var rootCmd = &cobra.Command{
Use: "anywhere",
Short: "Amazon EKS Anywhere",
Long: `Use eksctl anywhere ... | 72 |
eks-anywhere | aws | Go | package cmd
import (
"context"
"fmt"
"log"
"time"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"github.com/aws/eks-anywhere/pkg/dependencies"
"github.com/aws/eks-anywhere/pkg/diagnostics"
"github.com/aws/eks-anywhere/pkg/kubeconfig"
"github.com/aws/eks-anywhere/pkg/version"
)... | 123 |
eks-anywhere | aws | Go | package cmd
import (
"github.com/spf13/cobra"
)
var upgradeCmd = &cobra.Command{
Use: "upgrade",
Short: "Upgrade resources",
Long: "Use eksctl anywhere upgrade to upgrade resources, such as clusters",
}
func init() {
rootCmd.AddCommand(upgradeCmd)
}
| 16 |
eks-anywhere | aws | Go | package cmd
import (
"context"
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/dependencies"
"github.com/aws/eks-anywhere/pkg/kubeconfig"
"github.com/aws/eks-anywhere/pkg/types"
"github.com/aws/eks-anywhere/pkg/validations"
"github.com/aw... | 184 |
eks-anywhere | aws | Go | package cmd
import (
"context"
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/aws/eks-anywhere/pkg/curatedpackages"
"github.com/aws/eks-anywhere/pkg/kubeconfig"
)
type upgradePackageOptions struct {
bundleVersion string
// kubeConfig is an optional kubeconfig file to use when querying an
// existing clus... | 78 |
eks-anywhere | aws | Go | package cmd
import (
"github.com/spf13/cobra"
)
var upgradePlanCmd = &cobra.Command{
Use: "plan",
Short: "Provides information for a resource upgrade",
Long: "Use eksctl anywhere upgrade plan to get information for a resource upgrade",
}
func init() {
upgradeCmd.AddCommand(upgradePlanCmd)
}
| 16 |
eks-anywhere | aws | Go | package cmd
import (
"bytes"
"context"
"encoding/json"
"fmt"
"log"
"text/tabwriter"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
capiupgrader "github.com/aws/eks-anywhere/pkg/clusterapi"
eksaupgrader "github.com/aws/eks-anywhere/pkg/clustermanager"
"github.com/aws/eks-anywhe... | 163 |
eks-anywhere | aws | Go | package cmd
import (
"github.com/spf13/cobra"
)
var validateCmd = &cobra.Command{
Use: "validate",
Short: "Validate resource or action",
Long: "Use eksctl anywhere validate to validate a resource or action",
}
func init() {
expCmd.AddCommand(validateCmd)
}
| 16 |
eks-anywhere | aws | Go | package cmd
import (
"github.com/spf13/cobra"
)
var validateCreateCmd = &cobra.Command{
Use: "create",
Short: "Validate create resources",
Long: "Use eksctl anywhere validate create to validate the create action on resources, such as cluster",
}
func init() {
validateCmd.AddCommand(validateCreateCmd)
}
| 16 |
eks-anywhere | aws | Go | package cmd
import (
"log"
"os"
"github.com/spf13/cobra"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/dependencies"
"github.com/aws/eks-anywhere/pkg/kubeconfig"
"github.com/aws/eks-anywhere/pkg/types"
"github.com/aws/eks-anywhere/pkg/validations"
"github.com/aws/eks-anywhe... | 107 |
eks-anywhere | aws | Go | package cmd
import (
"context"
"fmt"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/executables"
"github.com/aws/eks-anywhere/pkg/validations"
)
func commonValidation(ctx context.Context, clusterConfigFile string) (*v1alpha1.Cluster, error) {
docker := executables.BuildDockerEx... | 29 |
eks-anywhere | aws | Go | package cmd
import (
"fmt"
"github.com/spf13/cobra"
"github.com/aws/eks-anywhere/pkg/version"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "Get the eksctl anywhere version",
Long: "This command prints the version of eksctl anywhere",
RunE: func(cmd *cobra.Command, args []string) error {
ret... | 28 |
eks-anywhere | aws | Go | package cmd
import (
"github.com/spf13/cobra"
)
var vsphereCmd = &cobra.Command{
Use: "vsphere",
Short: "Utility vsphere operations",
Long: "Use eksctl anywhere vsphere to perform utility operations on vsphere",
}
func init() {
expCmd.AddCommand(vsphereCmd)
}
| 16 |
eks-anywhere | aws | Go | package cmd
import (
"github.com/spf13/cobra"
)
var vsphereSetupCmd = &cobra.Command{
Use: "setup",
Short: "Setup vSphere objects",
Long: "Use eksctl anywhere vsphere setup to configure vSphere objects",
}
func init() {
vsphereCmd.AddCommand(vsphereSetupCmd)
}
| 16 |
eks-anywhere | aws | Go | package cmd
import (
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/aws/eks-anywhere/pkg/dependencies"
"github.com/aws/eks-anywhere/pkg/providers/vsphere/setupuser"
)
type vSphereSetupUserOptions struct {
fileName string
force bool
password string
}
var setupUserOptions = &vSphereSetupUserOptions{}
v... | 83 |
eks-anywhere | aws | Go | package artifacts
import (
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"strings"
"github.com/pkg/errors"
)
const (
realmKey = "realm="
serviceKey = "service="
scopeKey = "scope="
)
type CheckImageExistence struct {
ImageUri string
AuthHeader string
}
type tokenResponse struct {
Token string ... | 119 |
eks-anywhere | aws | Go | package artifacts_test
import (
"context"
"testing"
. "github.com/onsi/gomega"
"github.com/aws/eks-anywhere/cmd/eksctl-anywhere/cmd/internal/commands/artifacts"
)
type checkImageExistenceTest struct {
*WithT
ctx context.Context
command *artifacts.CheckImageExistence
}
func newCheckImageExistenceTest(t *... | 53 |
eks-anywhere | aws | Go | package artifacts
import (
"context"
"fmt"
"os"
"github.com/aws/eks-anywhere/pkg/files"
"github.com/aws/eks-anywhere/pkg/logger"
"github.com/aws/eks-anywhere/pkg/manifests/bundles"
"github.com/aws/eks-anywhere/pkg/version"
releasev1 "github.com/aws/eks-anywhere/release/api/v1alpha1"
)
type Reader interface {... | 123 |
eks-anywhere | aws | Go | package artifacts_test
import (
"context"
"errors"
"os"
"testing"
"github.com/golang/mock/gomock"
. "github.com/onsi/gomega"
"github.com/aws/eks-anywhere/cmd/eksctl-anywhere/cmd/internal/commands/artifacts"
"github.com/aws/eks-anywhere/cmd/eksctl-anywhere/cmd/internal/commands/artifacts/mocks"
"github.com/a... | 130 |
eks-anywhere | aws | Go | package artifacts
import (
"context"
"fmt"
"os"
releasev1 "github.com/aws/eks-anywhere/release/api/v1alpha1"
)
type Import struct {
Reader Reader
Bundles *releasev1.Bundles
ImageMover ImageMover
ChartImporter ChartImporter
TmpArtifactsFolder string
FileImporter Fil... | 52 |
eks-anywhere | aws | Go | package artifacts_test
import (
"context"
"os"
"testing"
"github.com/golang/mock/gomock"
. "github.com/onsi/gomega"
"github.com/aws/eks-anywhere/cmd/eksctl-anywhere/cmd/internal/commands/artifacts"
"github.com/aws/eks-anywhere/cmd/eksctl-anywhere/cmd/internal/commands/artifacts/mocks"
releasev1 "github.com/a... | 99 |
eks-anywhere | aws | Go | package artifacts
import (
"context"
"fmt"
"os"
"github.com/aws/eks-anywhere/pkg/logger"
releasev1 "github.com/aws/eks-anywhere/release/api/v1alpha1"
)
type ImportToolsImage struct {
Bundles *releasev1.Bundles
ImageMover ImageMover
UnPackager UnPackager
InputFile string
... | 42 |
eks-anywhere | aws | Go | package artifacts_test
import (
"context"
"os"
"testing"
"github.com/golang/mock/gomock"
. "github.com/onsi/gomega"
"github.com/aws/eks-anywhere/cmd/eksctl-anywhere/cmd/internal/commands/artifacts"
"github.com/aws/eks-anywhere/cmd/eksctl-anywhere/cmd/internal/commands/artifacts/mocks"
releasev1 "github.com/a... | 71 |
eks-anywhere | aws | Go | package artifacts
import (
"context"
releasev1 "github.com/aws/eks-anywhere/release/api/v1alpha1"
)
type Noop struct{}
func (*Noop) Download(ctx context.Context, bundles *releasev1.Bundles) {}
func (*Noop) Push(ctx context.Context, bundles *releasev1.Bundles) {}
| 14 |
eks-anywhere | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: cmd/eksctl-anywhere/cmd/internal/commands/artifacts/download.go
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
v1alpha1 "github.com/aws/eks-anywhere/release/api/v1alpha1"
gomock "github.com/golang/mo... | 237 |
eks-anywhere | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: cmd/eksctl-anywhere/cmd/internal/commands/artifacts/import.go
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
v1alpha1 "github.com/aws/eks-anywhere/release/api/v1alpha1"
gomock "github.com/golang/mock... | 91 |
eks-anywhere | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: cmd/eksctl-anywhere/cmd/internal/commands/artifacts/import_tools_image.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockUnPackager is a mock of UnPackager interface.
typ... | 49 |
eks-anywhere | aws | Go | package main
import (
"os"
"github.com/aws/eks-anywhere/cmd/integration_test/cmd"
)
func main() {
if cmd.Execute() == nil {
os.Exit(0)
}
os.Exit(-1)
}
| 15 |
eks-anywhere | aws | Go | package cmd
import (
"github.com/spf13/cobra"
)
var cleanUpInstancesCmd = &cobra.Command{
Use: "cleanup",
Short: "Clean up e2e resources",
Long: "Clean up resources created for e2e testing",
}
func init() {
integrationTestCmd.AddCommand(cleanUpInstancesCmd)
}
| 16 |
eks-anywhere | aws | Go | package cmd
import (
"context"
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"github.com/aws/eks-anywhere/internal/test/cleanup"
"github.com/aws/eks-anywhere/pkg/logger"
)
const (
maxAgeFlagName = "max-age"
tagFlagName = "tag"
)
var cleanUpAwsCmd = &cobra.Comma... | 72 |
eks-anywhere | aws | Go | package cmd
import (
"context"
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"github.com/aws/eks-anywhere/internal/test/cleanup"
"github.com/aws/eks-anywhere/pkg/logger"
)
var cleanUpCloudstackCmd = &cobra.Command{
Use: "cloudstack",
Short: "Clean u... | 62 |
eks-anywhere | aws | Go | package cmd
import (
"context"
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"github.com/aws/eks-anywhere/internal/test/cleanup"
"github.com/aws/eks-anywhere/pkg/logger"
)
const (
clusterNameFlagName = "cluster-name"
)
var cleanUpVsphereCmd = &cobra.Command{
Use: ... | 66 |
eks-anywhere | aws | Go | package cmd
import (
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/aws/eks-anywhere/pkg/logger"
)
var rootCmd = &cobra.Command{
Use: "integration_test",
Short: "Integration test",
Long: `Run integration test`,
PersistentPreRun: rootPersistentP... | 46 |
eks-anywhere | aws | Go | package cmd
import (
"context"
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"github.com/aws/eks-anywhere/internal/test/e2e"
"github.com/aws/eks-anywhere/pkg/logger"
)
const (
storageBucketFlagName = "storage-bucket"
jobIdFlagName = "job-id"
inst... | 120 |
eks-anywhere | aws | Go | package cmd
import (
"github.com/spf13/cobra"
)
var integrationTestCmd = &cobra.Command{
Use: "e2e",
Short: "Integration test",
Long: "Run integration test on eks-d",
}
func init() {
rootCmd.AddCommand(integrationTestCmd)
}
| 16 |
eks-anywhere | aws | Go | package controllers
import (
"context"
"fmt"
"github.com/go-logr/logr"
kerrors "k8s.io/apimachinery/pkg/util/errors"
"sigs.k8s.io/cluster-api/util/patch"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aw... | 99 |
eks-anywhere | aws | Go | package controllers_test
import (
"context"
"errors"
"testing"
"time"
"github.com/golang/mock/gomock"
. "github.com/onsi/gomega"
apiv1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/cli... | 326 |
eks-anywhere | aws | Go | package controllers
import (
"context"
"fmt"
"time"
"github.com/go-logr/logr"
"github.com/pkg/errors"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
kerrors "k8s.io/apimachinery/pkg/util/errors"
clusterv1 "sigs.k8s.io/cluster-api/... | 557 |
eks-anywhere | aws | Go | package controllers_test
import (
"context"
"fmt"
"strings"
"testing"
"time"
"github.com/go-logr/logr"
"github.com/go-logr/logr/testr"
"github.com/golang/mock/gomock"
. "github.com/onsi/gomega"
apiv1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/m... | 1,578 |
eks-anywhere | aws | Go | package controllers_test
import (
"context"
"errors"
"testing"
"github.com/go-logr/logr"
"github.com/golang/mock/gomock"
. "github.com/onsi/gomega"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/contro... | 413 |
eks-anywhere | aws | Go | package controllers
import (
"sigs.k8s.io/controller-runtime/pkg/client"
)
// DockerDatacenterReconciler reconciles a DockerDatacenterConfig object.
type DockerDatacenterReconciler struct {
client client.Client
}
// NewDockerDatacenterReconciler creates a new instance of the DockerDatacenterReconciler struct.
func... | 18 |
eks-anywhere | aws | Go | package controllers
import (
"context"
"github.com/go-logr/logr"
"github.com/google/uuid"
clusterctlv1 "sigs.k8s.io/cluster-api/cmd/clusterctl/api/v1alpha3"
"sigs.k8s.io/cluster-api/controllers/remote"
"sigs.k8s.io/controller-runtime/pkg/manager"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
awsi... | 528 |
eks-anywhere | aws | Go | package controllers_test
import (
"context"
"testing"
"github.com/golang/mock/gomock"
. "github.com/onsi/gomega"
clusterctlv1 "sigs.k8s.io/cluster-api/cmd/clusterctl/api/v1alpha3"
"github.com/aws/eks-anywhere/controllers"
"github.com/aws/eks-anywhere/controllers/mocks"
)
func TestFactoryBuildAllVSphereReconc... | 232 |
eks-anywhere | aws | Go | package controllers_test
import (
"os"
"testing"
"github.com/aws/eks-anywhere/internal/test/envtest"
)
var env *envtest.Environment
func TestMain(m *testing.M) {
os.Exit(envtest.RunWithEnvironment(m, envtest.WithAssignment(&env)))
}
| 15 |
eks-anywhere | aws | Go | package controllers
import (
"context"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/providers/nutanix"
)
// NutanixDatacenterReconciler reconciles a NutanixDatacenterConfig object.
ty... | 53 |
eks-anywhere | aws | Go | package controllers_test
import (
"context"
"testing"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client/fake"
"sigs.k8s.io/controller-runtime/pkg/reconcile"
"github.com/aws/eks... | 104 |
eks-anywhere | aws | Go | package controllers
import (
"context"
"fmt"
kerrors "k8s.io/apimachinery/pkg/util/errors"
"sigs.k8s.io/cluster-api/util/patch"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
)
type Validator interface {
ValidateEC2... | 99 |
eks-anywhere | aws | Go | package controllers_test
import (
"context"
"errors"
"fmt"
"strings"
"testing"
"time"
"github.com/golang/mock/gomock"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client/fake"
... | 258 |
eks-anywhere | aws | Go | package controllers
import (
"context"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
)
// TinkerbellDatacenterReconciler reconciles a TinkerbellDatacenterConfig object.
type TinkerbellDatacenterReconciler struct {
cli... | 38 |
eks-anywhere | aws | Go | package controllers_test
import (
"testing"
. "github.com/onsi/gomega"
"github.com/aws/eks-anywhere/controllers"
)
func TestTinkerbellDatacenterReconcilerSetupWithManager(t *testing.T) {
client := env.Client()
r := controllers.NewTinkerbellDatacenterReconciler(client)
g := NewWithT(t)
g.Expect(r.SetupWithMa... | 18 |
eks-anywhere | aws | Go | package controllers
import (
"context"
"fmt"
"github.com/go-logr/logr"
kerrors "k8s.io/apimachinery/pkg/util/errors"
"sigs.k8s.io/cluster-api/util/patch"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aw... | 105 |
eks-anywhere | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: controllers/cluster_controller.go
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
v1alpha1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
controller "github.com/aws/eks-anywhere/pkg/controller"
clust... | 232 |
eks-anywhere | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/aws/eks-anywhere/controllers (interfaces: Manager)
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
http "net/http"
reflect "reflect"
logr "github.com/go-logr/logr"
gomock "github.com/golang/mock/gomock"
me... | 300 |
eks-anywhere | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: pkg/controller/clusters/registry.go
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
v1alpha1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
controller "github.com/aws/eks-anywhere/pkg/controller"
log... | 69 |
eks-anywhere | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: controllers/snow_machineconfig_controller.go
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
v1alpha1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
gomock "github.com/golang/mock/gomock"
)
// MockVa... | 65 |
eks-anywhere | aws | Go | package configsources
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
)
// EnableEndpointDiscoveryProvider is an interface for retrieving external configuration value
// for Enable Endpoint Discovery.
type EnableEndpointDiscoveryProvider interface {
GetEnableEndpointDiscovery(ctx context.Context) (value aws... | 67 |
eks-anywhere | aws | Go | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
package configsources
// goModuleVersion is the tagged release for this module.
const goModuleVersion = "1.1.21"
| 7 |
eks-anywhere | aws | Go | package configtesting
import (
"github.com/aws/aws-sdk-go-v2/config"
internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources"
)
// EnableEndpointDiscoveryProvider Assertions.
var (
_ internalConfig.EnableEndpointDiscoveryProvider = &config.EnvConfig{}
_ internalConfig.EnableEndpointDiscoveryProvider =... | 33 |
eks-anywhere | aws | Go | // Package configtesting is used for config source assertions.
package configtesting
| 3 |
eks-anywhere | aws | Go | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
package configtesting
// goModuleVersion is the tagged release for this module.
const goModuleVersion = "tip"
| 7 |
eks-anywhere | aws | Go | package endpoints
import (
"fmt"
"regexp"
"strings"
"github.com/aws/aws-sdk-go-v2/aws"
)
const (
defaultProtocol = "https"
defaultSigner = "v4"
)
var (
protocolPriority = []string{"https", "http"}
signerPriority = []string{"v4"}
)
// Options provide configuration needed to direct how endpoints are reso... | 184 |
eks-anywhere | aws | Go | package endpoints
import (
"reflect"
"regexp"
"testing"
"github.com/aws/aws-sdk-go-v2/aws"
)
func TestEndpointResolve(t *testing.T) {
defs := Endpoint{
Hostname: "service.{region}.amazonaws.com",
SignatureVersions: []string{"v4"},
}
e := Endpoint{
Protocols: []string{"http", "https"},
... | 234 |
eks-anywhere | aws | Go | package endpoints
import (
"fmt"
"regexp"
"strings"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/smithy-go/logging"
)
// DefaultKey is a compound map key of a variant and other values.
type DefaultKey struct {
Variant EndpointVariant
ServiceVariant ServiceVariant
}
// EndpointKey is a compound m... | 303 |
eks-anywhere | aws | Go | package endpoints
import (
"reflect"
"testing"
)
func TestEndpointResolve(t *testing.T) {
defs := Endpoint{
Hostname: "service.{region}.amazonaws.com",
SignatureVersions: []string{"v4"},
}
e := Endpoint{
Protocols: []string{"http", "https"},
SignatureVersions: []string{"v4"},
Credenti... | 71 |
eks-anywhere | aws | Go | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
package endpoints
// goModuleVersion is the tagged release for this module.
const goModuleVersion = "2.4.15"
| 7 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/defaults"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/retry"
"github.com/aws/aws-sdk-go-v2/aws/sign... | 434 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"io/ioutil"
"net/http"
"strings"
"testing"
)
func TestClient_resolveRetryOptions(t *testi... | 124 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
func (c *Client) Che... | 111 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
func (c *Client) Con... | 121 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 127 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 125 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 115 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 124 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
func (c *Client) Del... | 114 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
func (c *Client) Del... | 114 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 115 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
func (c *Client) Del... | 114 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go... | 196 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go... | 196 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 118 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 127 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 114 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 116 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 110 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go... | 198 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 113 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 131 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go... | 192 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go/middle... | 116 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/eks-anywhere/internal/aws-sdk-go-v2/service/snowballdevice/types"
"github.com/aws/smithy-go... | 198 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
func (c *Client) Dow... | 107 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
func (c *Client) Get... | 118 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
func (c *Client) Get... | 118 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"time"
)
func (c *Cli... | 110 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
func (c *Client) Get... | 121 |
eks-anywhere | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package snowballdevice
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
func (c *Client) Ins... | 107 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.