Documentation ¶
Index ¶
- func InitClientSet(c *Conf) error
- func ListDeployWithLabels(ns, label string) ([]apps_v1.Deployment, error)
- func ListStsWithLabels(ns, label string) ([]apps_v1.StatefulSet, error)
- func SetDeployImg(id *ContainerPath) error
- func SetDeployImgWithLabel(id *ContainerPath, label ...string) error
- func SetStsImg(id *ContainerPath) error
- func SetStsImgWithLabel(id *ContainerPath, label ...string) error
- type Bio
- type ConBio
- type Conf
- type ContainerPath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListDeployWithLabels ¶ added in v0.9.10
func ListDeployWithLabels(ns, label string) ([]apps_v1.Deployment, error)
ListDeployWithLabels list deployment by label
func ListStsWithLabels ¶ added in v0.9.10
func ListStsWithLabels(ns, label string) ([]apps_v1.StatefulSet, error)
ListStsWithLables list statefulset
func SetDeployImgWithLabel ¶ added in v0.9.10
func SetDeployImgWithLabel(id *ContainerPath, label ...string) error
SetDeployImgWithLabel ...
func SetStsImgWithLabel ¶ added in v0.9.10
func SetStsImgWithLabel(id *ContainerPath, label ...string) error
SetStsImgWithLabel ...
Types ¶
type Bio ¶
Bio wrap container bio
func ListStsBios ¶ added in v0.9.10
ListStsBios list all statefulset bio in :ns
type ConBio ¶
type ConBio struct { Name string `json:"name"` Image string `json:"img"` Pull string `json:"pull"` }
ConBio container bio
type ContainerPath ¶
type ContainerPath struct { Ns string `json:"namespace"` Kind string `json:"kind" binding:"required"` Name string `json:"name" binding:"required"` CName string `json:"container_name" binding:"required"` Img string `json:"img" binding:"required"` }
ContainerPath ...
func (ContainerPath) UpdateResource ¶ added in v0.9.15
func (c ContainerPath) UpdateResource(labels ...string) error
Click to show internal directories.
Click to hide internal directories.