lib

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

README

Deprecated code

Code should be deleted once apply command is refactored.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandFactory

func CommandFactory(context string, args []string) *exec.Cmd

func RunCmd

func RunCmd(cmd *exec.Cmd) (string, bool)

Types

type KubeType

type KubeType struct {
	Kind     string           `yaml:"kind"`
	Metadata KubeTypeMetadata `yaml:"metadata"`
	Status   KubeTypeStatus   `yaml:"status"`
	Deployed bool
}

func ParseYaml

func ParseYaml(data string) ([]*KubeType, error)

func (*KubeType) UpdateInfo

func (def *KubeType) UpdateInfo(clusterContext string, new bool, failIfAbsent bool) (*KubeType, error)

type KubeTypeMetadata

type KubeTypeMetadata struct {
	Name string `yaml:"name"`
}

type KubeTypeStatus

type KubeTypeStatus struct {
	AvailableReplicas   int `yaml:"availableReplicas"`
	ObservedGeneration  int `yaml:"observedGeneration"`
	Replicas            int `yaml:"replicas"`
	UpdatedReplicas     int `yaml:"updatedReplicas"`
	UnavailableReplicas int `yaml:"unavailableReplicas"`
}

Jump to

Keyboard shortcuts

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