cloudcontrol

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Code generated by generate-cached. DO NOT EDIT.

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
}

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 *v3.Client) *CloudControlRepository

func (*CloudControlRepository) DescribeResource

func (r *CloudControlRepository) DescribeResource(resourceType cfg.ResourceType, identifier *string) (*awscloudcontrol.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)

func (*CloudControlRepository) WithCache added in v0.4.0

WithCache returns a CloudControlRepositoryCached that stores/retrieves results via the given DataCache. The cache namespace is set to "<accountID>:<region>".

type CloudControlRepositoryCached added in v0.4.0

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

CloudControlRepositoryCached wraps CloudControlRepository and caches results of Get*/List* calls.

func (*CloudControlRepositoryCached) ListBucketsAll added in v0.4.0

func (c *CloudControlRepositoryCached) ListBucketsAll() ([]Bucket, error)

ListBucketsAll returns cached results when available, otherwise delegates to the underlying repository.

func (*CloudControlRepositoryCached) ListBucketsByInput added in v0.4.0

func (c *CloudControlRepositoryCached) ListBucketsByInput(query *cc.ListResourcesInput) ([]Bucket, error)

ListBucketsByInput returns cached results when available, otherwise delegates to the underlying repository.

func (*CloudControlRepositoryCached) ListInstancesAll added in v0.4.0

func (c *CloudControlRepositoryCached) ListInstancesAll() ([]Instance, error)

ListInstancesAll returns cached results when available, otherwise delegates to the underlying repository.

func (*CloudControlRepositoryCached) ListInstancesByInput added in v0.4.0

func (c *CloudControlRepositoryCached) ListInstancesByInput(query *cc.ListResourcesInput) ([]Instance, error)

ListInstancesByInput returns cached results when available, otherwise delegates to the underlying repository.

func (*CloudControlRepositoryCached) ListVolumesAll added in v0.4.0

func (c *CloudControlRepositoryCached) ListVolumesAll() ([]Volume, error)

ListVolumesAll returns cached results when available, otherwise delegates to the underlying repository.

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