kube

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(master, kubeConfigLocation string) (*kubernetes.Clientset, error)

GetClient creates a config from the given master and kubeconfig location on disk, then creates a new kubernetes Clientset from that config

func New

func New(c kubernetes.Interface, namespace string) storage.Store

New initializes a new storage backend.

func NewBuildFromSecret

func NewBuildFromSecret(secret v1.Secret) *brigade.Build

NewBuildFromSecret creates a Build object from a secret.

func NewJobFromPod

func NewJobFromPod(pod v1.Pod) *brigade.Job

NewJobFromPod parses the pod object metadata and deserializes it into a Job.

func NewProjectFromSecret

func NewProjectFromSecret(secret *v1.Secret, namespace string) (*brigade.Project, error)

NewProjectFromSecret creates a new project from a secret.

func NewWorkerFromPod

func NewWorkerFromPod(pod v1.Pod) *brigade.Worker

NewWorkerFromPod creates a new *Worker from a pod definition.

func SecretFromProject added in v0.15.0

func SecretFromProject(project *brigade.Project) (v1.Secret, error)

SecretFromProject takes a project and converts it to a Kubernetes Secret.

Types

type SecretValues added in v0.10.0

type SecretValues map[string][]byte

SecretValues provides accessor methods for secrets.

func (SecretValues) Bytes added in v0.10.0

func (sv SecretValues) Bytes(key string) []byte

Bytes returns the value in the map for the provided key.

func (SecretValues) String added in v0.10.0

func (sv SecretValues) String(key string) string

Bytes returns the string value in the map for the provided key.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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