manifest

package
v0.0.0-...-db5eef7 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DaemonSetFromManifest

func DaemonSetFromManifest(fileName, ns string) (*apps.DaemonSet, error)

DaemonSetFromManifest returns a DaemonSet from a manifest stored in fileName in the Namespace indicated by ns.

func IngressFromManifest

func IngressFromManifest(fileName string) (*extensions.Ingress, error)

IngressFromManifest reads a .json/yaml file and returns the ingress in it.

func IngressToManifest

func IngressToManifest(ing *extensions.Ingress, path string) error

IngressToManifest generates a yaml file in the given path with the given ingress. Assumes that a directory exists at the given path.

func PodFromManifest

func PodFromManifest(filename string) (*v1.Pod, error)

PodFromManifest reads a .json/yaml file and returns the pod in it.

func RcFromManifest

func RcFromManifest(fileName string) (*v1.ReplicationController, error)

RcFromManifest reads a .json/yaml file and returns the rc in it.

func StatefulSetFromManifest

func StatefulSetFromManifest(fileName, ns string) (*apps.StatefulSet, error)

StatefulSetFromManifest returns a StatefulSet from a manifest stored in fileName in the Namespace indicated by ns.

func SvcFromManifest

func SvcFromManifest(fileName string) (*v1.Service, error)

SvcFromManifest reads a .json/yaml file and returns the service in it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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