Documentation ¶
Index ¶
- func GetDeploymentCondition(status apps_v1.DeploymentStatus, condType apps_v1.DeploymentConditionType) *apps_v1.DeploymentCondition
- func GetDeploymentStatus(clientset kubernetes.Clientset, deployment apps_v1.Deployment, ...) (bool, string, string)
- func GetPodCondition(status core_v1.PodStatus, condType core_v1.PodConditionType) *core_v1.PodCondition
- func PrintDeploymentStatus(clientset kubernetes.Clientset, deployment apps_v1.Deployment, ...)
- func ReadDeploymentYaml(filename string) apps_v1.Deployment
- type DeployService
- func (deploy *DeployService) AddDeploy(modDeploy *models.Deploy) bool
- func (deploy *DeployService) DeleteDeploy(id uint) bool
- func (deploy *DeployService) GetBetweenCount(maps string, cycle, count int) interface{}
- func (deploy *DeployService) GetDeploy(id uint) *models.Deploy
- func (deploy *DeployService) GetDeployByName(name string) *models.Deploy
- func (deploy *DeployService) GetDeploys(page, pagesize uint, maps interface{}) interface{}
- func (deploy *DeployService) GetDockerTag(harbor string) (bool, []models.DockerTag)
- func (deploy *DeployService) GetOkErrorCount(maps string) interface{}
- func (deploy *DeployService) StatusDeploy(modDeploy *models.Deploy) (bool, string, string)
- func (deploy *DeployService) SubmitDeploy(modDeploy *models.Deploy) (bool, string, string)
- func (deploy *DeployService) UpdateDeploy(modDeploy *models.Deploy) bool
- type IDeployService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeploymentCondition ¶
func GetDeploymentCondition(status apps_v1.DeploymentStatus, condType apps_v1.DeploymentConditionType) *apps_v1.DeploymentCondition
GetDeploymentCondition returns the condition with the provided type.
func GetDeploymentStatus ¶
func GetDeploymentStatus(clientset kubernetes.Clientset, deployment apps_v1.Deployment, namespace string) (bool, string, string)
func GetPodCondition ¶
func GetPodCondition(status core_v1.PodStatus, condType core_v1.PodConditionType) *core_v1.PodCondition
func PrintDeploymentStatus ¶
func PrintDeploymentStatus(clientset kubernetes.Clientset, deployment apps_v1.Deployment, namespace string)
func ReadDeploymentYaml ¶
func ReadDeploymentYaml(filename string) apps_v1.Deployment
读取deployment yaml内容
Types ¶
type DeployService ¶
type DeployService struct { Log logger.ILogger `inject:""` Repository deployRep.IDeployRepository `inject:""` K8sService k8s.IK8sService `inject:""` PodService pod.IPodService `inject:""` }
func (*DeployService) AddDeploy ¶
func (deploy *DeployService) AddDeploy(modDeploy *models.Deploy) bool
func (*DeployService) DeleteDeploy ¶
func (deploy *DeployService) DeleteDeploy(id uint) bool
func (*DeployService) GetBetweenCount ¶
func (deploy *DeployService) GetBetweenCount(maps string, cycle, count int) interface{}
func (*DeployService) GetDeployByName ¶
func (deploy *DeployService) GetDeployByName(name string) *models.Deploy
func (*DeployService) GetDeploys ¶
func (deploy *DeployService) GetDeploys(page, pagesize uint, maps interface{}) interface{}
func (*DeployService) GetDockerTag ¶
func (deploy *DeployService) GetDockerTag(harbor string) (bool, []models.DockerTag)
func (*DeployService) GetOkErrorCount ¶
func (deploy *DeployService) GetOkErrorCount(maps string) interface{}
func (*DeployService) StatusDeploy ¶
func (*DeployService) SubmitDeploy ¶
func (*DeployService) UpdateDeploy ¶
func (deploy *DeployService) UpdateDeploy(modDeploy *models.Deploy) bool
type IDeployService ¶
type IDeployService interface { GetDeploy(id uint) *models.Deploy AddDeploy(Deploy *models.Deploy) bool UpdateDeploy(Deploy *models.Deploy) bool GetDeploys(page, pagesize uint, maps interface{}) interface{} DeleteDeploy(id uint) bool SubmitDeploy(Deploy *models.Deploy) (bool, string, string) StatusDeploy(Deploy *models.Deploy) (bool, string, string) GetDockerTag(Harbor string) (bool, []models.DockerTag) GetOkErrorCount(maps string) interface{} GetBetweenCount(maps string, cycle, count int) interface{} }
Click to show internal directories.
Click to hide internal directories.