decode

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package decode is used for decoding serialized data in Nomos resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	// DecodeResources reads the bytes in the RawExtensions representing k8s
	// resources and returns a slice of all the resources grouped by their
	// respective GroupVersionKind.
	DecodeResources(genericResources []v1.GenericResources) (map[schema.GroupVersionKind][]*unstructured.Unstructured, error)
}

Decoder decodes GenericResources from NamespaceConfigs / ClusterConfigs to Unstructured structs.

func NewGenericResourceDecoder

func NewGenericResourceDecoder(scheme *runtime.Scheme) Decoder

NewGenericResourceDecoder returns a new genericResourceDecoder.

Jump to

Keyboard shortcuts

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