Documentation
¶
Index ¶
- func DeleteDeployment(c Cluster, name string) error
- func DeletePod(c Cluster, name string) error
- func DeploymentImage(d Deployment) string
- func DeploymentName(d Deployment) string
- func DeploymentReady(d Deployment) int32
- func DeploymentReplicas(d Deployment) int32
- func NamespaceName(n NamespaceItem) string
- func NodeName(n Node) string
- func NodeReady(n Node) bool
- func NodeRoles(n Node) []string
- func NodeVersion(n Node) string
- func PodAge(p Pod) string
- func PodEventName(event PodEvent) string
- func PodEventNamespace(event PodEvent) string
- func PodEventPhase(event PodEvent) string
- func PodEventReady(event PodEvent) bool
- func PodEventType(event PodEvent) string
- func PodIP(p Pod) string
- func PodLabels(p Pod) map[string]string
- func PodLogs(c Cluster, name string, handles ...ctx.Handle) (string, error)
- func PodLogsTail(c Cluster, name string, lines int64) (string, error)
- func PodName(p Pod) string
- func PodNode(p Pod) string
- func PodReady(p Pod) bool
- func PodRestarts(p Pod) int32
- func PodStatus(p Pod) string
- func RolloutRestart(c Cluster, name string) error
- func ScaleDeployment(c Cluster, name string, replicas int32) error
- func ServiceClusterIP(s Service) string
- func ServiceName(s Service) string
- func ServicePorts(s Service) []string
- func ServiceType(s Service) string
- func WaitDeploymentReady(c Cluster, name string, timeoutSeconds int64) error
- func WaitDeploymentReadyCtx(c Cluster, h ctx.Handle, name string) error
- func WaitPodReady(c Cluster, name string, timeoutSeconds int64) error
- func WaitPodReadyCtx(c Cluster, h ctx.Handle, name string) error
- type Cluster
- type Config
- type Deployment
- type DeploymentList
- type NamespaceItem
- type NamespaceList
- type Node
- type NodeList
- type Pod
- type PodEvent
- type PodList
- type Service
- type ServiceList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDeployment ¶
func DeploymentImage ¶
func DeploymentImage(d Deployment) string
func DeploymentName ¶
func DeploymentName(d Deployment) string
func DeploymentReady ¶
func DeploymentReady(d Deployment) int32
func DeploymentReplicas ¶
func DeploymentReplicas(d Deployment) int32
func NamespaceName ¶
func NamespaceName(n NamespaceItem) string
func NodeVersion ¶
func PodEventName ¶
func PodEventNamespace ¶
func PodEventPhase ¶
func PodEventReady ¶
func PodEventType ¶
func PodRestarts ¶
func RolloutRestart ¶
func ServiceClusterIP ¶
func ServiceName ¶
func ServicePorts ¶
func ServiceType ¶
func WaitDeploymentReady ¶
func WaitDeploymentReadyCtx ¶
Types ¶
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
func Deployments ¶
func Deployments(dl DeploymentList) []Deployment
func GetDeployment ¶
func GetDeployment(c Cluster, name string) (Deployment, error)
type DeploymentList ¶
type DeploymentList struct {
// contains filtered or unexported fields
}
func ListDeployments ¶
func ListDeployments(c Cluster) (DeploymentList, error)
type NamespaceItem ¶
type NamespaceItem struct {
// contains filtered or unexported fields
}
func Namespaces ¶
func Namespaces(nsl NamespaceList) []NamespaceItem
type NamespaceList ¶
type NamespaceList struct {
// contains filtered or unexported fields
}
func ListNamespaces ¶
func ListNamespaces(c Cluster) (NamespaceList, error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func Services ¶
func Services(sl ServiceList) []Service
type ServiceList ¶
type ServiceList struct {
// contains filtered or unexported fields
}
func ListServices ¶
func ListServices(c Cluster) (ServiceList, error)
Click to show internal directories.
Click to hide internal directories.