Documentation ¶
Overview ¶
Implements interaction with the Azure API.
Instance metadata is retrieved from the Azure IMDS API.
Retrieving metadata of other instances is done by using the Azure API, and requires Azure credentials.
Index ¶
- type Cloud
- func (c *Cloud) GetCCMConfig(ctx context.Context, providerID string, cloudServiceAccountURI string) ([]byte, error)
- func (c *Cloud) GetLoadBalancerEndpoint(ctx context.Context) (string, error)
- func (c *Cloud) InitSecretHash(ctx context.Context) ([]byte, error)
- func (c *Cloud) List(ctx context.Context) ([]metadata.InstanceMetadata, error)
- func (c *Cloud) Self(ctx context.Context) (metadata.InstanceMetadata, error)
- func (c *Cloud) UID(ctx context.Context) (string, error)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cloud ¶ added in v2.3.0
type Cloud struct {
// contains filtered or unexported fields
}
Cloud provides Azure metadata and API access.
func New ¶ added in v2.3.0
New initializes Cloud with the needed API clients. Default credentials are used for authentication.
func (*Cloud) GetCCMConfig ¶ added in v2.3.0
func (c *Cloud) GetCCMConfig(ctx context.Context, providerID string, cloudServiceAccountURI string) ([]byte, error)
GetCCMConfig returns the configuration needed for the Kubernetes Cloud Controller Manager on Azure.
func (*Cloud) GetLoadBalancerEndpoint ¶ added in v2.3.0
GetLoadBalancerEndpoint retrieves the first load balancer IP from cloud provider metadata.
The returned string is an IP address without a port, but the method name needs to satisfy the metadata interface.
func (*Cloud) InitSecretHash ¶ added in v2.3.0
InitSecretHash retrieves the InitSecretHash of the current instance.
func (*Cloud) List ¶ added in v2.3.0
List retrieves all instances belonging to the current constellation.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger implements CloudLogger interface for Azure to Disclose early boot logs into Azure's App Insights service.
func NewLogger ¶
NewLogger creates a new client to store information in Azure Application Insights https://github.com/Microsoft/ApplicationInsights-go