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) ImageTagPushAndInspect ¶
func (c *KubeClient) ImageTagPushAndInspect(a provision.App, imageID, newImage string) (*docker.Image, string, *provision.TsuruYamlData, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.