pbm

package
v0.46.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 55

Documentation

Index

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

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

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 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) 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

func (c *Client) GetProfileNameByID(ctx context.Context, profileID string) (string, error)

GetProfileNameByID gets storage profile name by ID

func (*Client) ProfileIDByName

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

func (*Client) ProfileMap added in v0.38.0

func (c *Client) ProfileMap(ctx context.Context, uid ...string) (*ProfileMap, error)

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) QueryIOFiltersFromProfileId added in v0.44.0

func (c *Client) QueryIOFiltersFromProfileId(
	ctx context.Context, profileID string) ([]types.PbmProfileToIofilterMap, 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) 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) SupportsEncryption added in v0.44.0

func (c *Client) SupportsEncryption(
	ctx context.Context, profileID string) (bool, 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.

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