Documentation ¶
Index ¶
- Variables
- func GetProvisioner() *kubernetesProvisioner
- type ClusterClient
- func (c *ClusterClient) AppNamespace(app provision.App) (string, error)
- func (c *ClusterClient) GetCluster() *provTypes.Cluster
- func (c *ClusterClient) Namespace() string
- func (c *ClusterClient) OvercommitFactor(pool string) (int64, error)
- func (c *ClusterClient) PoolNamespace(pool string) string
- func (c *ClusterClient) RestConfig() *rest.Config
- func (c *ClusterClient) SetTimeout(timeout time.Duration) error
- type InspectData
- type KubeClient
- func (c *KubeClient) BuildImage(name string, inputStream io.Reader, output io.Writer, ctx context.Context) error
- func (c *KubeClient) BuildPod(a provision.App, evt *event.Event, archiveFile io.Reader, tag string) (string, error)
- func (c *KubeClient) ImageTagPushAndInspect(a provision.App, imageID, newImage string) (*docker.Image, string, *provision.TsuruYamlData, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientForConfig = func(conf *rest.Config) (kubernetes.Interface, error) { return kubernetes.NewForConfig(conf) }
View Source
var ExtensionsClientForConfig = func(conf *rest.Config) (apiextensionsclientset.Interface, error) { return apiextensionsclientset.NewForConfig(conf) }
View Source
var TsuruClientForConfig = func(conf *rest.Config) (tsuruv1clientset.Interface, error) { return tsuruv1clientset.NewForConfig(conf) }
Functions ¶
func GetProvisioner ¶
func GetProvisioner() *kubernetesProvisioner
Types ¶
type ClusterClient ¶
type ClusterClient struct { kubernetes.Interface `json:"-" bson:"-"` *provTypes.Cluster // contains filtered or unexported fields }
func NewClusterClient ¶
func NewClusterClient(clust *provTypes.Cluster) (*ClusterClient, error)
func (*ClusterClient) AppNamespace ¶
func (c *ClusterClient) AppNamespace(app provision.App) (string, error)
func (*ClusterClient) GetCluster ¶
func (c *ClusterClient) GetCluster() *provTypes.Cluster
func (*ClusterClient) Namespace ¶
func (c *ClusterClient) Namespace() string
Namespace returns the namespace to be used by Custom Resources
func (*ClusterClient) OvercommitFactor ¶
func (c *ClusterClient) OvercommitFactor(pool string) (int64, error)
func (*ClusterClient) PoolNamespace ¶
func (c *ClusterClient) PoolNamespace(pool string) string
func (*ClusterClient) RestConfig ¶
func (c *ClusterClient) RestConfig() *rest.Config
func (*ClusterClient) SetTimeout ¶
func (c *ClusterClient) SetTimeout(timeout time.Duration) error
type InspectData ¶
type InspectData struct { Image docker.Image TsuruYaml provision.TsuruYamlData Procfile string }
type KubeClient ¶
type KubeClient struct{}
func (*KubeClient) BuildImage ¶
func (*KubeClient) ImageTagPushAndInspect ¶
func (c *KubeClient) ImageTagPushAndInspect(a provision.App, imageID, newImage string) (*docker.Image, string, *provision.TsuruYamlData, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
pkg
|
|
apis/tsuru/v1
Package v1 is the v1 version of the API.
|
Package v1 is the v1 version of the API. |
client/clientset/versioned
This package has the automatically generated clientset.
|
This package has the automatically generated clientset. |
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
client/clientset/versioned/typed/tsuru/v1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
client/clientset/versioned/typed/tsuru/v1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |
Click to show internal directories.
Click to hide internal directories.