Documentation ¶
Index ¶
- type Manager
- func (c *Manager) AddModuleMembers(ctx context.Context, id string, vms ...mo.Reference) (bool, error)
- func (c *Manager) CreateModule(ctx context.Context, ref mo.Reference) (string, error)
- func (c *Manager) DeleteModule(ctx context.Context, id string) error
- func (c *Manager) ListModuleMembers(ctx context.Context, id string) ([]types.ManagedObjectReference, error)
- func (c *Manager) ListModules(ctx context.Context) ([]ModuleSummary, error)
- func (c *Manager) RemoveModuleMembers(ctx context.Context, id string, vms ...mo.Reference) (bool, error)
- type ModuleSummary
- type ModuleSummaryList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager extends rest.Client, adding cluster related methods.
func NewManager ¶
NewManager creates a new Manager instance with the given client.
func (*Manager) AddModuleMembers ¶
func (c *Manager) AddModuleMembers(ctx context.Context, id string, vms ...mo.Reference) (bool, error)
AddModuleMembers adds virtual machines to the module. These virtual machines are required to be in the same vCenter cluster. Returns true if all vms are added, false if a vm is already a member of the module or not within the module's cluster.
func (*Manager) CreateModule ¶
CreateModule creates a new module in a vCenter cluster.
func (*Manager) DeleteModule ¶
DeleteModule deletes a specific module.
func (*Manager) ListModuleMembers ¶
func (c *Manager) ListModuleMembers(ctx context.Context, id string) ([]types.ManagedObjectReference, error)
ListModuleMembers returns the virtual machines that are members of the module.
func (*Manager) ListModules ¶
func (c *Manager) ListModules(ctx context.Context) ([]ModuleSummary, error)
ListModules returns information about the modules available in this vCenter server.
type ModuleSummary ¶
ModuleSummary contains commonly used information about a module in a vCenter cluster.
type ModuleSummaryList ¶
type ModuleSummaryList struct {
Summaries []ModuleSummary `json:"summaries"`
}
ModuleSummaryList is used to JSON encode/decode a ModuleSummary.