Documentation ¶
Index ¶
- func CreateRunnerGroupServer(ctx context.Context, kubeconfigPath string, runnerImage string, ...) error
- func DeleteRunnerGroupServer(_ context.Context, kubeconfigPath string) error
- func GetRunnerGroupResult(ctx context.Context, kubecfgPath string, wait bool) (*types.RunnerGroupsReport, error)
- func ListRunnerGroups(ctx context.Context, kubeCfgPath string) ([]*types.RunnerGroup, error)
- type RunCmdOpt
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRunnerGroupServer ¶
func CreateRunnerGroupServer(ctx context.Context, kubeconfigPath string, runnerImage string, rgSpec *types.RunnerGroupSpec, opts ...RunCmdOpt, ) error
CreateRunnerGroupServer creates a long running server to deploy runner groups.
TODO: 1. create a new package to define ErrNotFound, ErrAlreadyExists, ... errors. 2. support configurable timeout.
func DeleteRunnerGroupServer ¶
DeleteRunnerGroupServer delete existing long running server.
func GetRunnerGroupResult ¶
func GetRunnerGroupResult(ctx context.Context, kubecfgPath string, wait bool) (*types.RunnerGroupsReport, error)
GetRunnerGroupResult gets runner group's aggregated report.
func ListRunnerGroups ¶
ListRunnerGroups lists RunnerGroups from server.
Types ¶
type RunCmdOpt ¶
type RunCmdOpt func(*runCmdConfig)
RunCmdOpt is used to update default run command's setting.
func WithRunCmdRunnerGroupFlowControl ¶
WithRunCmdRunnerGroupFlowControl updates runner groups' flowcontrol.
func WithRunCmdServerNodeSelectorsOpt ¶
WithRunCmdServerNodeSelectorsOpt updates server's node selectors.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.