utils

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: GPL-3.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentCreate

func DeploymentCreate(client *kubernetes.Clientset, new *v1beta1.Deployment) (*v1beta1.Deployment, error)

DeploymentCreate is a wrapper which will attempt to create and/or up a deployment.

func IngressCreate

func IngressCreate(client *kubernetes.Clientset, new *v1beta1.Ingress) (*v1beta1.Ingress, error)

IngressCreate is a wrapper which will attempt to create and/or up an ingress.

func NamespaceCreate added in v0.6.0

func NamespaceCreate(client *kubernetes.Clientset, new *v1.Namespace) (*v1.Namespace, error)

NamespaceCreate is a wrapper which will only create a namespace.

func PersistentVolumeClaimCreate

func PersistentVolumeClaimCreate(client *kubernetes.Clientset, new *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error)

PersistentVolumeClaimCreate is used for creating new Persistent Volume Claims.

func PodCreate

func PodCreate(client *kubernetes.Clientset, pod *v1.Pod) (*v1.Pod, error)

PodCreate is used for creating a Pod object.

func PodExec

func PodExec(input PodExecInput) error

PodExec for running commands against a running pod. func PodExec(client *kubernetes.Clientset, config *rest.Config, w io.Writer, r io.Reader, namespace, name, container string, command []string) error {

func RoleCreate added in v0.6.0

func RoleCreate(client *kubernetes.Clientset, new *v1beta1.Role) (*v1beta1.Role, error)

RoleCreate is a wrapper which will attempt to create and/or up an Roles.

func SecretCreate

func SecretCreate(client *kubernetes.Clientset, new *v1.Secret) (*v1.Secret, error)

SecretCreate is a wrapper which will attempt to create and/or up a secret.

func ServiceCreate

func ServiceCreate(client *kubernetes.Clientset, new *v1.Service) (*v1.Service, error)

ServiceCreate is a wrapper which will attempt to create and/or up a service.

Types

type PodExecInput added in v0.7.0

type PodExecInput struct {
	Client    *kubernetes.Clientset
	Config    *rest.Config
	Stdin     bool
	Stdout    bool
	Stderr    bool
	Writer    io.Writer
	Reader    io.Reader
	Namespace string
	Pod       string
	Container string
	Command   []string
}

PodExecInput is used for passing params to the PodExec function.

Jump to

Keyboard shortcuts

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