Documentation ¶
Index ¶
- func GetResourceGroupName(ctx context.Context) (string, error)
- func GetSubscriptionID(ctx context.Context) (string, error)
- type Client
- func (c *Client) AssignPrivateIpAddressesVM(ctx context.Context, subnetID, interfaceName string, addresses int) error
- func (c *Client) AssignPrivateIpAddressesVMSS(ctx context.Context, instanceID, vmssName, subnetID, interfaceName string, ...) error
- func (c *Client) GetInstances(ctx context.Context, subnets ipamTypes.SubnetMap) (*ipamTypes.InstanceMap, error)
- func (c *Client) GetVpcsAndSubnets(ctx context.Context) (ipamTypes.VirtualNetworkMap, ipamTypes.SubnetMap, error)
- type MetricsAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceGroupName ¶
GetResourceGroupName retrieves the current resource group name in which the host running the Cilium Operator is located This is retrieved via the Azure Instance Metadata Service
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an Azure API client
func NewClient ¶
func NewClient(subscriptionID, resourceGroup string, metrics MetricsAPI, rateLimit float64, burst int) (*Client, error)
NewClient returns a new Azure client
func (*Client) AssignPrivateIpAddressesVM ¶
func (c *Client) AssignPrivateIpAddressesVM(ctx context.Context, subnetID, interfaceName string, addresses int) error
AssignPrivateIpAddressesVM assign a private IP to an interface attached to a standalone instance
func (*Client) AssignPrivateIpAddressesVMSS ¶
func (c *Client) AssignPrivateIpAddressesVMSS(ctx context.Context, instanceID, vmssName, subnetID, interfaceName string, addresses int) error
AssignPrivateIpAddressesVMSS assign a private IP to an interface attached to a VMSS instance
func (*Client) GetInstances ¶
func (c *Client) GetInstances(ctx context.Context, subnets ipamTypes.SubnetMap) (*ipamTypes.InstanceMap, error)
GetInstances returns the list of all instances including all attached interfaces as instanceMap
func (*Client) GetVpcsAndSubnets ¶
func (c *Client) GetVpcsAndSubnets(ctx context.Context) (ipamTypes.VirtualNetworkMap, ipamTypes.SubnetMap, error)
GetVpcsAndSubnets retrieves and returns all Vpcs
Click to show internal directories.
Click to hide internal directories.