Documentation ¶
Index ¶
- 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 Service
- type VnetPeeringScope
- type VnetPeeringSpec
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 virtual network peerings 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 virtual network peering 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 virtual network peering 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 the specified virtual network peering by the peering name, virtual network, and resource group.
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 Service ¶
type Service struct { Scope VnetPeeringScope async.Reconciler }
Service provides operations on Azure resources.
type VnetPeeringScope ¶
type VnetPeeringScope interface { azure.Authorizer azure.AsyncStatusUpdater VnetPeeringSpecs() []azure.ResourceSpecGetter }
VnetPeeringScope defines the scope interface for a subnet service.
type VnetPeeringSpec ¶ added in v1.1.0
type VnetPeeringSpec struct { SourceResourceGroup string SourceVnetName string RemoteResourceGroup string RemoteVnetName string PeeringName string SubscriptionID string }
VnetPeeringSpec defines the specification for a virtual network peering.
func (*VnetPeeringSpec) OwnerResourceName ¶ added in v1.1.0
func (s *VnetPeeringSpec) OwnerResourceName() string
OwnerResourceName is a no-op for virtual network peerings.
func (*VnetPeeringSpec) Parameters ¶ added in v1.1.0
func (s *VnetPeeringSpec) Parameters(existing interface{}) (interface{}, error)
Parameters returns the parameters for the virtual network peering.
func (*VnetPeeringSpec) ResourceGroupName ¶ added in v1.1.0
func (s *VnetPeeringSpec) ResourceGroupName() string
ResourceGroupName returns the name of the resource group.
func (*VnetPeeringSpec) ResourceName ¶ added in v1.1.0
func (s *VnetPeeringSpec) ResourceName() string
ResourceName returns the name of the virtual network peering.
Directories ¶
Path | Synopsis |
---|---|
Run go generate to regenerate this mock.
|
Run go generate to regenerate this mock. |