cloudcontrol

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAttributes

func ParseAttributes(resource types.ResourceDescription) (data map[string]interface{}, tags map[string]string, err error)

func ParseTags

func ParseTags(attrs map[string]interface{}) (map[string]string, error)

Types

type AwsClient

type AwsClient interface {
	GetRegion() ptypes.AwsRegion
	GetAccountID() ptypes.AwsAccountID
	CloudControl() *cloudcontrol.Client
}

type Bucket

type Bucket struct {
	service.AbstractResource
	cc.ResourceDescription
	// contains filtered or unexported fields
}

func NewBucket

func NewBucket(
	client AwsClient,
	resource cc.ResourceDescription,
	attributes map[string]interface{},
	tags map[string]string,
) Bucket

func (Bucket) GetAttributes

func (e Bucket) GetAttributes() map[string]interface{}

func (Bucket) GetName

func (e Bucket) GetName() string

func (Bucket) GetTagValue

func (e Bucket) GetTagValue(tag string) string

func (Bucket) GetTags

func (e Bucket) GetTags() map[string]string

type BucketList

type BucketList struct {
	Items []Bucket
}

type CloudControlRepository

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

func NewCloudControlRepository

func NewCloudControlRepository(ctx context.Context, client AwsClient) *CloudControlRepository

func (*CloudControlRepository) DescribeResource

func (r *CloudControlRepository) DescribeResource(resourceType cfg.ResourceType, identifier *string) (*cloudcontrol.GetResourceOutput, error)

func (*CloudControlRepository) FindResources

func (*CloudControlRepository) GetRegion

func (r *CloudControlRepository) GetRegion() ptypes.AwsRegion

func (*CloudControlRepository) ListBucketsAll

func (r *CloudControlRepository) ListBucketsAll() ([]Bucket, error)

func (*CloudControlRepository) ListBucketsByInput

func (r *CloudControlRepository) ListBucketsByInput(query *cc.ListResourcesInput) ([]Bucket, error)

func (*CloudControlRepository) ListInstancesAll

func (r *CloudControlRepository) ListInstancesAll() ([]Instance, error)

func (*CloudControlRepository) ListInstancesByInput

func (r *CloudControlRepository) ListInstancesByInput(query *cc.ListResourcesInput) ([]Instance, error)

func (*CloudControlRepository) ListVolumesAll

func (r *CloudControlRepository) ListVolumesAll() ([]Volume, error)

type Instance

type Instance struct {
	service.AbstractResource
	cc.ResourceDescription
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance(
	client AwsClient,
	resource cc.ResourceDescription,
	attributes map[string]interface{},
	tags map[string]string,
) Instance

func (Instance) GetAttributes

func (e Instance) GetAttributes() map[string]interface{}

func (Instance) GetName

func (e Instance) GetName() string

func (Instance) GetTagValue

func (e Instance) GetTagValue(tag string) string

func (Instance) GetTags

func (e Instance) GetTags() map[string]string

type Volume

type Volume struct {
	service.AbstractResource
	cc.ResourceDescription
	// contains filtered or unexported fields
}

func NewVolume

func NewVolume(client AwsClient, resource cc.ResourceDescription, attributes map[string]interface{}, tags map[string]string) Volume

func (Volume) GetAttributes

func (e Volume) GetAttributes() map[string]interface{}

func (Volume) GetName

func (e Volume) GetName() string

func (Volume) GetTagValue

func (e Volume) GetTagValue(tag string) string

func (Volume) GetTags

func (e Volume) GetTags() map[string]string

Jump to

Keyboard shortcuts

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