 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- func ContributeAccount(opts *ViewOptions, accountID string) ([]*output.DataRow, error)
- func ContributeProxy(opts *ViewOptions, proxyID string) ([]*output.DataRow, error)
- func FindWorkerPoolIds(opts *WorkerPoolOptions, flags *WorkerPoolFlags) ([]string, error)
- func GetWorker(client client.Client, identifier string) (*machines.Worker, error)
- func GetWorkerPoolMap(opts *ViewOptions) (map[string]string, error)
- func GetWorkers(client client.Client, filter func(*machines.Worker) bool) ([]*machines.Worker, error)
- func PromptForWorkerPools(opts *WorkerPoolOptions, flags *WorkerPoolFlags) error
- func RegisterCreateWorkerWorkerPoolFlags(cmd *cobra.Command, flags *WorkerPoolFlags)
- func ViewRun(opts *ViewOptions, contributeEndpoint ContributeEndpointCallback, ...) error
- type ContributeEndpointCallback
- type GetAllWorkerPoolsCallback
- type GetWorkerCallback
- type GetWorkersCallback
- type GetWorkersOptions
- type ViewFlags
- type ViewOptions
- type WorkerPoolFlags
- type WorkerPoolOptions
Constants ¶
      View Source
      
  
const FlagWorkerPool = "worker-pool"
    Variables ¶
This section is empty.
Functions ¶
func ContributeAccount ¶
func ContributeAccount(opts *ViewOptions, accountID string) ([]*output.DataRow, error)
func ContributeProxy ¶
func ContributeProxy(opts *ViewOptions, proxyID string) ([]*output.DataRow, error)
func FindWorkerPoolIds ¶
func FindWorkerPoolIds(opts *WorkerPoolOptions, flags *WorkerPoolFlags) ([]string, error)
func GetWorkerPoolMap ¶
func GetWorkerPoolMap(opts *ViewOptions) (map[string]string, error)
func GetWorkers ¶
func PromptForWorkerPools ¶
func PromptForWorkerPools(opts *WorkerPoolOptions, flags *WorkerPoolFlags) error
func RegisterCreateWorkerWorkerPoolFlags ¶
func RegisterCreateWorkerWorkerPoolFlags(cmd *cobra.Command, flags *WorkerPoolFlags)
func ViewRun ¶
func ViewRun(opts *ViewOptions, contributeEndpoint ContributeEndpointCallback, description string) error
Types ¶
type GetAllWorkerPoolsCallback ¶
type GetAllWorkerPoolsCallback func() ([]*workerpools.WorkerPoolListResult, error)
type GetWorkersCallback ¶
type GetWorkersOptions ¶
type GetWorkersOptions struct {
	GetWorkersCallback
	GetWorkerCallback
}
    func NewGetWorkersOptions ¶
func NewGetWorkersOptions(dependencies *cmd.Dependencies, filter func(*machines.Worker) bool) *GetWorkersOptions
func NewGetWorkersOptionsForAllWorkers ¶
func NewGetWorkersOptionsForAllWorkers(dependencies *cmd.Dependencies) *GetWorkersOptions
type ViewFlags ¶
type ViewFlags struct {
	*machinescommon.WebFlags
}
    func NewViewFlags ¶
func NewViewFlags() *ViewFlags
type ViewOptions ¶
type ViewOptions struct {
	*cmd.Dependencies
	IdOrName string
	*ViewFlags
}
    func NewViewOptions ¶
func NewViewOptions(viewFlags *ViewFlags, dependencies *cmd.Dependencies, args []string) *ViewOptions
type WorkerPoolFlags ¶
func NewWorkerPoolFlags ¶
func NewWorkerPoolFlags() *WorkerPoolFlags
type WorkerPoolOptions ¶
type WorkerPoolOptions struct {
	*cmd.Dependencies
	GetAllWorkerPoolsCallback
}
    func NewWorkerPoolOptions ¶
func NewWorkerPoolOptions(dependencies *cmd.Dependencies) *WorkerPoolOptions
 Click to show internal directories. 
   Click to hide internal directories.