Documentation ¶
Index ¶
- type AvailabilitySetClient
- func (c *AvailabilitySetClient) Create(ctx context.Context, group, name string, compute *compute.AvailabilitySet) (*compute.AvailabilitySet, error)
- func (c *AvailabilitySetClient) Delete(ctx context.Context, group, name string) error
- func (c *AvailabilitySetClient) Get(ctx context.Context, group, name string) (*[]compute.AvailabilitySet, error)
- func (c *AvailabilitySetClient) Precheck(ctx context.Context, group string, avsets []*compute.AvailabilitySet) (bool, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailabilitySetClient ¶
type AvailabilitySetClient struct { compute.BaseClient // contains filtered or unexported fields }
func NewAvailabilitySetClient ¶
func NewAvailabilitySetClient(cloudFQDN string, authorizer auth.Authorizer) (*AvailabilitySetClient, error)
func (*AvailabilitySetClient) Create ¶
func (c *AvailabilitySetClient) Create(ctx context.Context, group, name string, compute *compute.AvailabilitySet) (*compute.AvailabilitySet, error)
CreateOrUpdate methods invokes create or update on the client
func (*AvailabilitySetClient) Delete ¶
func (c *AvailabilitySetClient) Delete(ctx context.Context, group, name string) error
Delete methods invokes delete of the compute resource
func (*AvailabilitySetClient) Get ¶
func (c *AvailabilitySetClient) Get(ctx context.Context, group, name string) (*[]compute.AvailabilitySet, error)
Get methods invokes the client Get method
func (*AvailabilitySetClient) Precheck ¶ added in v0.19.3
func (c *AvailabilitySetClient) Precheck(ctx context.Context, group string, avsets []*compute.AvailabilitySet) (bool, error)
Prechecks whether the system is able to create specified availability sets. 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.AvailabilitySet, error) Create(ctx context.Context, group string, name string, avset *compute.AvailabilitySet) (*compute.AvailabilitySet, error) Delete(context.Context, string, string) error Precheck(ctx context.Context, group string, avsets []*compute.AvailabilitySet) (bool, error) }
Click to show internal directories.
Click to hide internal directories.