Documentation
¶
Index ¶
- Constants
- func DumpCredentials(z Bundle)
- func DumpVariables(z Bundle)
- func GetTokenByCredentials(scopes []string, ...) (token string, err error)
- func GetTokenInteractively(scopes []string, confDir, tokenFile, authorityUrl, username string) (token string, err error)
- func SetupAutomatedLogin(z Bundle)
- func SetupInterativeLogin(z Bundle)
- func StrVal(x interface{}) string
- type Bundle
- type TokenCache
Constants ¶
View Source
const ( ConstAuthUrl = "https://login.microsoftonline.com/" ConstMgUrl = "https://graph.microsoft.com" ConstAzUrl = "https://management.azure.com" ConstAzPowerShellClientId = "1950a258-227b-4e31-a9cf-717495945fc2" )
Variables ¶
This section is empty.
Functions ¶
func DumpCredentials ¶
func DumpCredentials(z Bundle)
func DumpVariables ¶
func DumpVariables(z Bundle)
func GetTokenByCredentials ¶
func GetTokenInteractively ¶
func SetupAutomatedLogin ¶
func SetupAutomatedLogin(z Bundle)
func SetupInterativeLogin ¶
func SetupInterativeLogin(z Bundle)
Types ¶
type Bundle ¶
type Bundle struct {
ConfDir string // Directory where utility will store all its file
CredsFile string
TokenFile string
TenantId string
ClientId string
ClientSecret string
Interactive bool
Username string
AuthorityUrl string
MgToken string // MS Graph API ...
MgHeaders map[string]string
AzToken string // Azure Resource Management API
AzHeaders map[string]string
}
func SetupApiTokens ¶
func SetupCredentials ¶
type TokenCache ¶
type TokenCache struct {
// contains filtered or unexported fields
}
func (*TokenCache) Replace ¶
func (t *TokenCache) Replace(cache cache.Unmarshaler, key string)
Click to show internal directories.
Click to hide internal directories.