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 ¶ added in v0.1.1
type AKSConfig struct { // TODO: Promote this to a proper (versioned) k8s Object DnsZone string `json:"dnsZone" mapstructure:"dnsZone"` ContactEmail string `json:"contactEmail" mapstructure:"contactEmail"` ExternalDNS ExternalDnsAzureConfig `json:"externalDns" mapstructure:"externalDns"` OauthProxy OauthProxyConfig `json:"oauthProxy" mapstructure:"oauthProxy"` }
Local config required for AKS platforms
type ExternalDnsAzureConfig ¶ added in v0.1.1
type ExternalDnsAzureConfig struct { TenantID string `json:"tenantId" mapstructure:"tenantId"` SubscriptionID string `json:"subscriptionId" mapstructure:"subscriptionId"` AADClientID string `json:"aadClientId" mapstructure:"aadClientId"` AADClientSecret string `json:"aadClientSecret" mapstructure:"aadClientSecret"` ResourceGroup string `json:"resourceGroup" mapstructure:"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.
type OauthProxyConfig ¶ added in v0.1.1
type OauthProxyConfig struct { ClientID string `json:"client_id" mapstructure:"client_id"` ClientSecret string `json:"client_secret" mapstructure:"client_secret"` CookieSecret string `json:"cookie_secret" mapstructure:"cookie_secret"` AzureTenant string `json:"azure_tenant" mapstructure:"azure_tenant"` }
Config options required by oauth2-proxy