Documentation ¶
Index ¶
- func IngressFromManifest(fileName string) (*extensions.Ingress, error)
- func IngressToManifest(ing *extensions.Ingress, path string) error
- func PodFromManifest(filename string) (*v1.Pod, error)
- func RcFromManifest(fileName string) (*v1.ReplicationController, error)
- func StatefulSetFromManifest(fileName, ns string) (*apps.StatefulSet, error)
- func SvcFromManifest(fileName string) (*v1.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IngressFromManifest ¶
func IngressFromManifest(fileName string) (*extensions.Ingress, error)
IngressFromManifest reads a .json/yaml file and returns the ingress in it.
func IngressToManifest ¶ added in v1.10.8
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 ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.