tags

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureClient added in v1.6.0

type AzureClient struct {
	// contains filtered or unexported fields
}

AzureClient contains the Azure go-sdk client.

func NewClient added in v1.6.0

func NewClient(auth azure.Authorizer) *AzureClient

NewClient creates a new tags client from subscription ID.

func (*AzureClient) GetAtScope added in v1.6.0

func (ac *AzureClient) GetAtScope(ctx context.Context, scope string) (resources.TagsResource, error)

GetAtScope sends the get at scope request.

func (*AzureClient) UpdateAtScope added in v1.6.0

func (ac *AzureClient) UpdateAtScope(ctx context.Context, scope string, parameters resources.TagsPatchResource) (resources.TagsResource, error)

UpdateAtScope this operation allows replacing, merging or selectively deleting tags on the specified resource or subscription.

type Service

type Service struct {
	Scope TagScope
	// contains filtered or unexported fields
}

Service provides operations on Azure resources.

func New

func New(scope TagScope) *Service

New creates a new service.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context) error

Delete is a no-op as the tags get deleted as part of VM deletion.

func (*Service) IsManaged added in v1.3.0

func (s *Service) IsManaged(ctx context.Context) (bool, error)

IsManaged returns always returns true as CAPZ does not support BYO tags.

func (*Service) Name added in v1.3.0

func (s *Service) Name() string

Name returns the service name.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) error

Reconcile ensures tags are correct.

type TagScope

type TagScope interface {
	azure.Authorizer
	ClusterName() string
	TagsSpecs() []azure.TagsSpec
	AnnotationJSON(string) (map[string]interface{}, error)
	UpdateAnnotationJSON(string, map[string]interface{}) error
}

TagScope defines the scope interface for a tags service.

Directories

Path Synopsis
Package mock_tags is a generated GoMock package.
Package mock_tags is a generated GoMock package.

Jump to

Keyboard shortcuts

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