yaml

package
v1.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scheme

func Scheme(cl client.Client) *runtime.Scheme

Types

type Deploy

type Deploy struct {
	Name string
	// contains filtered or unexported fields
}

func NewDeploy

func NewDeploy(name string) *Deploy

func (*Deploy) Apply

func (d *Deploy) Apply(objs []runtime.Object, cl client.Client) error

func (*Deploy) CreateOrPatch added in v1.0.5

func (d *Deploy) CreateOrPatch(yamlText string, cl client.Client, opts Option) error

func (*Deploy) Log

func (d *Deploy) Log() logx.Logger

func (*Deploy) ReNew

func (d *Deploy) ReNew(yamlText string, rs *runtime.Scheme, opts Option) ([]runtime.Object, error)

ReNewDeploymentResource can use a fake scheme runtime.NewScheme()

func (*Deploy) UpdatedAnnotations

func (d *Deploy) UpdatedAnnotations(annotations map[string]string) map[string]string

func (*Deploy) Verify

func (d *Deploy) Verify(yamlText string) []error

type Option

type Option struct {
	NameSpace string
	Labels    map[string]string
}

type Yamler

type Yamler interface {
	Log() logx.Logger
	Verify(yamlText string) []error
	ReNew(yamlText string, rs *runtime.Scheme, opts Option) ([]runtime.Object, error)
}

Jump to

Keyboard shortcuts

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