Documentation ¶
Index ¶
- type AvailabilitySetScope
- type AvailabilitySetSpec
- type AzureClient
- func (ac *AzureClient) CreateOrUpdateAsync(ctx context.Context, spec azure.ResourceSpecGetter, parameters interface{}) (interface{}, azureautorest.FutureAPI, error)
- func (ac *AzureClient) DeleteAsync(ctx context.Context, spec azure.ResourceSpecGetter) (azureautorest.FutureAPI, error)
- func (ac *AzureClient) Get(ctx context.Context, spec azure.ResourceSpecGetter) (interface{}, error)
- func (ac *AzureClient) IsDone(ctx context.Context, future azureautorest.FutureAPI) (bool, error)
- func (ac *AzureClient) Result(ctx context.Context, futureData azureautorest.FutureAPI, futureType string) (interface{}, 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 { azure.ClusterDescriber azure.AsyncStatusUpdater AvailabilitySetSpec() azure.ResourceSpecGetter }
AvailabilitySetScope defines the scope interface for a availability sets service.
type AvailabilitySetSpec ¶ added in v1.1.0
type AvailabilitySetSpec struct { Name string ResourceGroup string ClusterName string Location string SKU *resourceskus.SKU AdditionalTags infrav1.Tags }
AvailabilitySetSpec defines the specification for an availability set.
func (*AvailabilitySetSpec) OwnerResourceName ¶ added in v1.1.0
func (s *AvailabilitySetSpec) OwnerResourceName() string
OwnerResourceName is a no-op for availability sets.
func (*AvailabilitySetSpec) Parameters ¶ added in v1.1.0
func (s *AvailabilitySetSpec) Parameters(existing interface{}) (interface{}, error)
Parameters returns the parameters for the availability set.
func (*AvailabilitySetSpec) ResourceGroupName ¶ added in v1.1.0
func (s *AvailabilitySetSpec) ResourceGroupName() string
ResourceGroupName returns the name of the resource group.
func (*AvailabilitySetSpec) ResourceName ¶ added in v1.1.0
func (s *AvailabilitySetSpec) ResourceName() string
ResourceName returns the name of the availability set.
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) CreateOrUpdateAsync ¶ added in v1.1.0
func (ac *AzureClient) CreateOrUpdateAsync(ctx context.Context, spec azure.ResourceSpecGetter, parameters interface{}) (interface{}, azureautorest.FutureAPI, error)
CreateOrUpdateAsync creates or updates a availability set asynchronously. It sends a PUT request to Azure and if accepted without error, the func will return a Future which can be used to track the ongoing progress of the operation.
func (*AzureClient) DeleteAsync ¶ added in v1.1.0
func (ac *AzureClient) DeleteAsync(ctx context.Context, spec azure.ResourceSpecGetter) (azureautorest.FutureAPI, error)
DeleteAsync deletes a availability set asynchronously. DeleteAsync sends a DELETE request to Azure and if accepted without error, the func will return a Future which can be used to track the ongoing progress of the operation.
func (*AzureClient) Get ¶
func (ac *AzureClient) Get(ctx context.Context, spec azure.ResourceSpecGetter) (interface{}, error)
Get gets an availability set.
func (*AzureClient) IsDone ¶ added in v1.1.0
func (ac *AzureClient) IsDone(ctx context.Context, future azureautorest.FutureAPI) (bool, error)
IsDone returns true if the long-running operation has completed.
func (*AzureClient) Result ¶ added in v1.1.0
func (ac *AzureClient) Result(ctx context.Context, futureData azureautorest.FutureAPI, futureType string) (interface{}, error)
Result fetches the result of a long-running operation future.
type Client ¶
type Client interface { Get(ctx context.Context, spec azure.ResourceSpecGetter) (interface{}, error) CreateOrUpdateAsync(context.Context, azure.ResourceSpecGetter, interface{}) (interface{}, azureautorest.FutureAPI, error) DeleteAsync(context.Context, azure.ResourceSpecGetter) (azureautorest.FutureAPI, error) IsDone(context.Context, azureautorest.FutureAPI) (bool, error) Result(context.Context, azureautorest.FutureAPI, string) (interface{}, error) }
Client wraps go-sdk.
type Service ¶
type Service struct { Scope AvailabilitySetScope Client async.Reconciler // 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. |