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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobContainer

type BlobContainer struct {
	Client       *client.Client
	Identifier   string
	Dependencies struct {
		*ResourceGroup
		*StorageAccount
	}
	Resource *storage.BlobContainer
}

func NewBlobContainer

func NewBlobContainer(client *client.Client, identifier string, resourceGroup *ResourceGroup, storageAccount *StorageAccount) *BlobContainer

func (*BlobContainer) Create

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

func (*BlobContainer) Delete

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

func (*BlobContainer) Read

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

func (*BlobContainer) Update

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

type Credentials

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

func NewCredentials

func NewCredentials(client *client.Client, identifier string, resourceGroup *ResourceGroup, storageAccount *StorageAccount, blobContainer *BlobContainer) *Credentials

func (*Credentials) Read

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

type ResourceGroup

type ResourceGroup struct {
	Client     *client.Client
	Identifier string
	Resource   *resources.Group
}

func NewResourceGroup

func NewResourceGroup(client *client.Client, identifier string) *ResourceGroup

func (*ResourceGroup) Create

func (r *ResourceGroup) Create(ctx context.Context) error

func (*ResourceGroup) Delete

func (r *ResourceGroup) Delete(ctx context.Context) error

func (*ResourceGroup) Read

func (r *ResourceGroup) Read(ctx context.Context) error

func (*ResourceGroup) Update

func (r *ResourceGroup) Update(ctx context.Context) error

type SecurityGroup

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

func NewSecurityGroup

func NewSecurityGroup(client *client.Client, identifier string, resourceGroup *ResourceGroup, 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

type StorageAccount

type StorageAccount struct {
	Client       *client.Client
	Identifier   string
	Attributes   *storage.AccountKey
	Dependencies struct {
		*ResourceGroup
	}
	Resource *storage.Account
}

func NewStorageAccount

func NewStorageAccount(client *client.Client, identifier string, resourceGroup *ResourceGroup) *StorageAccount

func (*StorageAccount) Create

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

func (*StorageAccount) Delete

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

func (*StorageAccount) Read

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

func (*StorageAccount) Update

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

type Subnet

type Subnet struct {
	Client       *client.Client
	Identifier   string
	Dependencies struct {
		*ResourceGroup
		*VirtualNetwork
		*SecurityGroup
	}
	Resource *network.Subnet
}

func NewSubnet

func NewSubnet(client *client.Client, identifier string, resourceGroup *ResourceGroup, virtualNetwork *VirtualNetwork, securityGroup *SecurityGroup) *Subnet

func (*Subnet) Create

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

func (*Subnet) Delete

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

func (*Subnet) Read

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

func (*Subnet) Update

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

type VirtualMachineScaleSet

type VirtualMachineScaleSet struct {
	Client     *client.Client
	Identifier string
	Attributes struct {
		Size        universal.Size
		Environment universal.Environment
		Firewall    universal.Firewall
		Tags        map[string]string
		Parallelism uint16
		Spot        float64
		Addresses   []net.IP
		Status      map[string]int
		Events      []universal.Event
	}
	Dependencies struct {
		*ResourceGroup
		*Subnet
		*SecurityGroup
		*Credentials
	}
	Resource *compute.VirtualMachineScaleSet
}

func NewVirtualMachineScaleSet

func NewVirtualMachineScaleSet(client *client.Client, identifier string, resourceGroup *ResourceGroup, subnet *Subnet, securityGroup *SecurityGroup, credentials *Credentials, task universal.Task) *VirtualMachineScaleSet

func (*VirtualMachineScaleSet) Create

func (*VirtualMachineScaleSet) Delete

func (*VirtualMachineScaleSet) Read

func (*VirtualMachineScaleSet) Update

type VirtualNetwork

type VirtualNetwork struct {
	Client       *client.Client
	Identifier   string
	Dependencies struct {
		*ResourceGroup
	}
	Resource *network.VirtualNetwork
}

func NewVirtualNetwork

func NewVirtualNetwork(client *client.Client, identifier string, resourceGroup *ResourceGroup) *VirtualNetwork

func (*VirtualNetwork) Create

func (v *VirtualNetwork) Create(ctx context.Context) error

func (*VirtualNetwork) Delete

func (v *VirtualNetwork) Delete(ctx context.Context) error

func (*VirtualNetwork) Read

func (v *VirtualNetwork) Read(ctx context.Context) error

func (*VirtualNetwork) Update

func (v *VirtualNetwork) Update(ctx context.Context) error

Jump to

Keyboard shortcuts

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