deploy

package
v0.0.0-...-89c19b0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

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) GetDeploy

func (deploy *DeployService) GetDeploy(id uint) *models.Deploy

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 (deploy *DeployService) StatusDeploy(modDeploy *models.Deploy) (bool, string, string)

func (*DeployService) SubmitDeploy

func (deploy *DeployService) SubmitDeploy(modDeploy *models.Deploy) (bool, string, string)

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{}
}

Jump to

Keyboard shortcuts

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