kubernetes

package
v0.0.0-...-9f1a7a8 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: BSD-3-Clause Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientForConfig = func(conf *rest.Config) (kubernetes.Interface, error) {
	return kubernetes.NewForConfig(conf)
}

Functions

func GetProvisioner

func GetProvisioner() *kubernetesProvisioner

Types

type ClusterClient

type ClusterClient struct {
	kubernetes.Interface `json:"-" bson:"-"`
	*cluster.Cluster
	// contains filtered or unexported fields
}

func NewClusterClient

func NewClusterClient(clust *cluster.Cluster) (*ClusterClient, error)

func (*ClusterClient) GetCluster

func (c *ClusterClient) GetCluster() *cluster.Cluster

func (*ClusterClient) Namespace

func (c *ClusterClient) Namespace() string

func (*ClusterClient) OvercommitFactor

func (c *ClusterClient) OvercommitFactor(pool string) (int64, error)

func (*ClusterClient) RestConfig

func (c *ClusterClient) RestConfig() *rest.Config

func (*ClusterClient) SetTimeout

func (c *ClusterClient) SetTimeout(timeout time.Duration) error

type KubeClient

type KubeClient struct{}

func (*KubeClient) BuildPod

func (c *KubeClient) BuildPod(a provision.App, evt *event.Event, archiveFile io.Reader, tag string) (string, error)

func (*KubeClient) ImageTagPushAndInspect

func (c *KubeClient) ImageTagPushAndInspect(a provision.App, imageID, newImage string) (*docker.Image, string, *provision.TsuruYamlData, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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