kubernetes

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalK8SResources

func MarshalK8SResources(resources any) ([]byte, error)

MarshalK8SResources marshals every field of a struct into a k8s resource YAML.

func MarshalK8SResourcesList

func MarshalK8SResourcesList(resources []runtime.Object) ([]byte, error)

MarshalK8SResourcesList marshals every element of a slice into a k8s resource YAML.

func UnmarshalK8SResources

func UnmarshalK8SResources(data []byte, into any) error

UnmarshalK8SResources takes YAML and converts it into a k8s resources struct.

Types

type ConfigMaps

type ConfigMaps []*k8s.ConfigMap

ConfigMaps represent a list of k8s ConfigMap.

func (ConfigMaps) Marshal

func (s ConfigMaps) Marshal() ([]byte, error)

Marshal marshals config maps into multiple YAML documents.

type Marshaler

type Marshaler interface {
	Marshal() ([]byte, error)
}

Marshaler is used by all k8s resources that can be marshaled to YAML.

type Secrets

type Secrets []*k8s.Secret

Secrets represent a list of k8s Secret.

func (Secrets) Marshal

func (s Secrets) Marshal() ([]byte, error)

Marshal marshals secrets into multiple YAML documents.

Jump to

Keyboard shortcuts

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