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) DatastoreMap(ctx context.Context, vc *vim25.Client, root vim.ManagedObjectReference) (*DatastoreMap, error)
- func (c *Client) DeleteProfile(ctx context.Context, ids []types.PbmProfileId) ([]types.PbmProfileOperationOutcome, error)
- func (c *Client) FetchCapabilityMetadata(ctx context.Context, rtype *types.PbmProfileResourceType, vendorUuid string) ([]types.PbmCapabilityMetadataPerCategory, error)
- func (c *Client) FetchComplianceResult(ctx context.Context, entities []types.PbmServerObjectRef) ([]types.PbmComplianceResult, error)
- func (c *Client) GetProfileNameByID(ctx context.Context, profileID string) (string, error)
- func (c *Client) ProfileIDByName(ctx context.Context, profileName string) (string, error)
- func (c *Client) ProfileMap(ctx context.Context, uid ...string) (*ProfileMap, 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) QueryAssociatedProfile(ctx context.Context, entity types.PbmServerObjectRef) ([]types.PbmProfileId, error)
- func (c *Client) QueryAssociatedProfiles(ctx context.Context, entities []types.PbmServerObjectRef) ([]types.PbmQueryProfileResult, 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) RoundTrip(ctx context.Context, req, res soap.HasFault) error
- func (c *Client) UpdateProfile(ctx context.Context, id types.PbmProfileId, ...) error
- type DatastoreMap
- type PlacementCompatibilityResult
- type ProfileMap
- 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 SubProfileName 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 RoundTripper soap.RoundTripper }
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) DatastoreMap ¶ added in v0.38.0
func (c *Client) DatastoreMap(ctx context.Context, vc *vim25.Client, root vim.ManagedObjectReference) (*DatastoreMap, error)
DatastoreMap returns a map of Datastore by name. The root reference can be a ClusterComputeResource or Folder.
func (*Client) DeleteProfile ¶
func (c *Client) DeleteProfile(ctx context.Context, ids []types.PbmProfileId) ([]types.PbmProfileOperationOutcome, error)
func (*Client) FetchCapabilityMetadata ¶ added in v0.22.0
func (c *Client) FetchCapabilityMetadata(ctx context.Context, rtype *types.PbmProfileResourceType, vendorUuid string) ([]types.PbmCapabilityMetadataPerCategory, error)
func (*Client) FetchComplianceResult ¶ added in v0.24.0
func (c *Client) FetchComplianceResult(ctx context.Context, entities []types.PbmServerObjectRef) ([]types.PbmComplianceResult, error)
func (*Client) GetProfileNameByID ¶ added in v0.23.0
GetProfileNameByID gets storage profile name by ID
func (*Client) ProfileIDByName ¶
func (*Client) ProfileMap ¶ added in v0.38.0
ProfileMap builds a map of storage profiles by name.
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) QueryAssociatedProfile ¶ added in v0.33.1
func (c *Client) QueryAssociatedProfile(ctx context.Context, entity types.PbmServerObjectRef) ([]types.PbmProfileId, error)
func (*Client) QueryAssociatedProfiles ¶ added in v0.33.1
func (c *Client) QueryAssociatedProfiles(ctx context.Context, entities []types.PbmServerObjectRef) ([]types.PbmQueryProfileResult, 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 DatastoreMap ¶ added in v0.38.0
type DatastoreMap struct { Name map[string]string PlacementHub []types.PbmPlacementHub }
DatastoreMap contains a map of Datastore by name.
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 ProfileMap ¶ added in v0.38.0
type ProfileMap struct { Name map[string]types.BasePbmProfile Profile []types.BasePbmProfile }
ProfileMap contains a map of storage profiles by name.
Click to show internal directories.
Click to hide internal directories.