manifest

package
v0.0.0-...-a0bf729 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(manifests []interface{}, patches []Patch) ([]byte, error)

Types

type Match

type Match struct {
	Kind      string            `json:"kind,omitempty"`
	Name      string            `json:"name,omitempty"`
	Namespace string            `json:"namespace,omitempty"`
	Labels    map[string]string `json:"labels,omitempty"`
}

type Patch

type Patch struct {
	Type    PatchType   `json:"type,omitempty"`
	Matches []Match     `json:"matches,omitempty"`
	Inline  interface{} `json:"inline,omitempty"`
}

type PatchType

type PatchType string
const (
	JsonMerge PatchType = "json-merge"
	JsonPatch PatchType = "json-patch"
)

Jump to

Keyboard shortcuts

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