vsan

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 8

Documentation

Index

Constants

View Source
const (
	Namespace = "vsan"
	Path      = "/vsanHealth"
)

Namespace and Path constants

Variables

View Source
var (
	VsanVcClusterConfigSystemInstance = vimtypes.ManagedObjectReference{
		Type:  "VsanVcClusterConfigSystem",
		Value: "vsan-cluster-config-system",
	}
	VsanPerformanceManagerInstance = vimtypes.ManagedObjectReference{
		Type:  "VsanPerformanceManager",
		Value: "vsan-performance-manager",
	}
	VsanQueryObjectIdentitiesInstance = vimtypes.ManagedObjectReference{
		Type:  "VsanObjectSystem",
		Value: "vsan-cluster-object-system",
	}
	VsanPropertyCollectorInstance = vimtypes.ManagedObjectReference{
		Type:  "PropertyCollector",
		Value: "vsan-property-collector",
	}
	VsanVcStretchedClusterSystem = vimtypes.ManagedObjectReference{
		Type:  "VimClusterVsanVcStretchedClusterSystem",
		Value: "vsan-stretched-cluster-system",
	}
)

Creates the vsan cluster config system instance. This is to be queried from vsan health.

Functions

This section is empty.

Types

type Client

type Client struct {
	*soap.Client

	RoundTripper soap.RoundTripper
	// contains filtered or unexported fields
}

Client used for accessing vsan health APIs.

func NewClient

func NewClient(ctx context.Context, c *vim25.Client) (*Client, error)

NewClient creates a new VsanHealth client

func (*Client) RoundTrip added in v0.25.0

func (c *Client) RoundTrip(ctx context.Context, req, res soap.HasFault) error

RoundTrip dispatches to the RoundTripper field.

func (*Client) VsanClusterGetConfig

func (c *Client) VsanClusterGetConfig(ctx context.Context, cluster vimtypes.ManagedObjectReference) (*vsantypes.VsanConfigInfoEx, error)

VsanClusterGetConfig calls the Vsan health's VsanClusterGetConfig API.

func (*Client) VsanClusterReconfig added in v0.27.0

func (c *Client) VsanClusterReconfig(ctx context.Context, cluster vimtypes.ManagedObjectReference, spec vsantypes.VimVsanReconfigSpec) (*object.Task, error)

VsanClusterReconfig calls the Vsan health's VsanClusterReconfig API.

func (*Client) VsanHostGetConfig added in v0.24.0

func (c *Client) VsanHostGetConfig(ctx context.Context, vsanSystem vimtypes.ManagedObjectReference) (*vsantypes.VsanHostConfigInfoEx, error)

VsanHostGetConfig returns the config of host's vSAN system.

func (*Client) VsanPerfQueryPerf added in v0.24.0

VsanPerfQueryPerf calls the vsan performance manager API

func (*Client) VsanQueryObjectIdentities added in v0.24.0

func (c *Client) VsanQueryObjectIdentities(ctx context.Context, cluster vimtypes.ManagedObjectReference) (*vsantypes.VsanObjectIdentityAndHealth, error)

VsanQueryObjectIdentities return host uuid

Directories

Path Synopsis
vsanfs

Jump to

Keyboard shortcuts

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