deployment

package
v3.0.1-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	Name       string
	Replicas   uint
	Status     *Status
	Containers []container.Container
	// contains filtered or unexported fields
}

func DeploymentFromKube

func DeploymentFromKube(kubeDeployment model.Deployment) Deployment

func (Deployment) MarshalJSON

func (depl Deployment) MarshalJSON() ([]byte, error)

func (Deployment) MarshalYAML

func (depl Deployment) MarshalYAML() (interface{}, error)

func (Deployment) RenderJSON

func (depl Deployment) RenderJSON() (string, error)

func (Deployment) RenderTable

func (depl Deployment) RenderTable() string

func (Deployment) RenderYAML

func (depl Deployment) RenderYAML() (string, error)

func (*Deployment) TableHeaders

func (_ *Deployment) TableHeaders() []string

func (*Deployment) TableRows

func (depl *Deployment) TableRows() [][]string

func (*Deployment) ToKube

func (depl *Deployment) ToKube() model.Deployment

type DeploymentList

type DeploymentList []Deployment

func DeploymentListFromKube

func DeploymentListFromKube(kubeList []model.Deployment) DeploymentList

func (DeploymentList) RenderJSON

func (list DeploymentList) RenderJSON() (string, error)

func (DeploymentList) RenderTable

func (list DeploymentList) RenderTable() string

func (DeploymentList) RenderYAML

func (list DeploymentList) RenderYAML() (string, error)

func (DeploymentList) TableHeaders

func (_ DeploymentList) TableHeaders() []string

func (DeploymentList) TableRows

func (list DeploymentList) TableRows() [][]string

type Status

type Status struct {
	CreatedAt           time.Time
	UpdatedAt           time.Time
	Replicas            uint
	ReadyReplicas       uint
	AvailableReplicas   uint
	UnavailableReplicas uint
	UpdatedReplicas     uint
}

func StatusFromKubeStatus

func StatusFromKubeStatus(kubeStatus kubeModel.DeploymentStatus) Status

func (*Status) ColumnReplicas

func (status *Status) ColumnReplicas() string

func (*Status) ColumnWhen

func (status *Status) ColumnWhen() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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