k8s

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FormatYAML string = "yaml"
	FormatJSON string = "json"
)

Variables

This section is empty.

Functions

func CreatePatch

func CreatePatch(original, updated interface{}) ([]byte, error)

func MergeAnnotations

func MergeAnnotations(a1, a2 map[string]string) map[string]string

func SetLastAppliedCfg

func SetLastAppliedCfg(obj Annotatable) error

Types

type Annotatable

type Annotatable interface {
	GetAnnotations() map[string]string
	SetAnnotations(annotations map[string]string)
	runtime.Object
}

type ClientSet

type ClientSet struct {
	KpackClient   versioned.Interface
	K8sClient     k8s.Interface
	DynamicClient dynamic.Interface
	Namespace     string
}

type ClientSetProvider

type ClientSetProvider interface {
	GetClientSet(namespace string) (ClientSet, error)
}

type DefaultClientSetProvider

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

func (DefaultClientSetProvider) GetClientSet

func (d DefaultClientSetProvider) GetClientSet(namespace string) (ClientSet, error)

type JSONObjectPrinter

type JSONObjectPrinter struct{}

func (JSONObjectPrinter) PrintObject

func (j JSONObjectPrinter) PrintObject(obj runtime.Object, w io.Writer) error

type ObjectPrinter

type ObjectPrinter interface {
	PrintObject(obj runtime.Object, w io.Writer) error
}

func NewObjectPrinter

func NewObjectPrinter(format string) (ObjectPrinter, error)

type YAMLObjectPrinter

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

func (*YAMLObjectPrinter) PrintObject

func (y *YAMLObjectPrinter) PrintObject(obj runtime.Object, w io.Writer) error

Jump to

Keyboard shortcuts

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