placementgroup

package
v1.1.213 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlacementGroupClient

type PlacementGroupClient struct {
	compute.BaseClient
	// contains filtered or unexported fields
}

func NewPlacementGroupClient

func NewPlacementGroupClient(cloudFQDN string, authorizer auth.Authorizer) (*PlacementGroupClient, error)

func (*PlacementGroupClient) Create

func (c *PlacementGroupClient) Create(ctx context.Context, group, name string, compute *compute.PlacementGroup) (*compute.PlacementGroup, error)

CreateOrUpdate methods invokes create or update on the client

func (*PlacementGroupClient) Delete

func (c *PlacementGroupClient) Delete(ctx context.Context, group, name string) error

Delete methods invokes delete of the compute resource

func (*PlacementGroupClient) Get

func (c *PlacementGroupClient) Get(ctx context.Context, group, name string) (*[]compute.PlacementGroup, error)

Get methods invokes the client Get method

func (*PlacementGroupClient) Precheck

func (c *PlacementGroupClient) Precheck(ctx context.Context, group string, pgroups []*compute.PlacementGroup) (bool, error)

Prechecks whether the system is able to create specified placement groups. Returns true if it is possible; or false with reason in error message if not.

type Service

type Service interface {
	Get(context.Context, string, string) (*[]compute.PlacementGroup, error)
	Create(ctx context.Context, group string, name string, pgroup *compute.PlacementGroup) (*compute.PlacementGroup, error)
	Delete(context.Context, string, string) error
	Precheck(ctx context.Context, group string, pgroups []*compute.PlacementGroup) (bool, error)
}

Jump to

Keyboard shortcuts

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