options

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder is a struct for building container search options.

func New

func New(annotations map[string]string) *Builder

New contructs a new Builder.

func (*Builder) IsEnabled

func (b *Builder) IsEnabled(defaultEnabled bool, name string) bool

IsEnabled will return whether the container has the enabled annotation set. Will fall back to default, if not set true/false.

func (*Builder) Options

func (b *Builder) Options(name string) (*api.Options, error)

Options will build the tag options based on pod annotations and container name.

Jump to

Keyboard shortcuts

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