Documentation
¶
Index ¶
- func NewPlatform() platform.Platform
- type AwsEksPlatform
- func (a *AwsEksPlatform) CreateClusterPrerequisites(ctx context.Context, clusterName string) error
- func (a *AwsEksPlatform) GatherCloudletInfo(ctx context.Context, info *edgeproto.CloudletInfo) error
- func (a *AwsEksPlatform) GetCloudletInfraResourcesInfo(ctx context.Context) ([]edgeproto.InfraResource, error)
- func (a *AwsEksPlatform) GetClusterAdditionalResourceMetric(ctx context.Context, cloudlet *edgeproto.Cloudlet, resMetric *edgeproto.Metric, ...) error
- func (a *AwsEksPlatform) GetClusterAdditionalResources(ctx context.Context, cloudlet *edgeproto.Cloudlet, ...) map[string]edgeproto.InfraResource
- func (a *AwsEksPlatform) GetCredentials(ctx context.Context, clusterName string) error
- func (o *AwsEksPlatform) GetFeatures() *edgeproto.PlatformFeatures
- func (a *AwsEksPlatform) InitApiAccessProperties(ctx context.Context, accessApi platform.AccessApi, vars map[string]string) error
- func (a *AwsEksPlatform) Login(ctx context.Context) error
- func (a *AwsEksPlatform) NameSanitize(clusterName string) string
- func (a *AwsEksPlatform) RunClusterCreateCommand(ctx context.Context, clusterName string, numNodes uint32, flavor string) error
- func (a *AwsEksPlatform) RunClusterDeleteCommand(ctx context.Context, clusterName string) error
- func (a *AwsEksPlatform) SetProperties(props *infracommon.InfraProperties) error
- type AwsEksResources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPlatform ¶
Types ¶
type AwsEksPlatform ¶
type AwsEksPlatform struct {
// contains filtered or unexported fields
}
func (*AwsEksPlatform) CreateClusterPrerequisites ¶
func (a *AwsEksPlatform) CreateClusterPrerequisites(ctx context.Context, clusterName string) error
CreateClusterPrerequisites does nothing for now, but for outpost may need to create a vpc
func (*AwsEksPlatform) GatherCloudletInfo ¶
func (a *AwsEksPlatform) GatherCloudletInfo(ctx context.Context, info *edgeproto.CloudletInfo) error
func (*AwsEksPlatform) GetCloudletInfraResourcesInfo ¶
func (a *AwsEksPlatform) GetCloudletInfraResourcesInfo(ctx context.Context) ([]edgeproto.InfraResource, error)
func (*AwsEksPlatform) GetClusterAdditionalResourceMetric ¶
func (a *AwsEksPlatform) GetClusterAdditionalResourceMetric(ctx context.Context, cloudlet *edgeproto.Cloudlet, resMetric *edgeproto.Metric, resources []edgeproto.VMResource) error
func (*AwsEksPlatform) GetClusterAdditionalResources ¶
func (a *AwsEksPlatform) GetClusterAdditionalResources(ctx context.Context, cloudlet *edgeproto.Cloudlet, vmResources []edgeproto.VMResource, infraResMap map[string]edgeproto.InfraResource) map[string]edgeproto.InfraResource
called by controller, make sure it doesn't make any calls to infra API
func (*AwsEksPlatform) GetCredentials ¶
func (a *AwsEksPlatform) GetCredentials(ctx context.Context, clusterName string) error
GetCredentials retrieves kubeconfig credentials from AWS
func (*AwsEksPlatform) GetFeatures ¶
func (o *AwsEksPlatform) GetFeatures() *edgeproto.PlatformFeatures
func (*AwsEksPlatform) InitApiAccessProperties ¶
func (*AwsEksPlatform) NameSanitize ¶
func (a *AwsEksPlatform) NameSanitize(clusterName string) string
func (*AwsEksPlatform) RunClusterCreateCommand ¶
func (a *AwsEksPlatform) RunClusterCreateCommand(ctx context.Context, clusterName string, numNodes uint32, flavor string) error
RunClusterCreateCommand creates a kubernetes cluster on AWS
func (*AwsEksPlatform) RunClusterDeleteCommand ¶
func (a *AwsEksPlatform) RunClusterDeleteCommand(ctx context.Context, clusterName string) error
RunClusterDeleteCommand removes the kubernetes cluster on AWS
func (*AwsEksPlatform) SetProperties ¶
func (a *AwsEksPlatform) SetProperties(props *infracommon.InfraProperties) error
Click to show internal directories.
Click to hide internal directories.