Documentation
¶
Index ¶
- func GetClient(master, kubeConfigLocation string) (*kubernetes.Clientset, error)
- func New(c kubernetes.Interface, namespace string) storage.Store
- func NewBuildFromSecret(secret v1.Secret) *brigade.Build
- func NewJobFromPod(pod v1.Pod) *brigade.Job
- func NewProjectFromSecret(secret *v1.Secret, namespace string) (*brigade.Project, error)
- func NewWorkerFromPod(pod v1.Pod) *brigade.Worker
- type SecretValues
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 ¶
NewBuildFromSecret creates a Build object from a secret.
func NewJobFromPod ¶
NewJobFromPod parses the pod object metadata and deserializes it into a Job.
func NewProjectFromSecret ¶
NewProjectFromSecret creates a new project from a secret.
func NewWorkerFromPod ¶
NewWorkerFromPod creates a new *Worker from a pod definition.
Types ¶
type SecretValues ¶ added in v0.10.0
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.
Click to show internal directories.
Click to hide internal directories.