package tasks

import "github.com/vmware/govmomi/vapi/cis/tasks"

Index

Constants

const (
	// TasksPath The endpoint for retrieving tasks
	TasksPath = "/api/cis/tasks"
)

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)

Source Files

tasks.go

Directories

PathSynopsis
vapi/cis/tasks/simulator
Version
v0.48.1 (latest)
Published
Feb 11, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
2 months ago

Tools for package owners.