object

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agency

type Agency struct {
	EamObject
}

func NewAgency

func NewAgency(c *eam.Client, ref vim.ManagedObjectReference) Agency

NewAgency returns a wrapper for an Agency managed object.

func (Agency) Agents

func (m Agency) Agents(ctx context.Context) ([]Agent, error)

func (Agency) Config

func (Agency) Destroy

func (m Agency) Destroy(ctx context.Context) error

func (Agency) Disable

func (m Agency) Disable(ctx context.Context) error

func (Agency) Enable

func (m Agency) Enable(ctx context.Context) error

func (Agency) RegisterAgentVm

func (m Agency) RegisterAgentVm(
	ctx context.Context,
	agentVmMoRef vim.ManagedObjectReference) (*Agent, error)

func (Agency) Runtime

func (Agency) SolutionId

func (m Agency) SolutionId(ctx context.Context) (string, error)

func (Agency) Uninstall

func (m Agency) Uninstall(ctx context.Context) error

func (Agency) UnregisterAgentVm

func (m Agency) UnregisterAgentVm(
	ctx context.Context,
	agentVmMoRef vim.ManagedObjectReference) error

func (Agency) Update

func (m Agency) Update(
	ctx context.Context,
	config types.BaseAgencyConfigInfo) error

type Agent

type Agent struct {
	EamObject
}

func NewAgent

func NewAgent(c *eam.Client, ref vim.ManagedObjectReference) *Agent

NewAgent returns a wrapper for an Agent managed object.

func (Agent) Config

func (m Agent) Config(ctx context.Context) (*types.AgentConfigInfo, error)

func (Agent) MarkAsAvailable

func (m Agent) MarkAsAvailable(ctx context.Context) error

func (Agent) Runtime

func (m Agent) Runtime(ctx context.Context) (*types.AgentRuntimeInfo, error)

type EamObject

type EamObject struct {
	// contains filtered or unexported fields
}

EamObject contains the fields and functions common to all objects.

func (EamObject) AddIssue

func (m EamObject) AddIssue(
	ctx context.Context,
	issue types.BaseIssue) (types.BaseIssue, error)

func (EamObject) Client

func (m EamObject) Client() *eam.Client

func (EamObject) Issues

func (m EamObject) Issues(
	ctx context.Context,
	issueKeys ...int32) ([]types.BaseIssue, error)

func (EamObject) Reference

func (m EamObject) Reference() vim.ManagedObjectReference

func (EamObject) Resolve

func (m EamObject) Resolve(
	ctx context.Context,
	issueKeys []int32) ([]int32, error)

func (EamObject) ResolveAll

func (m EamObject) ResolveAll(ctx context.Context) error

func (EamObject) String

func (m EamObject) String() string

type EsxAgentManager

type EsxAgentManager struct {
	EamObject
}

func NewEsxAgentManager

func NewEsxAgentManager(c *eam.Client, ref vim.ManagedObjectReference) EsxAgentManager

NewEsxAgentManager returns a wrapper for an EsxAgentManager managed object.

func (EsxAgentManager) Agencies

func (m EsxAgentManager) Agencies(ctx context.Context) ([]Agency, error)

func (EsxAgentManager) CreateAgency

func (m EsxAgentManager) CreateAgency(
	ctx context.Context,
	config types.BaseAgencyConfigInfo,
	initialGoalState string) (Agency, error)

func (EsxAgentManager) ScanForUnknownAgentVm

func (m EsxAgentManager) ScanForUnknownAgentVm(ctx context.Context) error

Jump to

Keyboard shortcuts

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