providers

package
v0.0.0-...-ed4bd9e Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(logger *logrus.Entry)

SetLogger is used to pass the loger from the main program

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

func (*CwProcessor) SetTags

func (p *CwProcessor) SetTags(resourceID *string, tags []*mapper.TagItem) error

SetTags sets tags on an cloudwatchLog resource

func (*CwProcessor) TagsToMap

func (p *CwProcessor) TagsToMap(tagsInput map[string]*string) map[string]string

TagsToMap transform the cw tags structure into a map[string]string for easier manipulations

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

func (*Ec2Processor) SetTags

func (e *Ec2Processor) SetTags(resourceID *string, tags []*mapper.TagItem) error

SetTags sets tags on an ec2 resource

func (*Ec2Processor) TagsToMap

func (e *Ec2Processor) TagsToMap(tagsInput []*ec2.Tag) map[string]string

TagsToMap transform the ec2 tags structure into a map[string]string for easier manipulations

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

func (*RdsProcessor) SetTags

func (p *RdsProcessor) SetTags(resourceID *string, tags []*mapper.TagItem) error

SetTags sets tags on an rds resource

func (*RdsProcessor) TagsToMap

func (p *RdsProcessor) TagsToMap(tagsInput []*rds.Tag) map[string]string

TagsToMap transform the rds tags structure into a map[string]string for easier manipulations

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

func (*S3Processor) SetTags

func (e *S3Processor) SetTags(resourceID *string, tags []*mapper.TagItem) error

SetTags sets tags on a s3 bucket

func (*S3Processor) TagsToMap

func (e *S3Processor) TagsToMap(tagsInput []*s3.Tag) map[string]string

TagsToMap transform the s3 tags structure into a map[string]string for easier manipulations

Jump to

Keyboard shortcuts

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