tasks

package
v0.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL