Documentation ¶
Index ¶
- type PlacementGroupClient
- func (c *PlacementGroupClient) Create(ctx context.Context, group, name string, compute *compute.PlacementGroup) (*compute.PlacementGroup, error)
- func (c *PlacementGroupClient) Delete(ctx context.Context, group, name string) error
- func (c *PlacementGroupClient) Get(ctx context.Context, group, name string) (*[]compute.PlacementGroup, error)
- func (c *PlacementGroupClient) Precheck(ctx context.Context, group string, pgroups []*compute.PlacementGroup) (bool, error)
- type Service
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) }
Click to show internal directories.
Click to hide internal directories.