Documentation ¶
Index ¶
- type AvailabilitySetScope
- type AzureClient
- func (a *AzureClient) CreateOrUpdate(ctx context.Context, resourceGroup string, availabilitySetsName string, ...) (compute.AvailabilitySet, error)
- func (a *AzureClient) Delete(ctx context.Context, resourceGroup, availabilitySetsName string) error
- func (a *AzureClient) Get(ctx context.Context, resourceGroup, availabilitySetsName string) (compute.AvailabilitySet, error)
- type Client
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailabilitySetScope ¶
type AvailabilitySetScope interface { logr.Logger azure.ClusterDescriber AvailabilitySet() (string, bool) }
AvailabilitySetScope defines the scope interface for a availability sets service.
type AzureClient ¶
type AzureClient struct {
// contains filtered or unexported fields
}
AzureClient contains the Azure go-sdk Client.
func NewClient ¶
func NewClient(auth azure.Authorizer) *AzureClient
NewClient creates a new Resource SKUs Client from subscription ID.
func (*AzureClient) CreateOrUpdate ¶
func (a *AzureClient) CreateOrUpdate(ctx context.Context, resourceGroup string, availabilitySetsName string, params compute.AvailabilitySet) (compute.AvailabilitySet, error)
CreateOrUpdate creates or updates an availability set.
func (*AzureClient) Delete ¶
func (a *AzureClient) Delete(ctx context.Context, resourceGroup, availabilitySetsName string) error
Delete deletes an availability set.
func (*AzureClient) Get ¶
func (a *AzureClient) Get(ctx context.Context, resourceGroup, availabilitySetsName string) (compute.AvailabilitySet, error)
Get gets an availability set.
type Client ¶
type Client interface { Get(ctx context.Context, resourceGroup, availabilitySetsName string) (compute.AvailabilitySet, error) CreateOrUpdate(ctx context.Context, resourceGroup, availabilitySetsName string, params compute.AvailabilitySet) (compute.AvailabilitySet, error) Delete(ctx context.Context, resourceGroup, availabilitySetsName string) error }
Client wraps go-sdk.
type Service ¶
type Service struct { Scope AvailabilitySetScope Client // contains filtered or unexported fields }
Service provides operations on Azure resources.
func New ¶
func New(scope AvailabilitySetScope, skuCache *resourceskus.Cache) *Service
New creates a new availability sets service.
Directories ¶
Path | Synopsis |
---|---|
Package mock_availabilitysets is a generated GoMock package.
|
Package mock_availabilitysets is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.