Documentation ¶
Index ¶
- func SetLogger(logger *logrus.Entry)
- type CloudFrontProcessor
- func (p *CloudFrontProcessor) GetTags(resourceID *string) ([]*cloudfront.Tag, error)
- func (p *CloudFrontProcessor) RetagDistributions(m *mapper.Mapper)
- func (p *CloudFrontProcessor) SetTags(resourceID *string, tags []*mapper.TagItem) error
- func (p *CloudFrontProcessor) TagsToMap(tagsInput []*cloudfront.Tag) map[string]string
- type CwProcessor
- type Ec2Processor
- type ElasticBeanstalkProcessor
- func (p *ElasticBeanstalkProcessor) GetTags(resourceID *string) ([]*elasticbeanstalk.Tag, error)
- func (p *ElasticBeanstalkProcessor) RetagEnvironments(m *mapper.Mapper)
- func (p *ElasticBeanstalkProcessor) SetTags(resourceID *string, tags []*mapper.TagItem) error
- func (p *ElasticBeanstalkProcessor) TagsToMap(tagsInput []*elasticbeanstalk.Tag) map[string]string
- type ElkProcessor
- func (p *ElkProcessor) GetTags(resourceID *string) ([]*elasticsearchservice.Tag, error)
- func (p *ElkProcessor) RetagDomains(m *mapper.Mapper)
- func (p *ElkProcessor) SetTags(resourceID *string, tags []*mapper.TagItem) error
- func (p *ElkProcessor) TagsToMap(tagsInput []*elasticsearchservice.Tag) map[string]string
- type RdsProcessor
- func (p *RdsProcessor) GetTags(resourceID *string) ([]*rds.Tag, error)
- func (p *RdsProcessor) RetagClusters(m *mapper.Mapper)
- func (p *RdsProcessor) RetagInstances(m *mapper.Mapper)
- func (p *RdsProcessor) SetTags(resourceID *string, tags []*mapper.TagItem) error
- func (p *RdsProcessor) TagsToMap(tagsInput []*rds.Tag) map[string]string
- type RedshiftProcessor
- func (p *RedshiftProcessor) GetTags(resourceID *string) ([]*redshift.TaggedResource, error)
- func (p *RedshiftProcessor) RetagClusters(m *mapper.Mapper)
- func (p *RedshiftProcessor) SetTags(resourceID *string, tags []*mapper.TagItem) error
- func (p *RedshiftProcessor) TagsToMap(tagsInput []*redshift.TaggedResource) map[string]string
- type S3Processor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloudFrontProcessor ¶
type CloudFrontProcessor struct {
// contains filtered or unexported fields
}
CloudFrontProcessor holds the cloudfront-related actions
func NewCloudFrontProcessor ¶
func NewCloudFrontProcessor(sess *session.Session) *CloudFrontProcessor
NewCloudFrontProcessor creates a new instance of CloudFrontProcessor containing an already initialized cloudfront client
func (*CloudFrontProcessor) GetTags ¶
func (p *CloudFrontProcessor) GetTags(resourceID *string) ([]*cloudfront.Tag, error)
GetTags gets the tags allocated to an cloudfront resource
func (*CloudFrontProcessor) RetagDistributions ¶
func (p *CloudFrontProcessor) RetagDistributions(m *mapper.Mapper)
RetagDistributions parses all distributions and retags them
func (*CloudFrontProcessor) SetTags ¶
func (p *CloudFrontProcessor) SetTags(resourceID *string, tags []*mapper.TagItem) error
SetTags sets tags on an cloudfront resource
func (*CloudFrontProcessor) TagsToMap ¶
func (p *CloudFrontProcessor) TagsToMap(tagsInput []*cloudfront.Tag) map[string]string
TagsToMap transform the cloudfront tags structure into a map[string]string for easier manipulations
type CwProcessor ¶
type CwProcessor struct {
// contains filtered or unexported fields
}
CwProcessor holds the cloudwatch-related actions
func NewCwProcessor ¶
func NewCwProcessor(sess *session.Session) *CwProcessor
NewCwProcessor creates a new instance of CwProcessor containing an already initialized cloudwatchlogs client
func (*CwProcessor) GetTags ¶
func (p *CwProcessor) GetTags(resourceID *string) (map[string]*string, error)
GetTags gets the tags allocated to an rds resource
func (*CwProcessor) RetagLogGroups ¶
func (p *CwProcessor) RetagLogGroups(m *mapper.Mapper)
RetagLogGroups parses all running and stopped instances and retags them
type Ec2Processor ¶
type Ec2Processor struct {
// contains filtered or unexported fields
}
Ec2Processor holds the ec2-related actions
func NewEc2Processor ¶
func NewEc2Processor(sess *session.Session) *Ec2Processor
NewEc2Processor creates a new instance of Ec2Processor containing an already initialized ec2 client
func (*Ec2Processor) RetagInstances ¶
func (e *Ec2Processor) RetagInstances(m *mapper.Mapper)
RetagInstances parses all running and stopped instances and retags them
type ElasticBeanstalkProcessor ¶
type ElasticBeanstalkProcessor struct {
// contains filtered or unexported fields
}
ElasticBeanstalkProcessor holds the elasticbeanstalk-related actions
func NewElasticBeanstalkProcessor ¶
func NewElasticBeanstalkProcessor(sess *session.Session) *ElasticBeanstalkProcessor
NewElasticBeanstalkProcessor creates a new instance of ElasticBeanstalkProcessor containing an already initialized elasticbeanstalk client
func (*ElasticBeanstalkProcessor) GetTags ¶
func (p *ElasticBeanstalkProcessor) GetTags(resourceID *string) ([]*elasticbeanstalk.Tag, error)
GetTags gets the tags allocated to an elasticbeanstalk resource
func (*ElasticBeanstalkProcessor) RetagEnvironments ¶
func (p *ElasticBeanstalkProcessor) RetagEnvironments(m *mapper.Mapper)
RetagEnvironments parses all environments and retags them
func (*ElasticBeanstalkProcessor) SetTags ¶
func (p *ElasticBeanstalkProcessor) SetTags(resourceID *string, tags []*mapper.TagItem) error
SetTags sets a group of tag on an elasticbeanstalk resource
func (*ElasticBeanstalkProcessor) TagsToMap ¶
func (p *ElasticBeanstalkProcessor) TagsToMap(tagsInput []*elasticbeanstalk.Tag) map[string]string
TagsToMap transform the elasticbeanstalk tags structure into a map[string]string for easier manipulations
type ElkProcessor ¶
type ElkProcessor struct {
// contains filtered or unexported fields
}
ElkProcessor holds the elasticsearch-related actions
func NewElkProcessor ¶
func NewElkProcessor(sess *session.Session) *ElkProcessor
NewElkProcessor creates a new instance of ElkProcessor containing an already initialized elasticsearchservice client
func (*ElkProcessor) GetTags ¶
func (p *ElkProcessor) GetTags(resourceID *string) ([]*elasticsearchservice.Tag, error)
GetTags gets the tags allocated to an elasticsearchservice resource
func (*ElkProcessor) RetagDomains ¶
func (p *ElkProcessor) RetagDomains(m *mapper.Mapper)
RetagDomains parses all elasticsearch domains and retags them
func (*ElkProcessor) SetTags ¶
func (p *ElkProcessor) SetTags(resourceID *string, tags []*mapper.TagItem) error
SetTags sets tags on an elasticsearchservice resource
func (*ElkProcessor) TagsToMap ¶
func (p *ElkProcessor) TagsToMap(tagsInput []*elasticsearchservice.Tag) map[string]string
TagsToMap transform the elasticsearchservice tags structure into a map[string]string for easier manipulations
type RdsProcessor ¶
type RdsProcessor struct {
// contains filtered or unexported fields
}
RdsProcessor holds the rds-related actions
func NewRdsProcessor ¶
func NewRdsProcessor(sess *session.Session) *RdsProcessor
NewRdsProcessor creates a new instance of RdsProcessor containing an already initialized rds client
func (*RdsProcessor) GetTags ¶
func (p *RdsProcessor) GetTags(resourceID *string) ([]*rds.Tag, error)
GetTags gets the tags allocated to an rds resource
func (*RdsProcessor) RetagClusters ¶
func (p *RdsProcessor) RetagClusters(m *mapper.Mapper)
RetagClusters parses all clusters and retags them
func (*RdsProcessor) RetagInstances ¶
func (p *RdsProcessor) RetagInstances(m *mapper.Mapper)
RetagInstances parses all instances and retags them
type RedshiftProcessor ¶
type RedshiftProcessor struct {
// contains filtered or unexported fields
}
RedshiftProcessor holds the redshift-related actions
func NewRedshiftProcessor ¶
func NewRedshiftProcessor(sess *session.Session) (*RedshiftProcessor, error)
NewRedshiftProcessor creates a new instance of RedshiftProcessor containing an already initialized redshift client
func (*RedshiftProcessor) GetTags ¶
func (p *RedshiftProcessor) GetTags(resourceID *string) ([]*redshift.TaggedResource, error)
GetTags gets the tags allocated to an redshift resource
func (*RedshiftProcessor) RetagClusters ¶
func (p *RedshiftProcessor) RetagClusters(m *mapper.Mapper)
RetagClusters parses all clusters and retags them
func (*RedshiftProcessor) SetTags ¶
func (p *RedshiftProcessor) SetTags(resourceID *string, tags []*mapper.TagItem) error
SetTags sets tags on an redshift resource
func (*RedshiftProcessor) TagsToMap ¶
func (p *RedshiftProcessor) TagsToMap(tagsInput []*redshift.TaggedResource) map[string]string
TagsToMap transform the redshift tags structure into a map[string]string for easier manipulations
type S3Processor ¶
type S3Processor struct {
// contains filtered or unexported fields
}
S3Processor holds the s3-related actions
func NewS3Processor ¶
func NewS3Processor(sess *session.Session) *S3Processor
NewS3Processor creates a new instance of S3Processor containing an already initialized s3 client
func (*S3Processor) RetagBuckets ¶
func (e *S3Processor) RetagBuckets(m mapper.Iface)
RetagBuckets parses all buckets and retags them