Documentation ¶
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) (*cloudcontrol.GetResourceOutput, error)
- func (r *CloudControlRepository) FindResources(query *cloudcontrol.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)
- 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 CloudControl() *cloudcontrol.Client }
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 AwsClient) *CloudControlRepository
func (*CloudControlRepository) DescribeResource ¶
func (r *CloudControlRepository) DescribeResource(resourceType cfg.ResourceType, identifier *string) (*cloudcontrol.GetResourceOutput, error)
func (*CloudControlRepository) FindResources ¶
func (r *CloudControlRepository) FindResources(query *cloudcontrol.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)
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 }
func (Volume) GetAttributes ¶
func (Volume) GetTagValue ¶
Click to show internal directories.
Click to hide internal directories.