unstructured

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFixedValue added in v0.4.0

func ApplyFixedValue(t v1alpha1.SnapshotConfig, manifests []metaV1.Unstructured) error

func BytesToUnstructured

func BytesToUnstructured(data []byte) (*schema.GroupVersionKind, *metaV1.Unstructured, error)

func Decode

func Decode(source string) ([]metaV1.Unstructured, []error)

func Encode

func Encode(arr []metaV1.Unstructured) ([]byte, error)

func Replace

func Replace(obj metaV1.Unstructured, key, value string) (*metaV1.Unstructured, error)

func SetLogger added in v0.3.1

func SetLogger(slogr *slog.Logger)

func StringToUnstructured

func StringToUnstructured(data string) (*schema.GroupVersionKind, *metaV1.Unstructured, error)

func UnstructuredToJSONBytes

func UnstructuredToJSONBytes(obj *metaV1.Unstructured) ([]byte, error)

Types

type DiffOptions added in v0.3.1

type DiffOptions struct {
	ContextLineN int
}

func MergeDiffOptions added in v0.3.1

func MergeDiffOptions(opts []DiffOptions) DiffOptions

func (*DiffOptions) Diff added in v0.3.1

func (o *DiffOptions) Diff(x, y string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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