Documentation ¶
Index ¶
- type AzureClient
- func (ac *AzureClient) CreateOrUpdateAsync(ctx context.Context, spec azure.ResourceSpecGetter, parameters interface{}) (result interface{}, future azureautorest.FutureAPI, err error)
- func (ac *AzureClient) DeleteAsync(ctx context.Context, spec azure.ResourceSpecGetter) (future azureautorest.FutureAPI, err error)
- func (ac *AzureClient) Get(ctx context.Context, spec azure.ResourceSpecGetter) (result interface{}, err error)
- func (ac *AzureClient) IsDone(ctx context.Context, future azureautorest.FutureAPI) (isDone bool, err error)
- func (ac *AzureClient) Result(ctx context.Context, future azureautorest.FutureAPI, futureType string) (result interface{}, err error)
- type NICScope
- type NICSpec
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 VM client from subscription ID.
func (*AzureClient) CreateOrUpdateAsync ¶ added in v1.2.0
func (ac *AzureClient) CreateOrUpdateAsync(ctx context.Context, spec azure.ResourceSpecGetter, parameters interface{}) (result interface{}, future azureautorest.FutureAPI, err error)
CreateOrUpdateAsync creates or updates a network interface 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.2.0
func (ac *AzureClient) DeleteAsync(ctx context.Context, spec azure.ResourceSpecGetter) (future azureautorest.FutureAPI, err error)
DeleteAsync deletes a network interface 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) (result interface{}, err error)
Get gets the specified network interface.
func (*AzureClient) IsDone ¶ added in v1.2.0
func (ac *AzureClient) IsDone(ctx context.Context, future azureautorest.FutureAPI) (isDone bool, err error)
IsDone returns true if the long-running operation has completed.
func (*AzureClient) Result ¶ added in v1.2.0
func (ac *AzureClient) Result(ctx context.Context, future azureautorest.FutureAPI, futureType string) (result interface{}, err error)
Result fetches the result of a long-running operation future.
type NICScope ¶
type NICScope interface { azure.ClusterDescriber azure.AsyncStatusUpdater NICSpecs() []azure.ResourceSpecGetter }
NICScope defines the scope interface for a network interfaces service.
type NICSpec ¶ added in v1.2.0
type NICSpec struct { Name string ResourceGroup string Location string SubscriptionID string MachineName string SubnetName string VNetName string VNetResourceGroup string StaticIPAddress string PublicLBName string PublicLBAddressPoolName string PublicLBNATRuleName string InternalLBName string InternalLBAddressPoolName string PublicIPName string AcceleratedNetworking *bool IPv6Enabled bool EnableIPForwarding bool SKU *resourceskus.SKU DNSServers []string AdditionalTags infrav1.Tags ClusterName string }
NICSpec defines the specification for a Network Interface.
func (*NICSpec) OwnerResourceName ¶ added in v1.2.0
OwnerResourceName is a no-op for network interfaces.
func (*NICSpec) Parameters ¶ added in v1.2.0
Parameters returns the parameters for the network interface.
func (*NICSpec) ResourceGroupName ¶ added in v1.2.0
ResourceGroupName returns the name of the resource group.
func (*NICSpec) ResourceName ¶ added in v1.2.0
ResourceName returns the name of the network interface.
type Service ¶
type Service struct { Scope NICScope async.Reconciler // contains filtered or unexported fields }
Service provides operations on Azure resources.
func New ¶
func New(scope NICScope, skuCache *resourceskus.Cache) *Service
New creates a new service.
func (*Service) IsManaged ¶ added in v1.3.0
IsManaged returns always returns true as CAPZ does not support BYO network interfaces.
Directories ¶
Path | Synopsis |
---|---|
Package mock_networkinterfaces is a generated GoMock package.
|
Package mock_networkinterfaces is a generated GoMock package. |