Documentation ¶
Index ¶
- type Client
- func (c *Client) GetInternalIP() net.IP
- func (c *Client) GetName() string
- func (c *Client) GetTags() (map[string]string, error)
- func (c *Client) ListVMSSNetworkInterfaces(ctx context.Context, vmScaleSetName string) ([]*network.Interface, error)
- func (c *Client) ListVMScaleSets(ctx context.Context) ([]*compute.VirtualMachineScaleSet, error)
- type SeedProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an Azure client.
func (*Client) GetInternalIP ¶
GetInternalIP returns the internal IP of the VM queried from Instance Metadata Service. This function returns nil if no internal IP is found.
func (*Client) ListVMSSNetworkInterfaces ¶
func (c *Client) ListVMSSNetworkInterfaces(ctx context.Context, vmScaleSetName string) ([]*network.Interface, error)
ListVMSSNetworkInterfaces returns the interfaces that the specified VM ScaleSet has.
func (*Client) ListVMScaleSets ¶
ListVMScaleSets returns VM ScaleSets in the resource group.
type SeedProvider ¶
type SeedProvider struct {
// contains filtered or unexported fields
}
SeedProvider is an Azure implementation of gossip.SeedProvider.
func NewSeedProvider ¶
func NewSeedProvider(client client, tags map[string]string) (*SeedProvider, error)
NewSeedProvider returns a new SeedProvider.
func (*SeedProvider) GetSeeds ¶
func (p *SeedProvider) GetSeeds() ([]string, error)
GetSeeds returns a slice of strings used as seeds of Gossip. This follows the implementation of AWS and creates seeds from private IPs of VMs in the cluster.
Click to show internal directories.
Click to hide internal directories.