global

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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

func InClusterConfig

func InClusterConfig(cluster_name, bearertoken string) (*rest.Config, error)

func PreRun

func PreRun(cmd *cobra.Command, _ []string) error

Types

type BranchAndTag

type BranchAndTag struct {
	Data  []string `json:"data"`
	Total int32    `json:"total"`
}

type BytesBuffer

type BytesBuffer = bytes.Buffer

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 Context

type Context struct {
	spec.Spec
	DefaultEnvs      map[string]string
	Environment      string
	Version          string
	Templates        map[string][]byte
	ReferFiles       Refers
	CommitShaMessage string
	CommitSha        string
}

type GithubComGoCourierHelmxConstantsProtocol

type GithubComGoCourierHelmxConstantsProtocol = github_com_go_courier_helmx_constants.Protocol

type GithubComGoCourierHelmxKubetypesConfigMapVolumeSource

type GithubComGoCourierHelmxKubetypesConfigMapVolumeSource struct {
	GithubComGoCourierHelmxKubetypesKubeLocalObjectReference
}

type GithubComGoCourierHelmxKubetypesHandler

type GithubComGoCourierHelmxKubetypesHandler = github_com_go_courier_helmx_kubetypes.Handler

type GithubComGoCourierHelmxKubetypesJobOpts

type GithubComGoCourierHelmxKubetypesJobOpts = github_com_go_courier_helmx_kubetypes.JobOpts

type GithubComGoCourierHelmxKubetypesPodOpts

type GithubComGoCourierHelmxKubetypesPodOpts = github_com_go_courier_helmx_kubetypes.PodOpts

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 GithubComGoCourierHelmxSpecIngressRule

type GithubComGoCourierHelmxSpecIngressRule = github_com_go_courier_helmx_spec.IngressRule

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 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 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 GroupSet

type GroupSet struct {
	Data  []Group `json:"data"`
	Total int32   `json:"total"`
}

type OperationTime

type OperationTime struct {
	CreatedAt GithubComGoCourierSqlxV2DatatypesMySQLTimestamp `json:"createdAt"`
	UpdatedAt GithubComGoCourierSqlxV2DatatypesMySQLTimestamp `json:"updatedAt"`
}

type PrimaryID

type PrimaryID struct {
}

type Project

type Project struct {
	PrimaryID
	ProjectInfo
	OperationTime
}

type ProjectInfo

type ProjectInfo struct {
	RefGroupName
	RefProjectName
}

type ProjectSet

type ProjectSet struct {
	Data  []Project `json:"data"`
	Total int32     `json:"total"`
}

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 Ref

type Ref struct {
	RefName string `json:"refName,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"`
}

type Refer

type Refer struct {
	ReferName    string `json:"referName"`
	ReferVersion string `json:"referVersion"`
}

type Refers

type Refers []Refer

Jump to

Keyboard shortcuts

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