Documentation
¶
Overview ¶
Package client owns shared control-plane API commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelWaveCommand ¶
func (CancelWaveCommand) Run ¶
func (c CancelWaveCommand) Run(ctx context.Context) (domainapi.WaveSummary, error)
type FollowWaveCommand ¶
type FollowWaveCommand struct {
Get GetWaveCommand
OnUpdate func(domainapi.WaveSummary) error
}
func (FollowWaveCommand) Run ¶
func (c FollowWaveCommand) Run(ctx context.Context) (domainapi.WaveSummary, error)
type GetWaveCommand ¶
func (GetWaveCommand) Run ¶
func (c GetWaveCommand) Run(ctx context.Context) (domainapi.WaveSummary, error)
type ListJobsCommand ¶
type ListJobsCommand struct {
Client *http.Client
BaseURL *url.URL
Limit int32
Offset int32
RunID *domaintypes.RunID
NodeID *domaintypes.NodeID
Status *domaintypes.JobStatus
}
func (ListJobsCommand) Run ¶
func (c ListJobsCommand) Run(ctx context.Context) (domainapi.JobListResponse, error)
type ListMigsCommand ¶
type ListMigsCommand struct {
Client *http.Client
BaseURL *url.URL
Limit int32
Offset int32
NameSubstring *string
Archived *bool
RepoURL *string
}
ListMigsCommand lists migration projects with optional filters.
func (ListMigsCommand) Run ¶
func (c ListMigsCommand) Run(ctx context.Context) ([]domainapi.MigSummary, error)
Run executes GET /v1/migs.
type ListNodeDiagnosticsCommand ¶
type ListNodeDiagnosticsCommand struct {
Client *http.Client
BaseURL *url.URL
NodeID domaintypes.NodeID
}
func (ListNodeDiagnosticsCommand) Run ¶
func (c ListNodeDiagnosticsCommand) Run(ctx context.Context) ([]domainapi.NodeDiagnostic, error)
type ListNodesCommand ¶
type ListRunsCommand ¶
type ListRunsCommand struct {
Client *http.Client
BaseURL *url.URL
Limit int32
Offset int32
RepoURL string
CreatedBy string
All bool
}
ListRunsCommand lists runs with optional filters.
func (ListRunsCommand) Run ¶
func (c ListRunsCommand) Run(ctx context.Context) ([]domaintypes.RunSummary, error)
Run executes GET /v1/runs.
Click to show internal directories.
Click to hide internal directories.