Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) RoundTrip(ctx context.Context, req, res soap.HasFault) error
- func (c *Client) VsanClusterGetConfig(ctx context.Context, cluster vimtypes.ManagedObjectReference) (*vsantypes.VsanConfigInfoEx, error)
- func (c *Client) VsanClusterReconfig(ctx context.Context, cluster vimtypes.ManagedObjectReference, ...) (*object.Task, error)
- func (c *Client) VsanHostGetConfig(ctx context.Context, vsanSystem vimtypes.ManagedObjectReference) (*vsantypes.VsanHostConfigInfoEx, error)
- func (c *Client) VsanPerfQueryPerf(ctx context.Context, cluster *vimtypes.ManagedObjectReference, ...) ([]vsantypes.VsanPerfEntityMetricCSV, error)
- func (c *Client) VsanQueryObjectIdentities(ctx context.Context, cluster vimtypes.ManagedObjectReference) (*vsantypes.VsanObjectIdentityAndHealth, error)
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 (*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
func (c *Client) VsanPerfQueryPerf(ctx context.Context, cluster *vimtypes.ManagedObjectReference, qSpecs []vsantypes.VsanPerfQuerySpec) ([]vsantypes.VsanPerfEntityMetricCSV, error)
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
Click to show internal directories.
Click to hide internal directories.