Documentation
¶
Overview ¶
Code generated by generate-cached. DO NOT EDIT.
Index ¶
- func ParseAttributes(resource types.ResourceDescription) (data map[string]interface{}, tags map[string]string, err error)
- func ParseTags(attrs map[string]interface{}) (map[string]string, error)
- type AwsClient
- type Bucket
- type BucketList
- type CloudControlRepository
- func (r *CloudControlRepository) DescribeResource(resourceType cfg.ResourceType, identifier *string) (*awscloudcontrol.GetResourceOutput, error)
- func (r *CloudControlRepository) FindResources(query *awscloudcontrol.ListResourcesInput) ([]types.ResourceDescription, error)
- func (r *CloudControlRepository) GetRegion() ptypes.AwsRegion
- func (r *CloudControlRepository) ListBucketsAll() ([]Bucket, error)
- func (r *CloudControlRepository) ListBucketsByInput(query *cc.ListResourcesInput) ([]Bucket, error)
- func (r *CloudControlRepository) ListInstancesAll() ([]Instance, error)
- func (r *CloudControlRepository) ListInstancesByInput(query *cc.ListResourcesInput) ([]Instance, error)
- func (r *CloudControlRepository) ListVolumesAll() ([]Volume, error)
- func (r *CloudControlRepository) WithCache(dc *cache.DataCache) *CloudControlRepositoryCached
- type CloudControlRepositoryCached
- func (c *CloudControlRepositoryCached) ListBucketsAll() ([]Bucket, error)
- func (c *CloudControlRepositoryCached) ListBucketsByInput(query *cc.ListResourcesInput) ([]Bucket, error)
- func (c *CloudControlRepositoryCached) ListInstancesAll() ([]Instance, error)
- func (c *CloudControlRepositoryCached) ListInstancesByInput(query *cc.ListResourcesInput) ([]Instance, error)
- func (c *CloudControlRepositoryCached) ListVolumesAll() ([]Volume, error)
- type Instance
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAttributes ¶
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 (Bucket) GetAttributes ¶
func (Bucket) GetTagValue ¶
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 (r *CloudControlRepository) FindResources(query *awscloudcontrol.ListResourcesInput) ([]types.ResourceDescription, error)
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
func (r *CloudControlRepository) WithCache(dc *cache.DataCache) *CloudControlRepositoryCached
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 (Instance) GetAttributes ¶
func (Instance) GetTagValue ¶
type Volume ¶
type Volume struct {
service.AbstractResource
cc.ResourceDescription
// contains filtered or unexported fields
}