containertagger

package
v0.0.0-...-baa23e0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerTagger

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

ContainerTagger is a simple component that injects host tags and CAPI metadata into cloudfoundry containers. It listens to container collection events from the workloadmeta store and injects tags accordingly if it detects a diff with the previously injected tags.

func NewContainerTagger

func NewContainerTagger(wmeta workloadmeta.Component) (*ContainerTagger, error)

NewContainerTagger creates a new container tagger. Call Start to start the container tagger.

func (*ContainerTagger) Start

func (c *ContainerTagger) Start(ctx context.Context)

Start starts the container tagger. Cancel the context to stop the container tagger.

Jump to

Keyboard shortcuts

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