tags

package
v1.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) Reconcile

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

Reconcile ensures tags are correct.

type TagScope

type TagScope interface {
	logr.Logger
	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