Documentation ¶
Index ¶
- type DockerHub
- type ImageData
- type Kubernetes
- func (k *Kubernetes) CreateDeployment(d *extensions.Deployment) (*extensions.Deployment, error)
- func (k *Kubernetes) Deployments() ([]extensions.Deployment, error)
- func (k *Kubernetes) Namespaces() ([]api.Namespace, error)
- func (k *Kubernetes) Pods(namespace string) ([]api.Pod, error)
- func (k *Kubernetes) ReplicationControllers(namespace string) ([]api.ReplicationController, error)
- type Tag
- type TagVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerHub ¶
DockerHub manages Docker hub images
func NewDockerHubClient ¶
func NewDockerHubClient() *DockerHub
NewDockerHubClient creates a default docker hub client
type ImageData ¶
type ImageData struct {
Tags []Tag
}
ImageData has image info
func (*ImageData) GetLatestTag ¶
GetLatestTag returns the latest tag if a tag "latest" is found it returns "latest"
type Kubernetes ¶
type Kubernetes struct {
// contains filtered or unexported fields
}
Kubernetes is a simplified client
func NewKubernetesClient ¶
func NewKubernetesClient(config string, namespace string) (*Kubernetes, error)
NewKubernetesClient creates a new kubernetes client using the config file
func (*Kubernetes) CreateDeployment ¶
func (k *Kubernetes) CreateDeployment(d *extensions.Deployment) (*extensions.Deployment, error)
CreateDeployment creates a deployment
func (*Kubernetes) Deployments ¶
func (k *Kubernetes) Deployments() ([]extensions.Deployment, error)
Deployments return kubernetes deployments
func (*Kubernetes) Namespaces ¶
func (k *Kubernetes) Namespaces() ([]api.Namespace, error)
Namespaces return all kubernetes namespaces
func (*Kubernetes) Pods ¶
func (k *Kubernetes) Pods(namespace string) ([]api.Pod, error)
Pods return pods
func (*Kubernetes) ReplicationControllers ¶
func (k *Kubernetes) ReplicationControllers(namespace string) ([]api.ReplicationController, error)
ReplicationControllers return replication controllers
type Tag ¶
type Tag struct { Layer string `json:"layer"` Name string `json:"name"` Version TagVersion `json:"-"` }
Tag is a docker hub image tag
Click to show internal directories.
Click to hide internal directories.