Documentation ¶
Index ¶
- type AzureSubnetManager
- type AzureVNetManager
- func (m *AzureVNetManager) CreateVNet(ctx context.Context, location string, resourceGroupName string, ...) (vnetwork.VirtualNetwork, error)
- func (g *AzureVNetManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *AzureVNetManager) DeleteVNet(ctx context.Context, resourceGroupName string, resourceName string) (autorest.Response, error)
- func (g *AzureVNetManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *AzureVNetManager) GetAvailableIP(ctx context.Context, resourceGroup, vnet, subnet string) (string, error)
- func (g *AzureVNetManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (g *AzureVNetManager) GetStatus(obj runtime.Object) (*azurev1alpha1.ASOStatus, error)
- func (m *AzureVNetManager) GetVNet(ctx context.Context, resourceGroupName string, resourceName string) (vNet vnetwork.VirtualNetwork, err error)
- type SubnetID
- type VNetManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureSubnetManager ¶
type AzureSubnetManager struct {
// contains filtered or unexported fields
}
AzureSubnetManager is the struct that the manager functions hang off
func NewAzureSubnetManager ¶
func NewAzureSubnetManager(creds config.Credentials) *AzureSubnetManager
NewAzureSubnetManager returns a new client for subnets
type AzureVNetManager ¶
type AzureVNetManager struct { Creds config.Credentials Telemetry telemetry.Telemetry }
AzureVNetManager is the struct that the manager functions hang off
func NewAzureVNetManager ¶
func NewAzureVNetManager(creds config.Credentials) *AzureVNetManager
NewAzureVNetManager creates a new instance of AzureVNetManager
func (*AzureVNetManager) CreateVNet ¶
func (m *AzureVNetManager) CreateVNet(ctx context.Context, location string, resourceGroupName string, resourceName string, addressSpace string, subnets []azurev1alpha1.VNetSubnets) (vnetwork.VirtualNetwork, error)
CreateVNet creates VNets
func (*AzureVNetManager) Delete ¶
func (g *AzureVNetManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Delete makes sure that the VNet has been deleted
func (*AzureVNetManager) DeleteVNet ¶
func (m *AzureVNetManager) DeleteVNet(ctx context.Context, resourceGroupName string, resourceName string) (autorest.Response, error)
DeleteVNet deletes a VNet
func (*AzureVNetManager) Ensure ¶
func (g *AzureVNetManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Ensure makes sure that an VNet instance exists
func (*AzureVNetManager) GetAvailableIP ¶
func (*AzureVNetManager) GetParents ¶
func (g *AzureVNetManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
GetParents lists the parents for a VNet
func (*AzureVNetManager) GetStatus ¶
func (g *AzureVNetManager) GetStatus(obj runtime.Object) (*azurev1alpha1.ASOStatus, error)
func (*AzureVNetManager) GetVNet ¶
func (m *AzureVNetManager) GetVNet(ctx context.Context, resourceGroupName string, resourceName string) (vNet vnetwork.VirtualNetwork, err error)
GetVNet gets a VNet
type SubnetID ¶
type SubnetID struct { Name string VNet string Subnet string ResourceGroup string Subscription string }
SubnetID models the parts of a subnet resource id
func ParseSubnetID ¶
ParseSubnetID takes a resource id for a subnet and parses it into its parts
type VNetManager ¶
type VNetManager interface { CreateVNet(ctx context.Context, location string, resourceGroupName string, resourceName string, addressSpace string, subnets []azurev1alpha1.VNetSubnets) (vnetwork.VirtualNetwork, error) DeleteVNet(ctx context.Context, resourceGroupName string, resourceName string) (autorest.Response, error) GetVNet(ctx context.Context, resourceGroupName string, resourceName string) (vnetwork.VirtualNetwork, error) GetAvailableIP(ctc context.Context, resourceGroup, vnet, subnet string) (string, error) // also embed async client methods resourcemanager.ARMClient }
VNetManager manages VNet service components