deployment

package
v0.6.13 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deploy

func Deploy(botCommand *bot.Cmd) (string, error)

Types

type ContainerStatus

type ContainerStatus struct {
	Name  string                       `json:"name"`
	State map[string]map[string]string `json:"state"`
}

type Deployment

type Deployment struct {
	Name          string
	Kubeconfig    string
	Namespace     string
	ContainerName string
	RepositoryURI string
	Version       string
	Config        string
}

func NewDeployment

func NewDeployment(component *bot.Component, container *bot.Container, cluster *bot.Cluster, version string) *Deployment

func (*Deployment) Apply

func (d *Deployment) Apply() (bool, error)

func (*Deployment) GetPods

func (d *Deployment) GetPods() []string

type KubectlOutput

type KubectlOutput struct {
	Status struct {
		ContainerStatuses []ContainerStatus
	} `json:"status"`
}

func NewKubectlOutput

func NewKubectlOutput(output string) (ko *KubectlOutput)

type Pod

type Pod struct {
	Metadata struct {
		Name              string `json:"name"`
		CreationTimestamp string `json:"creationTimestamp"`
	} `json:"metadata"`
}

type Pods

type Pods struct {
	Items []Pod
}

func NewPods

func NewPods(kubeconfig, namespace string) (p *Pods)

func (*Pods) ParseFromKubectlOutput

func (p *Pods) ParseFromKubectlOutput(kubeconfig, namespace string) error

Jump to

Keyboard shortcuts

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