aws

package
v0.0.0-...-3127a7f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder[T, S any](c ClientConfiguration) *clientBuilder[T, S]

Types

type AwsProvider

type AwsProvider struct {
	// contains filtered or unexported fields
}

func (*AwsProvider) Create

func (a *AwsProvider) Create(ctx context.Context, resource string, o lua.Object) (lua.Object, error)

func (*AwsProvider) Delete

func (a *AwsProvider) Delete(ctx context.Context, resource string, o lua.Object) (lua.Object, error)

func (*AwsProvider) List

func (a *AwsProvider) List(ctx context.Context, resource string, o lua.Object) (lua.Object, error)

type ClientConfiguration

type ClientConfiguration struct {
	AccessKey string
	SecretKey string
	Region    string
}

type ClientType

type ClientType int
const (
	IamClient ClientType = iota
	Ec2Client
)

type OpType

type OpType int
const (
	// iam op types
	CreateUser OpType = iota
	DeleteUser
	GetUser
	ListUsers
	CreateAccessKeys
	DeleteAccessKeys
	GetAccessKeys
	ListAccessKeys

	// ec2 op types
	CreateSubnet
	DeleteSubnet
	ListSubnets
	CreateVpc
	DeleteVpc
	ListVpcs
	// IGW
	CreateIgw
	DeleteIgw
	ListIgws
	// NAT
	CreateNat
	DeleteNat
	ListNats
	// AZ
	ListAvailabilityZones
)

Jump to

Keyboard shortcuts

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