Documentation ¶
Index ¶
- Constants
- func BuildParamsToTagSpecification(ec2ResourceType ec2Types.ResourceType, tags map[string]string) ec2Types.TagSpecification
- func Diff(t1 map[string]string, t2 map[string]string) map[string]string
- func ToMap(src []ec2Types.Tag) map[string]string
- type BuildParams
- type Client
- type CreateTagsInput
Constants ¶
View Source
const ( NameAWSProviderPrefix = "github.com/giantswarm/aws-vpc-operator/" NameAWSRole = NameAWSProviderPrefix + "role" )
Variables ¶
This section is empty.
Functions ¶
func BuildParamsToTagSpecification ¶
func BuildParamsToTagSpecification(ec2ResourceType ec2Types.ResourceType, tags map[string]string) ec2Types.TagSpecification
BuildParamsToTagSpecification builds a TagSpecification for the specified resource type.
Types ¶
type BuildParams ¶
type BuildParams struct { // ClusterName is the cluster associated with the resource. ClusterName string // ResourceID is the unique identifier of the resource to be tagged. ResourceID string // Name is the name of the resource, it's applied as the tag "Name" on AWS. Name string // Role is the role associated to the resource. Role string // Any additional tags to be added to the resource. Additional map[string]string }
BuildParams is used to build tags around an aws resource.
Copied from sigs.k8s.io/cluster-api-provider-aws.
func (BuildParams) Build ¶
func (p BuildParams) Build() map[string]string
Build builds tags including the cluster tag and returns them in map form.
Copied from sigs.k8s.io/cluster-api-provider-aws.
Click to show internal directories.
Click to hide internal directories.