Documentation
¶
Index ¶
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 ServicePrincipalSecret ¶ added in v1.5.0
type ServicePrincipalSecret struct {
oauth2.CreateServicePrincipalSecretResponse
ServicePrincipalId string `json:"service_principal_id" tf:"force_new"`
Lifetime string `json:"lifetime,omitempty" tf:"computed,force_new"`
}
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.