Documentation
¶
Index ¶
- type AcquireTokenResult
- type Client
- func (c Client) AcquireToken(tokenUrl string) (*AcquireTokenResult, error)
- func (c Client) GetDebugConnectionInfo(debugKey string) (DebugConnectionInfo, error)
- func (c Client) GetLeafVersions() (*LeafVersionsResult, error)
- func (c Client) InitiateRun(cfg InitiateRunConfig) (*InitiateRunResult, error)
- func (c Client) ObtainAuthCode(cfg ObtainAuthCodeConfig) (*ObtainAuthCodeResult, error)
- func (c Client) SetSecretsInVault(cfg SetSecretsInVaultConfig) (*SetSecretsInVaultResult, error)
- func (c Client) Whoami() (*WhoamiResult, error)
- type Config
- type DebugConnectionInfo
- type DebugConnectionInfoError
- type InitializationParameter
- type InitiateRunConfig
- type InitiateRunResult
- type LeafVersionsResult
- type ObtainAuthCodeCode
- type ObtainAuthCodeConfig
- type ObtainAuthCodeResult
- type Secret
- type SetSecretsInVaultConfig
- type SetSecretsInVaultResult
- type TaskDefinition
- type WhoamiResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcquireTokenResult ¶
type Client ¶
Client is an API Client for Mint
func (Client) AcquireToken ¶
func (c Client) AcquireToken(tokenUrl string) (*AcquireTokenResult, error)
AcquireToken consumes the one-time-use code once authorized
func (Client) GetDebugConnectionInfo ¶
func (c Client) GetDebugConnectionInfo(debugKey string) (DebugConnectionInfo, error)
func (Client) GetLeafVersions ¶ added in v0.2.0
func (c Client) GetLeafVersions() (*LeafVersionsResult, error)
func (Client) InitiateRun ¶
func (c Client) InitiateRun(cfg InitiateRunConfig) (*InitiateRunResult, error)
InitiateRun sends a request to Mint for starting a new run
func (Client) ObtainAuthCode ¶
func (c Client) ObtainAuthCode(cfg ObtainAuthCodeConfig) (*ObtainAuthCodeResult, error)
ObtainAuthCode requests a new one-time-use code to login on a device
func (Client) SetSecretsInVault ¶ added in v0.0.12
func (c Client) SetSecretsInVault(cfg SetSecretsInVaultConfig) (*SetSecretsInVaultResult, error)
func (Client) Whoami ¶
func (c Client) Whoami() (*WhoamiResult, error)
Whoami provides details about the authenticated token
type Config ¶
type Config struct { Host string AccessToken string AccessTokenBackend accesstoken.Backend }
type DebugConnectionInfo ¶
type DebugConnectionInfoError ¶ added in v0.1.1
type DebugConnectionInfoError struct {
Error string
}
type InitializationParameter ¶ added in v0.0.11
type InitiateRunConfig ¶
type InitiateRunConfig struct { InitializationParameters []InitializationParameter `json:"initialization_parameters"` TaskDefinitions []TaskDefinition `json:"task_definitions"` MintDirectory []TaskDefinition `json:"mint_directory"` TargetedTaskKeys []string `json:"targeted_task_keys,omitempty"` Title string `json:"title,omitempty"` UseCache bool `json:"use_cache"` }
func (InitiateRunConfig) Validate ¶
func (c InitiateRunConfig) Validate() error
type InitiateRunResult ¶
type LeafVersionsResult ¶ added in v0.2.0
type ObtainAuthCodeCode ¶
type ObtainAuthCodeCode struct {
DeviceName string `json:"device_name"`
}
type ObtainAuthCodeConfig ¶
type ObtainAuthCodeConfig struct {
Code ObtainAuthCodeCode `json:"code"`
}
func (ObtainAuthCodeConfig) Validate ¶
func (c ObtainAuthCodeConfig) Validate() error
type ObtainAuthCodeResult ¶
type SetSecretsInVaultConfig ¶ added in v0.0.12
type SetSecretsInVaultResult ¶ added in v0.0.12
type SetSecretsInVaultResult struct {
SetSecrets []string `json:"set_secrets"`
}
type TaskDefinition ¶
type WhoamiResult ¶
Click to show internal directories.
Click to hide internal directories.