model

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ManifestReader

func ManifestReader(ctx context.Context, src, baseDir string) (reader io.ReadCloser)

Provides a reader for the given manifest dir or URL.

func WriteManifest

func WriteManifest(obj []*K8sObject, writer io.Writer) (err error)

Types

type K8sObject

type K8sObject struct {
	APIVersion     string
	Kind           string
	Namespace      string
	Name           string
	ConditionTypes []string
	// contains filtered or unexported fields
}

func FromMap

func FromMap(o map[string]interface{}) *K8sObject

func FromReader

func FromReader(f io.Reader) (obj []*K8sObject, err error)

func (*K8sObject) CrdGvk

func (o *K8sObject) CrdGvk() string

func (*K8sObject) Gvk

func (o *K8sObject) Gvk() string

func (*K8sObject) ID

func (o *K8sObject) ID() string

func (*K8sObject) Labels

func (o *K8sObject) Labels() (l map[string]string)

func (*K8sObject) OwnerReferences

func (o *K8sObject) OwnerReferences() (r []*OwnerReference)

func (*K8sObject) Validate

func (o *K8sObject) Validate() (err error)

func (*K8sObject) WriteYaml

func (o *K8sObject) WriteYaml(writer io.Writer) (err error)

type OwnerReference

type OwnerReference struct {
	APIVersion string
	Kind       string
	Name       string
	UID        string
}

Jump to

Keyboard shortcuts

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