resources

package
v0.0.0-...-1a23c2c Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoScalingGroup

type AutoScalingGroup struct {
	Client     *client.Client
	Identifier string
	Attributes struct {
		Parallelism uint16
		Spot        float64
		Addresses   []net.IP
		Status      map[string]int
		Events      []universal.Event
	}
	Dependencies struct {
		*DefaultVPCSubnet
		*LaunchTemplate
	}
	Resource *types.AutoScalingGroup
}

func NewAutoScalingGroup

func NewAutoScalingGroup(client *client.Client, identifier string, subnet *DefaultVPCSubnet, launchTemplate *LaunchTemplate, parallelism uint16, spot float64) *AutoScalingGroup

func (*AutoScalingGroup) Create

func (a *AutoScalingGroup) Create(ctx context.Context) error

func (*AutoScalingGroup) Delete

func (a *AutoScalingGroup) Delete(ctx context.Context) error

func (*AutoScalingGroup) Read

func (a *AutoScalingGroup) Read(ctx context.Context) error

func (*AutoScalingGroup) Update

func (a *AutoScalingGroup) Update(ctx context.Context) error

type Bucket

type Bucket struct {
	Client     *client.Client
	Identifier string
	Resource   *types.Bucket
}

func NewBucket

func NewBucket(client *client.Client, identifier string) *Bucket

func (*Bucket) Create

func (b *Bucket) Create(ctx context.Context) error

func (*Bucket) Delete

func (b *Bucket) Delete(ctx context.Context) error

func (*Bucket) Read

func (b *Bucket) Read(ctx context.Context) error

func (*Bucket) Update

func (b *Bucket) Update(ctx context.Context) error

type Credentials

type Credentials struct {
	Client       *client.Client
	Identifier   string
	Dependencies struct {
		*Bucket
	}
	Resource *map[string]string
}

func NewCredentials

func NewCredentials(client *client.Client, identifier string, bucket *Bucket) *Credentials

func (*Credentials) Read

func (c *Credentials) Read(ctx context.Context) error

type DefaultVPC

type DefaultVPC struct {
	Client   *client.Client
	Resource *types.Vpc
}

func NewDefaultVPC

func NewDefaultVPC(client *client.Client) *DefaultVPC

func (*DefaultVPC) Read

func (d *DefaultVPC) Read(ctx context.Context) error

type DefaultVPCSubnet

type DefaultVPCSubnet struct {
	Client       *client.Client
	Resource     *types.Subnet
	Dependencies struct {
		*DefaultVPC
	}
}

func NewDefaultVPCSubnet

func NewDefaultVPCSubnet(client *client.Client, defaultVpc *DefaultVPC) *DefaultVPCSubnet

func (*DefaultVPCSubnet) Read

func (d *DefaultVPCSubnet) Read(ctx context.Context) error

type Image

type Image struct {
	Client     *client.Client
	Identifier string
	Attributes struct {
		SSHUser string
	}
	Resource *types.Image
}

func NewImage

func NewImage(client *client.Client, identifier string) *Image

func (*Image) Read

func (i *Image) Read(ctx context.Context) error

type KeyPair

type KeyPair struct {
	Client     *client.Client
	Identifier string
	Attributes ssh.DeterministicSSHKeyPair
	Resource   *types.KeyPairInfo
}

func NewKeyPair

func NewKeyPair(client *client.Client, identifier string) *KeyPair

func (*KeyPair) Create

func (k *KeyPair) Create(ctx context.Context) error

func (*KeyPair) Delete

func (k *KeyPair) Delete(ctx context.Context) error

func (*KeyPair) Read

func (k *KeyPair) Read(ctx context.Context) error

func (*KeyPair) Update

func (k *KeyPair) Update(ctx context.Context) error

type LaunchTemplate

type LaunchTemplate struct {
	Client       *client.Client
	Identifier   string
	Attributes   universal.Task
	Dependencies struct {
		*KeyPair
		*SecurityGroup
		*Image
		*Credentials
	}
	Resource *types.LaunchTemplate
}

func NewLaunchTemplate

func NewLaunchTemplate(client *client.Client, identifier string, securityGroup *SecurityGroup, image *Image, keyPair *KeyPair, credentials *Credentials, task universal.Task) *LaunchTemplate

func (*LaunchTemplate) Create

func (l *LaunchTemplate) Create(ctx context.Context) error

func (*LaunchTemplate) Delete

func (l *LaunchTemplate) Delete(ctx context.Context) error

func (*LaunchTemplate) Read

func (l *LaunchTemplate) Read(ctx context.Context) error

func (*LaunchTemplate) Update

func (l *LaunchTemplate) Update(ctx context.Context) error

type SecurityGroup

type SecurityGroup struct {
	Client       *client.Client
	Identifier   string
	Attributes   universal.Firewall
	Dependencies struct {
		*DefaultVPC
	}
	Resource *types.SecurityGroup
}

func NewSecurityGroup

func NewSecurityGroup(client *client.Client, identifier string, defaultVPC *DefaultVPC, firewall universal.Firewall) *SecurityGroup

func (*SecurityGroup) Create

func (s *SecurityGroup) Create(ctx context.Context) error

func (*SecurityGroup) Delete

func (s *SecurityGroup) Delete(ctx context.Context) error

func (*SecurityGroup) Read

func (s *SecurityGroup) Read(ctx context.Context) error

func (*SecurityGroup) Update

func (s *SecurityGroup) Update(ctx context.Context) error

Jump to

Keyboard shortcuts

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