tags

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToEC2

func ConvertToEC2(tags map[string]string) []*ec2.Tag

ConvertToEC2 will convert tags to EC2 tags

func ConvertToELBV2

func ConvertToELBV2(tags map[string]string) []*elbv2.Tag

ConvertToELBV2 will convert tags to ELBV2 Tags

Types

type Controller

type Controller interface {
	// ReconcileELB ensures the tag for ELB resources denoted by arn have specified tags.
	ReconcileELB(ctx context.Context, arn string, desiredTags map[string]string) error

	// ReconcileEC2WithCurTags ensures the tag for EC2 resources denoted by resourceID have specified tags by reconcile from curTags.
	ReconcileEC2WithCurTags(ctx context.Context, resourceID string, desiredTags map[string]string, curTags map[string]string) error
}

Controller manages tags on a resource

func NewController

func NewController(cloud aws.CloudAPI) Controller

NewController constructs a new tags controller

type MockController

type MockController struct {
	mock.Mock
}

MockController is an autogenerated mock type for the Controller type

func (*MockController) ReconcileEC2WithCurTags

func (_m *MockController) ReconcileEC2WithCurTags(ctx context.Context, resourceID string, desiredTags map[string]string, curTags map[string]string) error

ReconcileEC2WithCurTags provides a mock function with given fields: ctx, resourceID, desiredTags, curTags

func (*MockController) ReconcileELB

func (_m *MockController) ReconcileELB(ctx context.Context, arn string, desiredTags map[string]string) error

ReconcileELB provides a mock function with given fields: ctx, arn, desiredTags

Jump to

Keyboard shortcuts

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