kube

package
v0.0.0-...-4d5a555 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AgentVersion string

Functions

This section is empty.

Types

type Client

type Client interface {
	DeleteJob(namespace string, name string) error
	LogsForJob(namespace string, name string) (string, error)
	GetResources(namespace string, manifest string) ([]*model_helm.ReleaseResource, error)
	CreateOrUpdateService(namespace string, serviceStr string) (*core_v1.Service, error)
	CreateOrUpdateIngress(namespace string, ingressStr string) (*ext_v1beta1.Ingress, error)
	GetClientSet() (internalclientset.Interface, error)
	DeleteService(namespace string, name string) error
	DeleteIngress(namespace string, name string) error
	StartResources(namespace string, manifest string) error
	StopResources(namespace string, manifest string) error
	GetLogs(namespace string, pod string, container string) (io.ReadCloser, error)
	Exec(namespace string, podName string, containerName string, local io.ReadWriter) error
	LabelObjects(namespace string, manifest string, releaseName string, app string, version string) (*bytes.Buffer, error)
	LabelRepoObj(namespace, manifest, version string, commit string) (*bytes.Buffer, error)
	GetService(namespace string, serviceName string) (string, error)
	GetIngress(namespace string, ingressName string) (string, error)
	GetSecret(namespace string, secretName string) (string, error)
	GetC7nHelmRelease(namespace string, releaseName string) (*v1alpha1.C7NHelmRelease, error)
	GetKubeClient() *kubernetes.Clientset
	GetC7NClient() *chrclientset.Clientset
}

func NewClient

func NewClient(f cmdutil.Factory) (Client, error)

type Result

type Result []*resource.Info

Jump to

Keyboard shortcuts

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