Documentation ¶
Index ¶
Constants ¶
const (
// AppID is the registered ID of the "Kubeprod Installer" app
AppID = "2dcc87f0-6e30-4dca-b572-20d971c63a89"
)
Variables ¶
This section is empty.
Functions ¶
func NewAuthorizerFromCli ¶
func NewAuthorizerFromCli(resource, tenantID string) (autorest.Authorizer, error)
NewAuthorizerFromCli snarfs credentials from azure-cli's stored credentials. These have a short (~1h?) expiry.
Types ¶
type AKSConfig ¶
type AKSConfig struct { // TODO: Promote this to a proper (versioned) k8s Object DnsZone string `json:"dnsZone"` ContactEmail string `json:"contactEmail"` ExternalDNS ExternalDnsAzureConfig `json:"externalDns"` OauthProxy OauthProxyConfig `json:"oauthProxy"` // contains filtered or unexported fields }
Local config required for AKS platforms
type ExternalDnsAzureConfig ¶
type ExternalDnsAzureConfig struct { TenantID string `json:"tenantId"` SubscriptionID string `json:"subscriptionId"` AADClientID string `json:"aadClientId"` AADClientSecret string `json:"aadClientSecret"` ResourceGroup string `json:"resourceGroup"` }
Structure of `azure.json` required by external-dns
type LoggingInspector ¶
LoggingInspector implements request and response inspectors that log the full request and response to a supplied log.
func (LoggingInspector) ByInspecting ¶
func (li LoggingInspector) ByInspecting() autorest.RespondDecorator
ByInspecting returns a RespondDecorator that emits the http.Response to the supplied logger. The body is restored after being emitted.
Note: Since it reads the entire Body, this decorator should not be used where body streaming is important. It is best used to trace JSON or similar body values.
func (LoggingInspector) WithInspection ¶
func (li LoggingInspector) WithInspection() autorest.PrepareDecorator
WithInspection returns a PrepareDecorator that emits the http.Request to the supplied logger. The body is restored after being emitted.
Note: Since it reads the entire Body, this decorator should not be used where body streaming is important. It is best used to trace JSON or similar body values.