aws

package
v0.0.0-...-7fa3f60 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 14 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
	SubnetId        string
	Disk            int32
}

func (AwsDynamicConfig) CountInstances

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

func (AwsDynamicConfig) GetInstanceAddress

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

func (AwsDynamicConfig) LaunchInstance

func (r AwsDynamicConfig) LaunchInstance(kubeClient client.Client, log *logr.Logger, ctx context.Context, name string, instanceTag string) (cloud.InstanceIdentifier, error)

func (AwsDynamicConfig) ListInstances

func (r AwsDynamicConfig) ListInstances(kubeClient client.Client, log *logr.Logger, 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, log *logr.Logger, 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