Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JenkinsAccessor ¶
type Options ¶
type Options struct { JenkinsURL string `config:"jenkins_url" validate:"required"` JenkinsUser string `config:"jenkins_user" validate:"required"` JenkinsToken string `config:"jenkins_token" validate:"required"` ControllerNodeName string `config:"controller_node_name"` NodeNumExecutors int64 `config:"node_num_executors"` ExcludeNodesByLabel fs.CommaSepList `config:"exclude_nodes_by_label"` LastErrBackoff time.Duration `config:"last_err_backoff"` }
type WrapperClient ¶
func (*WrapperClient) GetAllNodes ¶
func (c *WrapperClient) GetAllNodes(ctx context.Context) (Nodes, error)
func (*WrapperClient) GetCurrentUsage ¶
func (c *WrapperClient) GetCurrentUsage(ctx context.Context) (int64, error)
GetCurrentUsage return the current usage of jenkins nodes.
Click to show internal directories.
Click to hide internal directories.