Documentation ¶
Index ¶
- func ApplyFixedValue(t v1alpha1.SnapshotConfig, manifests []metaV1.Unstructured) error
- func BytesToUnstructured(data []byte) (*schema.GroupVersionKind, *metaV1.Unstructured, error)
- func Decode(source string) ([]metaV1.Unstructured, []error)
- func Encode(arr []metaV1.Unstructured) ([]byte, error)
- func Replace(obj metaV1.Unstructured, key, value string) (*metaV1.Unstructured, error)
- func SetLogger(slogr *slog.Logger)
- func StringToUnstructured(data string) (*schema.GroupVersionKind, *metaV1.Unstructured, error)
- func UnstructuredToJSONBytes(obj *metaV1.Unstructured) ([]byte, error)
- type DiffOptions
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 Replace ¶
func Replace(obj metaV1.Unstructured, key, value string) (*metaV1.Unstructured, error)
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
Click to show internal directories.
Click to hide internal directories.