aws

package
v0.0.0-...-86aec00 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultDeprecatedRuntimesList

func GetDefaultDeprecatedRuntimesList() []types.Runtime

func IsLambdaRuntime

func IsLambdaRuntime(runtime types.Runtime) bool

func ListLambdaRuntimes

func ListLambdaRuntimes() []types.Runtime

There is no API to retrieve a list of available runtimes.

As a workaround, we source them from the lambda/types packages To fetch latest versions available

func ListSupportedRuntimes

func ListSupportedRuntimes() []types.Runtime

func NewLambdaRuntimeFamilyVersionProvider

func NewLambdaRuntimeFamilyVersionProvider() func(runtime types.Runtime) []types.Runtime

Returns a function that, given a runtime, returns all the runtimes of the same family

Types

type Config

type Config struct {
	Region string `yaml:"region"`
}

type Configs

type Configs []Config

type EKSApi

type EKSApi interface {
	DescribeAddon(ctx context.Context, params *eks.DescribeAddonInput, optFns ...func(*eks.Options)) (*eks.DescribeAddonOutput, error)
	DescribeAddonVersions(ctx context.Context, params *eks.DescribeAddonVersionsInput, optFns ...func(*eks.Options)) (*eks.DescribeAddonVersionsOutput, error)
	DescribeCluster(ctx context.Context, params *eks.DescribeClusterInput, optFns ...func(*eks.Options)) (*eks.DescribeClusterOutput, error)
	ListClusters(ctx context.Context, params *eks.ListClustersInput, optFns ...func(*eks.Options)) (*eks.ListClustersOutput, error)
	ListAddons(ctx context.Context, params *eks.ListAddonsInput, optFns ...func(*eks.Options)) (*eks.ListAddonsOutput, error)
}

type EksMock

type EksMock struct {
	mock.Mock
}

func (*EksMock) DescribeAddon

func (m *EksMock) DescribeAddon(ctx context.Context, params *eks.DescribeAddonInput, optFns ...func(*eks.Options)) (*eks.DescribeAddonOutput, error)

func (*EksMock) DescribeAddonVersions

func (m *EksMock) DescribeAddonVersions(ctx context.Context, params *eks.DescribeAddonVersionsInput, optFns ...func(*eks.Options)) (*eks.DescribeAddonVersionsOutput, error)

func (*EksMock) DescribeCluster

func (m *EksMock) DescribeCluster(ctx context.Context, params *eks.DescribeClusterInput, optFns ...func(*eks.Options)) (*eks.DescribeClusterOutput, error)

func (*EksMock) ListAddons

func (m *EksMock) ListAddons(ctx context.Context, params *eks.ListAddonsInput, optFns ...func(*eks.Options)) (*eks.ListAddonsOutput, error)

func (*EksMock) ListClusters

func (m *EksMock) ListClusters(ctx context.Context, params *eks.ListClustersInput, optFns ...func(*eks.Options)) (*eks.ListClustersOutput, error)

type ElasticacheApi

type ElasticacheApi interface {
	DescribeCacheClusters(ctx context.Context, params *elasticache.DescribeCacheClustersInput, optFns ...func(*elasticache.Options)) (*elasticache.DescribeCacheClustersOutput, error)
	DescribeCacheEngineVersions(ctx context.Context, params *elasticache.DescribeCacheEngineVersionsInput, optFns ...func(*elasticache.Options)) (*elasticache.DescribeCacheEngineVersionsOutput, error)
}

type ElasticacheMock

type ElasticacheMock struct{}

func (*ElasticacheMock) DescribeCacheClusters

type LambdaApi

type LambdaApi interface {
	ListFunctions(ctx context.Context, params *lambda.ListFunctionsInput, optFns ...func(*lambda.Options)) (*lambda.ListFunctionsOutput, error)
}

type LambdaMock

type LambdaMock struct {
	mock.Mock
}

func (*LambdaMock) ListFunctions

func (m *LambdaMock) ListFunctions(ctx context.Context, params *lambda.ListFunctionsInput, optFns ...func(*lambda.Options)) (*lambda.ListFunctionsOutput, error)

type MSKApi

type MSKApi interface {
	GetCompatibleKafkaVersions(ctx context.Context, params *kafka.GetCompatibleKafkaVersionsInput, optFns ...func(*kafka.Options)) (*kafka.GetCompatibleKafkaVersionsOutput, error)
	ListClustersV2(ctx context.Context, params *kafka.ListClustersV2Input, optFns ...func(*kafka.Options)) (*kafka.ListClustersV2Output, error)
}

type MockMSKApi

type MockMSKApi struct {
	mock.Mock
}

func (*MockMSKApi) GetCompatibleKafkaVersions

func (m *MockMSKApi) GetCompatibleKafkaVersions(ctx context.Context, params *kafka.GetCompatibleKafkaVersionsInput, optFns ...func(*kafka.Options)) (*kafka.GetCompatibleKafkaVersionsOutput, error)

func (*MockMSKApi) ListClustersV2

func (m *MockMSKApi) ListClustersV2(ctx context.Context, params *kafka.ListClustersV2Input, optFns ...func(*kafka.Options)) (*kafka.ListClustersV2Output, error)

type MockRDSApi

type MockRDSApi struct {
	mock.Mock
}

func (*MockRDSApi) DescribeDBEngineVersions

func (m *MockRDSApi) DescribeDBEngineVersions(ctx context.Context, params *rds.DescribeDBEngineVersionsInput, optFns ...func(*rds.Options)) (*rds.DescribeDBEngineVersionsOutput, error)

func (*MockRDSApi) DescribeDBInstances

func (m *MockRDSApi) DescribeDBInstances(ctx context.Context, params *rds.DescribeDBInstancesInput, optFns ...func(*rds.Options)) (*rds.DescribeDBInstancesOutput, error)

type MockS3GetApi

type MockS3GetApi func(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)

func (MockS3GetApi) GetObject

func (m MockS3GetApi) GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)

type RDSApi

type RDSApi interface {
	DescribeDBEngineVersions(ctx context.Context, params *rds.DescribeDBEngineVersionsInput, optFns ...func(*rds.Options)) (*rds.DescribeDBEngineVersionsOutput, error)
	DescribeDBInstances(ctx context.Context, params *rds.DescribeDBInstancesInput, optFns ...func(*rds.Options)) (*rds.DescribeDBInstancesOutput, error)
}

type S3Api

type S3Api interface {
	GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
}

type S3Mock

type S3Mock struct {
	mock.Mock
}

func (*S3Mock) GetObject

func (m *S3Mock) GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)

Jump to

Keyboard shortcuts

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