kubernetes

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YAMLObjectSerializer

type YAMLObjectSerializer struct {
	// contains filtered or unexported fields
}

YAMLObjectSerializer handles YAML based raw data, by decoding and encoding from/into Kubernetes model objects.

func NewYAMLObjectSerializer

func NewYAMLObjectSerializer(logger log.Logger) YAMLObjectSerializer

NewYAMLObjectSerializer returns a new YAMLNewYAMLObjectSerializer.

func (YAMLObjectSerializer) DecodeObjects

func (y YAMLObjectSerializer) DecodeObjects(ctx context.Context, raw []byte) ([]model.K8sObject, error)

DecodeObjects decodes YAML data into objects, supports multiple objects on the same YAML raw data.

func (YAMLObjectSerializer) EncodeObjects

func (y YAMLObjectSerializer) EncodeObjects(ctx context.Context, objs []model.K8sObject) ([]byte, error)

EncodeObjects encodes Kubernetes objects into YAML data, supports multiple objects on the same YAML raw data.

Source Files

Jump to

Keyboard shortcuts

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