decorator

package
v0.0.0-...-9c14589 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TagSeparators = []rune{':', '='}

Functions

func IsValidObjectName

func IsValidObjectName(name string) bool

func ParseTags

func ParseTags(tags []string, tagLabelPrefix string) map[string]string

func WithClient

func WithClient(c *metadata.Client) func(*Decorator)

func WithClientSet

func WithClientSet(k *kubernetes.Clientset) func(*Decorator)

func WithInterval

func WithInterval(i time.Duration) func(*Decorator)

func WithNodeName

func WithNodeName(n string) func(*Decorator)

func WithPrefix

func WithPrefix(p string) func(*Decorator)

func WithTagsPrefix

func WithTagsPrefix(t string) func(*Decorator)

func WithTimeout

func WithTimeout(t time.Duration) func(*Decorator)

Types

type Decorator

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

func NewDecorator

func NewDecorator(options ...func(*Decorator)) *Decorator

func (*Decorator) Start

func (d *Decorator) Start(ctx context.Context)

type KeyValueTag

type KeyValueTag struct {
	Key   string
	Value string
}

func ParseTag

func ParseTag(tag string, tagLabelPrefix string) (result *KeyValueTag)

Jump to

Keyboard shortcuts

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