executorconfig

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: AGPL-3.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutorConfig

type ExecutorConfig struct {
	Kind        string            `json:"kind,omitempty"`
	Name        string            `json:"name,omitempty"`
	ClusterName string            `json:"clusterName,omitempty"`
	Options     map[string]string `json:"options,omitempty"`
	OptionsPlus *OptPlus          `json:"optionsPlus,omitempty"`
}

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 OptPlus

type OptPlus struct {
	Orgs []Org `json:"orgs,omitempty"`
}

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

Jump to

Keyboard shortcuts

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