Documentation ¶
Index ¶
- func TryGetScopeFromURL(url string) (string, error)
- type ApiClient
- func (client *ApiClient) DoWaitForLifecycleOperationStatus(ctx context.Context, response *ApiHttpResponse) (*LifecycleDto, error)
- func (client *ApiClient) Execute(ctx context.Context, method string, url string, headers http.Header, ...) (*ApiHttpResponse, error)
- func (client *ApiClient) GetConfig() *config.ProviderConfig
- type ApiHttpResponse
- type Auth
- func (client *Auth) AuthenticateClientSecret(ctx context.Context, scopes []string) (string, time.Time, error)
- func (client *Auth) AuthenticateOIDC(ctx context.Context, scopes []string) (string, time.Time, error)
- func (client *Auth) AuthenticateUsingCli(ctx context.Context, scopes []string) (string, time.Time, error)
- func (client *Auth) GetAuthority(tenantid string) string
- func (client *Auth) GetTokenForScopes(ctx context.Context, scopes []string) (*string, error)
- type LifecycleDto
- type LifecycleLinkDto
- type LifecycleLinksDto
- type LifecycleRequestedByDto
- type LifecycleStageDto
- type LifecycleStateDto
- type OidcCredential
- type OidcCredentialOptions
- type ProviderClient
- type TokenExpiredError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TryGetScopeFromURL ¶
Types ¶
type ApiClient ¶
type ApiClient struct { Config *config.ProviderConfig BaseAuth *Auth }
func NewApiClientBase ¶
func NewApiClientBase(config *config.ProviderConfig, baseAuth *Auth) *ApiClient
func (*ApiClient) DoWaitForLifecycleOperationStatus ¶
func (client *ApiClient) DoWaitForLifecycleOperationStatus(ctx context.Context, response *ApiHttpResponse) (*LifecycleDto, error)
func (*ApiClient) GetConfig ¶
func (client *ApiClient) GetConfig() *config.ProviderConfig
type ApiHttpResponse ¶
func (*ApiHttpResponse) GetHeader ¶
func (apiResponse *ApiHttpResponse) GetHeader(name string) string
func (*ApiHttpResponse) MarshallTo ¶
func (apiResponse *ApiHttpResponse) MarshallTo(obj interface{}) error
func (*ApiHttpResponse) ValidateStatusCode ¶
func (ApiHttpResponse *ApiHttpResponse) ValidateStatusCode(expectedStatusCode int) error
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewAuthBase ¶
func NewAuthBase(config *config.ProviderConfig) *Auth
func (*Auth) AuthenticateClientSecret ¶
func (*Auth) AuthenticateOIDC ¶
func (*Auth) AuthenticateUsingCli ¶
func (*Auth) GetAuthority ¶
type LifecycleDto ¶
type LifecycleDto struct { Id string `json:"id"` Links LifecycleLinksDto `json:"links"` State LifecycleStateDto `json:"state"` Type LifecycleStateDto `json:"type"` CreatedDateTime string `json:"createdDateTime"` LastActionDateTime string `json:"lastActionDateTime"` RequestedBy LifecycleRequestedByDto `json:"requestedBy"` Stages []LifecycleStageDto `json:"stages"` }
type LifecycleLinkDto ¶
type LifecycleLinkDto struct {
Path string `json:"path"`
}
type LifecycleLinksDto ¶
type LifecycleLinksDto struct { Self LifecycleLinkDto `json:"self"` Environment LifecycleLinkDto `json:"environment"` }
type LifecycleRequestedByDto ¶
type LifecycleStageDto ¶
type LifecycleStageDto struct { Id string `json:"id"` Name string `json:"name"` State LifecycleStateDto `json:"state"` FirstActionDateTime string `json:"firstActionDateTime"` LastActionDateTime string `json:"lastActionDateTime"` }
type LifecycleStateDto ¶
type LifecycleStateDto struct {
Id string `json:"id"`
}
type OidcCredential ¶
type OidcCredential struct {
// contains filtered or unexported fields
}
func NewOidcCredential ¶
func NewOidcCredential(options *OidcCredentialOptions) (*OidcCredential, error)
func (*OidcCredential) GetToken ¶
func (w *OidcCredential) GetToken(ctx context.Context, opts policy.TokenRequestOptions) (azcore.AccessToken, error)
type OidcCredentialOptions ¶
type ProviderClient ¶
type ProviderClient struct { Config *config.ProviderConfig Api *ApiClient }
type TokenExpiredError ¶
type TokenExpiredError struct {
Message string
}
func (*TokenExpiredError) Error ¶
func (e *TokenExpiredError) Error() string
Click to show internal directories.
Click to hide internal directories.