Documentation
¶
Index ¶
Constants ¶
View Source
const (
// TasksPath The endpoint for retrieving tasks
TasksPath = "/api/cis/tasks"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
*rest.Client
// contains filtered or unexported fields
}
Manager extends rest.Client, adding task related methods.
func NewManager ¶
func NewManager(client *rest.Client) *Manager
NewManager creates a new Manager instance with the given client.
func NewManagerWithCustomInterval ¶
func NewManagerWithCustomInterval(client *rest.Client, pollingInterval int) *Manager
NewManager creates a new Manager instance with the given client and custom polling interval
func (*Manager) WaitForCompletion ¶
func (c *Manager) WaitForCompletion(ctx context.Context, taskId string) (string, error)
Click to show internal directories.
Click to hide internal directories.