aws

package
v0.0.0-...-58b8a67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const MultiPlatformManaged = "MultiPlatformManaged"

Variables

This section is empty.

Functions

func Ec2Provider

func Ec2Provider(platformName string, config map[string]string, systemNamespace string) cloud.CloudProvider

Types

type AwsDynamicConfig

type AwsDynamicConfig struct {
	Region              string
	Ami                 string
	InstanceType        string
	KeyName             string
	Secret              string
	SystemNamespace     string
	SecurityGroup       string
	SecurityGroupId     string
	SubnetId            string
	Disk                int32
	SpotInstancePrice   string
	InstanceProfileName string
	InstanceProfileArn  string
	Throughput          *int32
	Iops                *int32
	UserData            *string
}

func (AwsDynamicConfig) CountInstances

func (r AwsDynamicConfig) CountInstances(kubeClient client.Client, ctx context.Context, instanceTag string) (int, error)

func (AwsDynamicConfig) GetInstanceAddress

func (r AwsDynamicConfig) GetInstanceAddress(kubeClient client.Client, ctx context.Context, instanceId cloud.InstanceIdentifier) (string, error)

func (AwsDynamicConfig) LaunchInstance

func (r AwsDynamicConfig) LaunchInstance(kubeClient client.Client, ctx context.Context, name string, instanceTag string, additionalInstanceTags map[string]string) (cloud.InstanceIdentifier, error)

func (AwsDynamicConfig) ListInstances

func (r AwsDynamicConfig) ListInstances(kubeClient client.Client, ctx context.Context, instanceTag string) ([]cloud.CloudVMInstance, error)

func (AwsDynamicConfig) SshUser

func (r AwsDynamicConfig) SshUser() string

func (AwsDynamicConfig) TerminateInstance

func (r AwsDynamicConfig) TerminateInstance(kubeClient client.Client, ctx context.Context, instance cloud.InstanceIdentifier) error

type SecretCredentialsProvider

type SecretCredentialsProvider struct {
	Name      string
	Namespace string
	Client    client.Client
}

func (SecretCredentialsProvider) Retrieve

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL