Documentation ¶
Index ¶
- Constants
- type Service
- func (s *Service) CreateOrUpdateNetworkSecurityGroup(resourceGroupName string, networkSecurityGroupName string, location string) (*network.SecurityGroupsCreateOrUpdateFuture, error)
- func (s *Service) CreateOrUpdateVnet(resourceGroupName string, virtualNetworkName string, location string) (*network.VirtualNetworksCreateOrUpdateFuture, error)
- func (s *Service) DeleteNetworkInterface(resourceGroup string, networkInterfaceName string) (network.InterfacesDeleteFuture, error)
- func (s *Service) DeleteNetworkSecurityGroup(resourceGroupName string, networkSecurityGroupName string) (network.SecurityGroupsDeleteFuture, error)
- func (s *Service) DeletePublicIPAddress(resourceGroup string, IPName string) (network.PublicIPAddressesDeleteFuture, error)
- func (s *Service) GetPublicIPAddress(resourceGroup string, IPName string) (network.PublicIPAddress, error)
- func (s *Service) NetworkSGIfExists(resourceGroupName string, networkSecurityGroupName string) (*network.SecurityGroup, error)
- func (s *Service) SetAuthorizer(authorizer autorest.Authorizer)
- func (s *Service) WaitForNetworkInterfacesDeleteFuture(future network.InterfacesDeleteFuture) error
- func (s *Service) WaitForNetworkSGsCreateOrUpdateFuture(future network.SecurityGroupsCreateOrUpdateFuture) error
- func (s *Service) WaitForPublicIPAddressDeleteFuture(future network.PublicIPAddressesDeleteFuture) error
- func (s *Service) WaitForVnetCreateOrUpdateFuture(future network.VirtualNetworksCreateOrUpdateFuture) error
Constants ¶
const ( // VnetDefaultName is the default name for the cluster's virtual network. VnetDefaultName = "ClusterAPIVnet" // SubnetDefaultName is the default name for the cluster's subnet. SubnetDefaultName = "ClusterAPISubnet" )
const (
// SecurityGroupDefaultName is the default name for the network security group of the cluster.
SecurityGroupDefaultName = "ClusterAPINSG"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { InterfacesClient network.InterfacesClient PublicIPAddressesClient network.PublicIPAddressesClient SecurityGroupsClient network.SecurityGroupsClient VirtualNetworksClient network.VirtualNetworksClient // contains filtered or unexported fields }
Service provides the instances of the azure network API clients.
func NewService ¶
NewService returns a new instance of Service.
func (*Service) CreateOrUpdateNetworkSecurityGroup ¶
func (s *Service) CreateOrUpdateNetworkSecurityGroup(resourceGroupName string, networkSecurityGroupName string, location string) (*network.SecurityGroupsCreateOrUpdateFuture, error)
CreateOrUpdateNetworkSecurityGroup creates or updates the nsg resource.
func (*Service) CreateOrUpdateVnet ¶
func (s *Service) CreateOrUpdateVnet(resourceGroupName string, virtualNetworkName string, location string) (*network.VirtualNetworksCreateOrUpdateFuture, error)
CreateOrUpdateVnet creates or updates a virtual network resource.
func (*Service) DeleteNetworkInterface ¶
func (s *Service) DeleteNetworkInterface(resourceGroup string, networkInterfaceName string) (network.InterfacesDeleteFuture, error)
DeleteNetworkInterface deletes the NIC resource.
func (*Service) DeleteNetworkSecurityGroup ¶
func (s *Service) DeleteNetworkSecurityGroup(resourceGroupName string, networkSecurityGroupName string) (network.SecurityGroupsDeleteFuture, error)
DeleteNetworkSecurityGroup deletes the nsg resource.
func (*Service) DeletePublicIPAddress ¶
func (s *Service) DeletePublicIPAddress(resourceGroup string, IPName string) (network.PublicIPAddressesDeleteFuture, error)
DeletePublicIPAddress deletes the Public IP address resource.
func (*Service) GetPublicIPAddress ¶
func (s *Service) GetPublicIPAddress(resourceGroup string, IPName string) (network.PublicIPAddress, error)
GetPublicIPAddress retrieves the Public IP address resource.
func (*Service) NetworkSGIfExists ¶
func (s *Service) NetworkSGIfExists(resourceGroupName string, networkSecurityGroupName string) (*network.SecurityGroup, error)
NetworkSGIfExists returns the nsg reference if the nsg resource exists.
func (*Service) SetAuthorizer ¶
func (s *Service) SetAuthorizer(authorizer autorest.Authorizer)
SetAuthorizer populates the authorizer component of the network client objects.
func (*Service) WaitForNetworkInterfacesDeleteFuture ¶
func (s *Service) WaitForNetworkInterfacesDeleteFuture(future network.InterfacesDeleteFuture) error
WaitForNetworkInterfacesDeleteFuture waits for the DeleteNetworkInterface operation to complete.
func (*Service) WaitForNetworkSGsCreateOrUpdateFuture ¶
func (s *Service) WaitForNetworkSGsCreateOrUpdateFuture(future network.SecurityGroupsCreateOrUpdateFuture) error
WaitForNetworkSGsCreateOrUpdateFuture returns when the CreateOrUpdateNetworkSecurityGroup operation completes.
func (*Service) WaitForPublicIPAddressDeleteFuture ¶
func (s *Service) WaitForPublicIPAddressDeleteFuture(future network.PublicIPAddressesDeleteFuture) error
WaitForPublicIPAddressDeleteFuture waits for the DeletePublicIPAddress operation to complete.
func (*Service) WaitForVnetCreateOrUpdateFuture ¶
func (s *Service) WaitForVnetCreateOrUpdateFuture(future network.VirtualNetworksCreateOrUpdateFuture) error
WaitForVnetCreateOrUpdateFuture returns when the CreateOrUpdateVnet operation completes.