cloudtags

package
v14.24.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsTooManyCRsError

func IsTooManyCRsError(err error) bool

IsTooManyCRsError asserts tooManyCRsError.

Types

type CloudTags

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

func New

func New(config Config) (*CloudTags, error)

New CloudTags object

func (*CloudTags) GetTagsByCluster

func (ct *CloudTags) GetTagsByCluster(ctx context.Context, clusterID string) (map[string]string, error)

GetTagsByCluster the cloud tags from CAPI Cluster CR

type Config

type Config struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger
}

type Interface

type Interface interface {
	// Get Labels from cluster API object
	GetTagsByCluster(ctx context.Context, clusterID string) (map[string]string, error)
}

Jump to

Keyboard shortcuts

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