Documentation ¶
Index ¶
- Variables
- func InClusterConfig(cluster_name, bearertoken string) (*rest.Config, error)
- func PreRun(cmd *cobra.Command, _ []string) error
- type BranchAndTag
- type BytesBuffer
- type CommitSet
- type Configuration
- type Context
- type GithubComGoCourierHelmxConstantsProtocol
- type GithubComGoCourierHelmxConstantsPullPolicy
- type GithubComGoCourierHelmxKubetypesConfigMapVolumeSource
- type GithubComGoCourierHelmxKubetypesCronJobOpts
- type GithubComGoCourierHelmxKubetypesDeploymentOpts
- type GithubComGoCourierHelmxKubetypesEmptyDirVolumeSource
- type GithubComGoCourierHelmxKubetypesExecAction
- type GithubComGoCourierHelmxKubetypesHTTPGetAction
- type GithubComGoCourierHelmxKubetypesHTTPHeader
- type GithubComGoCourierHelmxKubetypesHandler
- type GithubComGoCourierHelmxKubetypesHostPathVolumeSource
- type GithubComGoCourierHelmxKubetypesJobOpts
- type GithubComGoCourierHelmxKubetypesKubeLocalObjectReference
- type GithubComGoCourierHelmxKubetypesKubeVolumeSource
- type GithubComGoCourierHelmxKubetypesPersistentVolumeClaimVolumeSource
- type GithubComGoCourierHelmxKubetypesPodOpts
- type GithubComGoCourierHelmxKubetypesProbeOpts
- type GithubComGoCourierHelmxKubetypesSecretVolumeSource
- type GithubComGoCourierHelmxKubetypesTCPSocketAction
- type GithubComGoCourierHelmxSpecAction
- type GithubComGoCourierHelmxSpecContainer
- type GithubComGoCourierHelmxSpecEnvs
- type GithubComGoCourierHelmxSpecImage
- type GithubComGoCourierHelmxSpecImagePullSecret
- type GithubComGoCourierHelmxSpecIngressRule
- type GithubComGoCourierHelmxSpecJob
- type GithubComGoCourierHelmxSpecLifecycle
- type GithubComGoCourierHelmxSpecPod
- type GithubComGoCourierHelmxSpecPort
- type GithubComGoCourierHelmxSpecProbe
- type GithubComGoCourierHelmxSpecProject
- type GithubComGoCourierHelmxSpecRequestAndLimit
- type GithubComGoCourierHelmxSpecService
- type GithubComGoCourierHelmxSpecSpec
- type GithubComGoCourierHelmxSpecVersion
- type GithubComGoCourierHelmxSpecVolume
- type GithubComGoCourierHelmxSpecVolumeMount
- type GithubComGoCourierHelmxSpecVolumes
- type GithubComGoCourierSqlxV2DatatypesMySQLTimestamp
- type GithubComGoCourierStatuserrorErrorField
- type GithubComGoCourierStatuserrorErrorFields
- type GithubComGoCourierStatuserrorStatusErr
- type Group
- type GroupSet
- type OperationTime
- type PrimaryID
- type Project
- type ProjectInfo
- type ProjectSet
- type ProjectSpec
- type ProjectSpecInfo
- type Ref
- type RefGroupName
- type RefProjectName
- type RefProjectSpec
- type Refer
- type Refers
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CM_SERVER_BASEURL = os.Getenv("CM_SERVER_BASEURL") // CM_SERVER_USERNAME = os.Getenv("CM_SERVER_USERNAME") // CM_SERVER_PASSWORD = os.Getenv("CM_SERVER_PASSWORD") CM_SERVER_BASEURL string CM_SERVER_USERNAME string CM_SERVER_PASSWORD string Token string TokenFile = "token.json" CMClient *client.CMClient ProxyClient *client.CMClient Paths environment.Paths )
全局配置
View Source
var ( ProjectName string New_ProjectName string ClusterName string New_ClusterName string Description string New_Description string SaName string SaToken string NameSpace string Label string EnableDebug bool NoFormat bool )
命令参数
View Source
var ( KUBE_TUNNEL_GATEWAY_HOST string KubeBearerToken string KUBE_PROXY_IMAGE = "bryantrh/kube-tunnel-gateway:v1.0" KUBE_PROXY_NAMESPACE = "kube-proxy" Ctx = &Context{} HelmxRootFile string LivenessCheckSkip bool ImagePullSecret = os.Getenv(spec.EnvKeyImagePullSecret) SkipLivenessCheck bool )
hx变量
Functions ¶
Types ¶
type BranchAndTag ¶
type BytesBuffer ¶
type CommitSet ¶
type CommitSet struct { Data []ProjectSpec `json:"data"` Total int32 `json:"total"` }
type Configuration ¶
type Configuration struct { Spec GithubComGoCourierHelmxSpecSpec `json:"spec"` Templates map[string][]uint8 `json:"templates,omitempty"` }
type GithubComGoCourierHelmxConstantsProtocol ¶
type GithubComGoCourierHelmxConstantsProtocol = github_com_go_courier_helmx_constants.Protocol
type GithubComGoCourierHelmxConstantsPullPolicy ¶
type GithubComGoCourierHelmxConstantsPullPolicy = github_com_go_courier_helmx_constants.PullPolicy
type GithubComGoCourierHelmxKubetypesConfigMapVolumeSource ¶
type GithubComGoCourierHelmxKubetypesConfigMapVolumeSource struct {
GithubComGoCourierHelmxKubetypesKubeLocalObjectReference
}
type GithubComGoCourierHelmxKubetypesCronJobOpts ¶
type GithubComGoCourierHelmxKubetypesCronJobOpts = github_com_go_courier_helmx_kubetypes.CronJobOpts
type GithubComGoCourierHelmxKubetypesDeploymentOpts ¶
type GithubComGoCourierHelmxKubetypesDeploymentOpts = github_com_go_courier_helmx_kubetypes.DeploymentOpts
type GithubComGoCourierHelmxKubetypesEmptyDirVolumeSource ¶
type GithubComGoCourierHelmxKubetypesEmptyDirVolumeSource = github_com_go_courier_helmx_kubetypes.EmptyDirVolumeSource
type GithubComGoCourierHelmxKubetypesExecAction ¶
type GithubComGoCourierHelmxKubetypesExecAction = github_com_go_courier_helmx_kubetypes.ExecAction
type GithubComGoCourierHelmxKubetypesHTTPGetAction ¶
type GithubComGoCourierHelmxKubetypesHTTPGetAction = github_com_go_courier_helmx_kubetypes.HTTPGetAction
type GithubComGoCourierHelmxKubetypesHTTPHeader ¶
type GithubComGoCourierHelmxKubetypesHTTPHeader = github_com_go_courier_helmx_kubetypes.HTTPHeader
type GithubComGoCourierHelmxKubetypesHandler ¶
type GithubComGoCourierHelmxKubetypesHandler = github_com_go_courier_helmx_kubetypes.Handler
type GithubComGoCourierHelmxKubetypesHostPathVolumeSource ¶
type GithubComGoCourierHelmxKubetypesHostPathVolumeSource = github_com_go_courier_helmx_kubetypes.HostPathVolumeSource
type GithubComGoCourierHelmxKubetypesJobOpts ¶
type GithubComGoCourierHelmxKubetypesJobOpts = github_com_go_courier_helmx_kubetypes.JobOpts
type GithubComGoCourierHelmxKubetypesKubeLocalObjectReference ¶
type GithubComGoCourierHelmxKubetypesKubeLocalObjectReference = github_com_go_courier_helmx_kubetypes.KubeLocalObjectReference
type GithubComGoCourierHelmxKubetypesKubeVolumeSource ¶
type GithubComGoCourierHelmxKubetypesKubeVolumeSource = github_com_go_courier_helmx_kubetypes.KubeVolumeSource
type GithubComGoCourierHelmxKubetypesPersistentVolumeClaimVolumeSource ¶
type GithubComGoCourierHelmxKubetypesPersistentVolumeClaimVolumeSource = github_com_go_courier_helmx_kubetypes.PersistentVolumeClaimVolumeSource
type GithubComGoCourierHelmxKubetypesPodOpts ¶
type GithubComGoCourierHelmxKubetypesPodOpts = github_com_go_courier_helmx_kubetypes.PodOpts
type GithubComGoCourierHelmxKubetypesProbeOpts ¶
type GithubComGoCourierHelmxKubetypesProbeOpts = github_com_go_courier_helmx_kubetypes.ProbeOpts
type GithubComGoCourierHelmxKubetypesSecretVolumeSource ¶
type GithubComGoCourierHelmxKubetypesSecretVolumeSource = github_com_go_courier_helmx_kubetypes.SecretVolumeSource
type GithubComGoCourierHelmxKubetypesTCPSocketAction ¶
type GithubComGoCourierHelmxKubetypesTCPSocketAction = github_com_go_courier_helmx_kubetypes.TCPSocketAction
type GithubComGoCourierHelmxSpecAction ¶
type GithubComGoCourierHelmxSpecAction struct {
GithubComGoCourierHelmxKubetypesHandler
}
type GithubComGoCourierHelmxSpecContainer ¶
type GithubComGoCourierHelmxSpecContainer struct { GithubComGoCourierHelmxSpecImage Args []string `json:"args,omitempty"` Command []string `json:"command,omitempty"` Envs GithubComGoCourierHelmxSpecEnvs `json:"envs,omitempty"` Lifecycle *GithubComGoCourierHelmxSpecLifecycle `json:"lifecycle,omitempty"` LivenessProbe *GithubComGoCourierHelmxSpecProbe `json:"livenessProbe,omitempty"` Mounts []GithubComGoCourierHelmxSpecVolumeMount `json:"mounts,omitempty"` ReadinessProbe *GithubComGoCourierHelmxSpecProbe `json:"readinessProbe,omitempty"` TTY bool `json:"tty,omitempty"` WorkingDir string `json:"workingDir,omitempty"` }
type GithubComGoCourierHelmxSpecEnvs ¶
type GithubComGoCourierHelmxSpecEnvs = github_com_go_courier_helmx_spec.Envs
type GithubComGoCourierHelmxSpecImage ¶
type GithubComGoCourierHelmxSpecImage = github_com_go_courier_helmx_spec.Image
type GithubComGoCourierHelmxSpecImagePullSecret ¶
type GithubComGoCourierHelmxSpecImagePullSecret = github_com_go_courier_helmx_spec.ImagePullSecret
type GithubComGoCourierHelmxSpecIngressRule ¶
type GithubComGoCourierHelmxSpecIngressRule = github_com_go_courier_helmx_spec.IngressRule
type GithubComGoCourierHelmxSpecJob ¶
type GithubComGoCourierHelmxSpecJob struct { GithubComGoCourierHelmxSpecPod GithubComGoCourierHelmxKubetypesJobOpts Cron *GithubComGoCourierHelmxKubetypesCronJobOpts }
type GithubComGoCourierHelmxSpecLifecycle ¶
type GithubComGoCourierHelmxSpecLifecycle = github_com_go_courier_helmx_spec.Lifecycle
type GithubComGoCourierHelmxSpecPod ¶
type GithubComGoCourierHelmxSpecPod struct { GithubComGoCourierHelmxSpecContainer GithubComGoCourierHelmxKubetypesPodOpts Initials []GithubComGoCourierHelmxSpecContainer `json:"initials,omitempty"` }
type GithubComGoCourierHelmxSpecPort ¶
type GithubComGoCourierHelmxSpecPort = github_com_go_courier_helmx_spec.Port
type GithubComGoCourierHelmxSpecProbe ¶
type GithubComGoCourierHelmxSpecProbe struct { GithubComGoCourierHelmxKubetypesProbeOpts Action GithubComGoCourierHelmxSpecAction `json:"action"` }
type GithubComGoCourierHelmxSpecProject ¶
type GithubComGoCourierHelmxSpecProject = github_com_go_courier_helmx_spec.Project
type GithubComGoCourierHelmxSpecRequestAndLimit ¶
type GithubComGoCourierHelmxSpecRequestAndLimit = github_com_go_courier_helmx_spec.RequestAndLimit
type GithubComGoCourierHelmxSpecService ¶
type GithubComGoCourierHelmxSpecService struct { GithubComGoCourierHelmxSpecPod GithubComGoCourierHelmxKubetypesDeploymentOpts Ingresses []GithubComGoCourierHelmxSpecIngressRule `json:"ingresses,omitempty"` Ports []GithubComGoCourierHelmxSpecPort `json:"ports,omitempty"` }
type GithubComGoCourierHelmxSpecSpec ¶
type GithubComGoCourierHelmxSpecSpec = github_com_go_courier_helmx_spec.Spec
type GithubComGoCourierHelmxSpecVersion ¶
type GithubComGoCourierHelmxSpecVersion = github_com_go_courier_helmx_spec.Version
type GithubComGoCourierHelmxSpecVolume ¶
type GithubComGoCourierHelmxSpecVolume struct {
GithubComGoCourierHelmxKubetypesKubeVolumeSource
}
type GithubComGoCourierHelmxSpecVolumeMount ¶
type GithubComGoCourierHelmxSpecVolumeMount = github_com_go_courier_helmx_spec.VolumeMount
type GithubComGoCourierHelmxSpecVolumes ¶
type GithubComGoCourierHelmxSpecVolumes = github_com_go_courier_helmx_spec.Volumes
type GithubComGoCourierSqlxV2DatatypesMySQLTimestamp ¶
type GithubComGoCourierSqlxV2DatatypesMySQLTimestamp = github_com_go_courier_sqlx_v2_datatypes.MySQLTimestamp
type GithubComGoCourierStatuserrorErrorField ¶
type GithubComGoCourierStatuserrorErrorField = github_com_go_courier_statuserror.ErrorField
type GithubComGoCourierStatuserrorErrorFields ¶
type GithubComGoCourierStatuserrorErrorFields = github_com_go_courier_statuserror.ErrorFields
type GithubComGoCourierStatuserrorStatusErr ¶
type GithubComGoCourierStatuserrorStatusErr = github_com_go_courier_statuserror.StatusErr
type Group ¶
type Group struct { PrimaryID RefGroupName OperationTime }
type OperationTime ¶
type OperationTime struct { CreatedAt GithubComGoCourierSqlxV2DatatypesMySQLTimestamp `json:"createdAt"` UpdatedAt GithubComGoCourierSqlxV2DatatypesMySQLTimestamp `json:"updatedAt"` }
type Project ¶
type Project struct { PrimaryID ProjectInfo OperationTime }
type ProjectInfo ¶
type ProjectInfo struct { RefGroupName RefProjectName }
type ProjectSet ¶
type ProjectSpec ¶
type ProjectSpec struct { PrimaryID RefProjectSpec ProjectSpecInfo OperationTime }
type ProjectSpecInfo ¶
type ProjectSpecInfo struct { RefGroupName RefProjectName Ref // Commit号 CommitSha string `json:"commitSha"` // 默认测试环境部署的配置 Configuration Configuration `json:"configuration"` // 提交的备注信息 Desc string `json:"desc,omitempty"` // 可部署的镜像名称 Image string `json:"image"` // 该服务当前版本依赖的服务包版本 Refers Refers `json:"refers,omitempty"` }
type RefGroupName ¶
type RefGroupName struct { // 组名称 GroupName string `json:"groupName"` }
type RefProjectName ¶
type RefProjectName struct { // 服务名称 ProjectName string `json:"projectName"` }
type RefProjectSpec ¶
type RefProjectSpec struct { // 唯一ID ProjectSpecId string `json:"projectSpecId"` }
Click to show internal directories.
Click to hide internal directories.