Documentation ¶
Index ¶
- type ExecutorConfig
- type ExecutorWholeConfigs
- func (c *ExecutorWholeConfigs) EnableLabelSchedule() bool
- func (c *ExecutorWholeConfigs) EnableOrgLabelSchedule() bool
- func (c *ExecutorWholeConfigs) EnableWorkspaceLabelSchedule() bool
- func (c *ExecutorWholeConfigs) OrgOpt(org string) *OrgOpt
- func (c *ExecutorWholeConfigs) ProdJobAvailDest() ([]string, bool)
- func (c *ExecutorWholeConfigs) ProjectIDForCompatibility(projectID string) bool
- func (c *ExecutorWholeConfigs) StagingJobAvailDest() ([]string, bool)
- func (c *ExecutorWholeConfigs) WORKSPACETAGSForCompatibility() (string, bool)
- type OptPlus
- type Org
- type OrgOpt
- type Workspace
- type WorkspaceOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutorConfig ¶
type ExecutorWholeConfigs ¶
type ExecutorWholeConfigs struct { // Common cluster configuration BasicConfig map[string]string // Accurate cluster configuration PlusConfigs *OptPlus }
func (*ExecutorWholeConfigs) EnableLabelSchedule ¶
func (c *ExecutorWholeConfigs) EnableLabelSchedule() bool
EnableLabelSchedule Whether tag scheduling is turned on
func (*ExecutorWholeConfigs) EnableOrgLabelSchedule ¶
func (c *ExecutorWholeConfigs) EnableOrgLabelSchedule() bool
EnableOrgLabelSchedule Whether to enable org-level label scheduling
func (*ExecutorWholeConfigs) EnableWorkspaceLabelSchedule ¶
func (c *ExecutorWholeConfigs) EnableWorkspaceLabelSchedule() bool
EnableWorkspaceLabelSchedule Whether to enable label scheduling at the workspace level
func (*ExecutorWholeConfigs) OrgOpt ¶
func (c *ExecutorWholeConfigs) OrgOpt(org string) *OrgOpt
OrgOpt Take out the configuration of `org' from all configurations
func (*ExecutorWholeConfigs) ProdJobAvailDest ¶
func (c *ExecutorWholeConfigs) ProdJobAvailDest() ([]string, bool)
ProdJobAvailDest prod environment where job can run
func (*ExecutorWholeConfigs) ProjectIDForCompatibility ¶
func (c *ExecutorWholeConfigs) ProjectIDForCompatibility(projectID string) bool
ProjectIDForCompatibility Isolate the configuration used by the project when scheduling, and no longer use it DEPRECATED
func (*ExecutorWholeConfigs) StagingJobAvailDest ¶
func (c *ExecutorWholeConfigs) StagingJobAvailDest() ([]string, bool)
StagingJobAvailDest staging environment where job can run
func (*ExecutorWholeConfigs) WORKSPACETAGSForCompatibility ¶
func (c *ExecutorWholeConfigs) WORKSPACETAGSForCompatibility() (string, bool)
WORKSPACETAGSForCompatibility Compatible with old WORKSPACETAGS tags DEPRECATED
type Org ¶
type Org struct { Name string `json:"name,omitempty"` Workspaces []Workspace `json:"workspaces,omitempty"` Options map[string]string `json:"options,omitempty"` }
Org organization, Corresponding tenant concept
type OrgOpt ¶
type OrgOpt Org
OrgOpt org level configuration
func (*OrgOpt) WorkspaceOpt ¶
func (c *OrgOpt) WorkspaceOpt(workspace string) *WorkspaceOpt
WorkspaceOpt Take out the configuration of `workspace' from the org configuration
type Workspace ¶
type Workspace struct { Name string `json:"name,omitempty"` Options map[string]string `json:"options,omitempty"` }
Environment
type WorkspaceOpt ¶
type WorkspaceOpt Workspace
WorkspaceOpt workspace level configuration
func (*WorkspaceOpt) EnableWorkspaceLabelSchedule ¶
func (c *WorkspaceOpt) EnableWorkspaceLabelSchedule() bool
EnableWorkspaceLabelSchedule Whether to enable workspace label scheduling
func (*WorkspaceOpt) ProdJobAvailDest ¶
func (c *WorkspaceOpt) ProdJobAvailDest() ([]string, bool)
ProdJobAvailDest Environment where prod job can run
func (*WorkspaceOpt) StagingJobAvailDest ¶
func (c *WorkspaceOpt) StagingJobAvailDest() ([]string, bool)
StagingJobAvailDest Environment where staging job can run