kuberang

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKubernetes

func CheckKubernetes(skipCleanup bool) error

CheckKubernetes runs checks against a cluster. It expects to find a configured `kubectl` binary in the path.

Types

type DeploymentResponse

type DeploymentResponse struct {
	Status struct {
		AvaiableReplicas int64 `json:"availableReplicas"`
	} `json:"status"`
}

type KubeOutput

type KubeOutput struct {
	Success     bool
	CombinedOut string
	RawOut      []byte
}

func RunGetDeployment

func RunGetDeployment(name string) KubeOutput

func RunGetNamespace

func RunGetNamespace(name string) KubeOutput

func RunGetNodes

func RunGetNodes() KubeOutput

func RunGetPodByImage

func RunGetPodByImage(name string) KubeOutput

func RunGetService

func RunGetService(svcName string) KubeOutput

func RunKubectl

func RunKubectl(args ...string) KubeOutput

func RunPod

func RunPod(name string, image string, count int64) KubeOutput

func (KubeOutput) FirstPodName

func (ko KubeOutput) FirstPodName() string

func (KubeOutput) NamespaceStatus

func (ko KubeOutput) NamespaceStatus() string

func (KubeOutput) NodeCount

func (ko KubeOutput) NodeCount() int

func (KubeOutput) ObservedReplicaCount

func (ko KubeOutput) ObservedReplicaCount() int64

func (KubeOutput) PodIPs

func (ko KubeOutput) PodIPs() []string

func (KubeOutput) ServiceCluserIP

func (ko KubeOutput) ServiceCluserIP() string

type NamespaceResponse

type NamespaceResponse struct {
	Status struct {
		Phase string `json:"phase"`
	} `json:"status"`
}

type NodeResponse

type NodeResponse struct {
	Items []struct {
		Spec struct {
			Unschedulable bool `json:"unschedulable,omitempty"`
		} `json:"spec"`
	} `json:"items"`
}

type PodsResponse

type PodsResponse struct {
	Items []struct {
		Metadata struct {
			Name string `json:"name"`
		} `json:"metadata"`
		Status struct {
			PodIP string `json:"podIP"`
		} `json:"status"`
	} `json:"items"`
}

type ServiceResponse

type ServiceResponse struct {
	Spec struct {
		ClusterIP string `json:"clusterIP"`
	} `json:"spec"`
}

Jump to

Keyboard shortcuts

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