pbm

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCapabilityProfileSpec

func CreateCapabilityProfileSpec(pbmCreateSpec CapabilityProfileCreateSpec) (*types.PbmCapabilityProfileCreateSpec, error)

Types

type Capability

type Capability struct {
	ID           string
	Namespace    string
	PropertyList []Property
}

A struct to capture pbm capability instance details.

type CapabilityProfileCreateSpec

type CapabilityProfileCreateSpec struct {
	Name           string
	Description    string
	Category       string
	CapabilityList []Capability
}

A struct to capture pbm create spec details.

type Client

type Client struct {
	*soap.Client

	ServiceContent types.PbmServiceInstanceContent
}

func NewClient

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

func (*Client) CreateProfile

func (c *Client) CreateProfile(ctx context.Context, capabilityProfileCreateSpec types.PbmCapabilityProfileCreateSpec) (*types.PbmProfileId, error)

func (*Client) DeleteProfile

func (c *Client) DeleteProfile(ctx context.Context, ids []types.PbmProfileId) ([]types.PbmProfileOperationOutcome, error)

func (*Client) ProfileIDByName

func (c *Client) ProfileIDByName(ctx context.Context, profileName string) (string, error)

func (*Client) QueryAssociatedEntities

func (c *Client) QueryAssociatedEntities(ctx context.Context, ids []types.PbmProfileId) ([]types.PbmQueryProfileResult, error)

func (*Client) QueryAssociatedEntity

func (c *Client) QueryAssociatedEntity(ctx context.Context, id types.PbmProfileId, entityType string) ([]types.PbmServerObjectRef, error)

func (*Client) QueryProfile

func (c *Client) QueryProfile(ctx context.Context, rtype types.PbmProfileResourceType, category string) ([]types.PbmProfileId, error)

func (*Client) RetrieveContent

func (c *Client) RetrieveContent(ctx context.Context, ids []types.PbmProfileId) ([]types.BasePbmProfile, error)

func (*Client) UpdateProfile

func (c *Client) UpdateProfile(ctx context.Context, id types.PbmProfileId, updateSpec types.PbmCapabilityProfileUpdateSpec) error

type PlacementCompatibilityResult

type PlacementCompatibilityResult []types.PbmPlacementCompatibilityResult

func (PlacementCompatibilityResult) CompatibleDatastores

func (l PlacementCompatibilityResult) CompatibleDatastores() []types.PbmPlacementHub

func (PlacementCompatibilityResult) NonCompatibleDatastores

func (l PlacementCompatibilityResult) NonCompatibleDatastores() []types.PbmPlacementHub

type Property

type Property struct {
	ID       string
	Operator string
	Value    string
	DataType string
}

A struct to capture pbm property instance details.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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