Documentation ¶
Index ¶
- Constants
- Variables
- func CreateCapabilityProfileSpec(pbmCreateSpec CapabilityProfileCreateSpec) (*types.PbmCapabilityProfileCreateSpec, error)
- type Capability
- type CapabilityProfileCreateSpec
- type Client
- func (c *Client) CheckRequirements(ctx context.Context, hubs []types.PbmPlacementHub, ...) (PlacementCompatibilityResult, error)
- func (c *Client) CreateProfile(ctx context.Context, ...) (*types.PbmProfileId, error)
- func (c *Client) DeleteProfile(ctx context.Context, ids []types.PbmProfileId) ([]types.PbmProfileOperationOutcome, error)
- func (c *Client) ProfileIDByName(ctx context.Context, profileName string) (string, error)
- func (c *Client) QueryAssociatedEntities(ctx context.Context, ids []types.PbmProfileId) ([]types.PbmQueryProfileResult, error)
- func (c *Client) QueryAssociatedEntity(ctx context.Context, id types.PbmProfileId, entityType string) ([]types.PbmServerObjectRef, error)
- func (c *Client) QueryProfile(ctx context.Context, rtype types.PbmProfileResourceType, category string) ([]types.PbmProfileId, error)
- func (c *Client) RetrieveContent(ctx context.Context, ids []types.PbmProfileId) ([]types.BasePbmProfile, error)
- func (c *Client) UpdateProfile(ctx context.Context, id types.PbmProfileId, ...) error
- type PlacementCompatibilityResult
- type Property
Constants ¶
View Source
const ( Namespace = "pbm" Path = "/pbm" )
Variables ¶
View Source
var (
ServiceInstance = vim.ManagedObjectReference{
Type: "PbmServiceInstance",
Value: "ServiceInstance",
}
)
Functions ¶
func CreateCapabilityProfileSpec ¶
func CreateCapabilityProfileSpec(pbmCreateSpec CapabilityProfileCreateSpec) (*types.PbmCapabilityProfileCreateSpec, error)
Types ¶
type Capability ¶
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 (*Client) CheckRequirements ¶
func (c *Client) CheckRequirements(ctx context.Context, hubs []types.PbmPlacementHub, ref *types.PbmServerObjectRef, preq []types.BasePbmPlacementRequirement) (PlacementCompatibilityResult, 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 (*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
Click to show internal directories.
Click to hide internal directories.