Documentation ¶
Index ¶
- func ResourceOboToken() common.Resource
- func ResourceServicePrincipalSecret() common.Resource
- func ResourceToken() common.Resource
- type ListServicePrincipalSecrets
- type OboToken
- type ServicePrincipalSecret
- type ServicePrincipalSecretAPI
- type TokenInfo
- type TokenList
- type TokenManagementAPI
- type TokenRequest
- type TokenResponse
- type TokensAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResourceOboToken ¶
func ResourceServicePrincipalSecret ¶ added in v1.5.0
func ResourceToken ¶
ResourceToken refreshes token in case it's expired
Types ¶
type ListServicePrincipalSecrets ¶ added in v1.5.0
type ListServicePrincipalSecrets struct {
Secrets []ServicePrincipalSecret `json:"secrets"`
}
type ServicePrincipalSecret ¶ added in v1.5.0
type ServicePrincipalSecretAPI ¶ added in v1.5.0
type ServicePrincipalSecretAPI struct {
// contains filtered or unexported fields
}
ServicePrincipalSecretAPI exposes the API to create client secrets
func NewServicePrincipalSecretAPI ¶ added in v1.5.0
func NewServicePrincipalSecretAPI(ctx context.Context, m any) ServicePrincipalSecretAPI
NewServicePrincipalSecretAPI creates ServicePrincipalSecretAPI instance from provider meta
type TokenInfo ¶
type TokenInfo struct { TokenID string `json:"token_id,omitempty"` CreationTime int64 `json:"creation_time,omitempty"` ExpiryTime int64 `json:"expiry_time,omitempty"` Comment string `json:"comment,omitempty"` }
TokenInfo is a struct that contains metadata about a given token
type TokenList ¶
type TokenList struct {
TokenInfos []TokenInfo `json:"token_infos,omitempty"`
}
TokenList ...
type TokenManagementAPI ¶
type TokenManagementAPI struct {
// contains filtered or unexported fields
}
func NewTokenManagementAPI ¶
func NewTokenManagementAPI(ctx context.Context, m any) TokenManagementAPI
func (TokenManagementAPI) CreateTokenOnBehalfOfServicePrincipal ¶
func (a TokenManagementAPI) CreateTokenOnBehalfOfServicePrincipal(request OboToken) (token TokenResponse, err error)
func (TokenManagementAPI) Delete ¶
func (a TokenManagementAPI) Delete(tokenID string) error
func (TokenManagementAPI) Read ¶
func (a TokenManagementAPI) Read(tokenID string) (ti TokenResponse, err error)
type TokenRequest ¶
type TokenRequest struct { LifetimeSeconds int32 `json:"lifetime_seconds,omitempty"` Comment string `json:"comment,omitempty"` }
TokenRequest asks for a token
type TokenResponse ¶
type TokenResponse struct { TokenValue string `json:"token_value,omitempty"` TokenInfo *TokenInfo `json:"token_info,omitempty"` }
TokenResponse is a struct that contains information about token that is created from the create tokens api
type TokensAPI ¶
type TokensAPI struct {
// contains filtered or unexported fields
}
TokensAPI exposes the Secrets API
func NewTokensAPI ¶
NewTokensAPI creates TokensAPI instance from provider meta
Click to show internal directories.
Click to hide internal directories.