builder

package
v0.0.0-...-52d01f9 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 1 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 {
	Object client.Object
	Name   string
}

Builder is a useful wrapper around core resources in Kubernetes. It provides a simple way to add values

func NewBuilder

func NewBuilder(object client.Object) *Builder

func (*Builder) Annotations

func (b *Builder) Annotations() MapBuilder

func (*Builder) Labels

func (b *Builder) Labels() MapBuilder

type MapBuilder

type MapBuilder map[string]string

func (MapBuilder) Add

func (b MapBuilder) Add(key, value string) MapBuilder

func (MapBuilder) AddMany

func (b MapBuilder) AddMany(more map[string]string) MapBuilder

func (MapBuilder) Remove

func (b MapBuilder) Remove(key string) MapBuilder

Directories

Path Synopsis
resources

Jump to

Keyboard shortcuts

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