Documentation
¶
Index ¶
- Variables
- type AcquireTokenResult
- type Client
- func (c Client) AcquireToken(tokenUrl string) (*AcquireTokenResult, error)
- func (c Client) GetDebugConnectionInfo(debugKey string) (DebugConnectionInfo, error)
- func (c Client) GetDispatch(cfg GetDispatchConfig) (*GetDispatchResult, error)
- func (c Client) GetPackageVersions() (*PackageVersionsResult, error)
- func (c Client) InitiateDispatch(cfg InitiateDispatchConfig) (*InitiateDispatchResult, error)
- func (c Client) InitiateRun(cfg InitiateRunConfig) (*InitiateRunResult, error)
- func (c Client) Lint(cfg LintConfig) (*LintResult, error)
- func (c Client) ObtainAuthCode(cfg ObtainAuthCodeConfig) (*ObtainAuthCodeResult, error)
- func (c Client) ResolveBaseLayer(cfg ResolveBaseLayerConfig) (ResolveBaseLayerResult, error)
- func (c Client) SetSecretsInVault(cfg SetSecretsInVaultConfig) (*SetSecretsInVaultResult, error)
- func (c Client) Whoami() (*WhoamiResult, error)
- type Config
- type DebugConnectionInfo
- type DebugConnectionInfoError
- type ErrorMessage
- type GetDispatchConfig
- type GetDispatchResult
- type GetDispatchRun
- type InitializationParameter
- type InitiateDispatchConfig
- type InitiateDispatchResult
- type InitiateRunConfig
- type InitiateRunResult
- type LintConfig
- type LintProblem
- type LintResult
- type NullInt
- type ObtainAuthCodeCode
- type ObtainAuthCodeConfig
- type ObtainAuthCodeResult
- type PackageVersionsResult
- type ResolveBaseLayerConfig
- type ResolveBaseLayerResult
- type RwxDirectoryEntry
- type Secret
- type SetSecretsInVaultConfig
- type SetSecretsInVaultResult
- type TaskDefinition
- type WhoamiResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type AcquireTokenResult ¶
type Client ¶
type Client struct {
http.RoundTripper
}
Client is an API Client for Mint
func NewClientWithRoundTrip ¶
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) GetDispatch ¶
func (c Client) GetDispatch(cfg GetDispatchConfig) (*GetDispatchResult, error)
func (Client) GetPackageVersions ¶ added in v1.9.0
func (c Client) GetPackageVersions() (*PackageVersionsResult, error)
func (Client) InitiateDispatch ¶
func (c Client) InitiateDispatch(cfg InitiateDispatchConfig) (*InitiateDispatchResult, 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) Lint ¶
func (c Client) Lint(cfg LintConfig) (*LintResult, error)
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) ResolveBaseLayer ¶
func (c Client) ResolveBaseLayer(cfg ResolveBaseLayerConfig) (ResolveBaseLayerResult, error)
func (Client) SetSecretsInVault ¶
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 ¶
type DebugConnectionInfoError struct {
Error string
}
type ErrorMessage ¶
type ErrorMessage struct {
Message string `json:"message"`
StackTrace []messages.StackEntry `json:"stack_trace,omitempty"`
Frame string `json:"frame"`
Advice string `json:"advice"`
}
type GetDispatchConfig ¶
type GetDispatchConfig struct {
DispatchId string
}
type GetDispatchResult ¶
type GetDispatchResult struct {
Status string
Error string
Runs []GetDispatchRun
}
type GetDispatchRun ¶
type InitializationParameter ¶
type InitiateDispatchConfig ¶
type InitiateDispatchConfig struct {
DispatchKey string `json:"key"`
Params map[string]string `json:"params"`
Title string `json:"title,omitempty"`
Ref string `json:"ref,omitempty"`
}
func (InitiateDispatchConfig) Validate ¶
func (c InitiateDispatchConfig) Validate() error
type InitiateDispatchResult ¶
type InitiateDispatchResult struct {
DispatchId string
}
type InitiateRunConfig ¶
type InitiateRunConfig struct {
InitializationParameters []InitializationParameter `json:"initialization_parameters"`
TaskDefinitions []RwxDirectoryEntry `json:"task_definitions"`
RwxDirectory []RwxDirectoryEntry `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 LintConfig ¶
type LintConfig struct {
TaskDefinitions []TaskDefinition `json:"task_definitions"`
TargetPaths []string `json:"target_paths"`
}
func (LintConfig) Validate ¶
func (c LintConfig) Validate() error
type LintProblem ¶
type LintProblem struct {
Severity string `json:"severity"`
Message string `json:"message"`
FileName string `json:"file_name"`
Line NullInt `json:"line"`
Column NullInt `json:"column"`
Advice string `json:"advice"`
StackTrace []messages.StackEntry `json:"stack_trace,omitempty"`
Frame string `json:"frame"`
}
func (LintProblem) FileLocation ¶
func (lf LintProblem) FileLocation() string
type LintResult ¶
type LintResult struct {
Problems []LintProblem `json:"problems"`
}
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 PackageVersionsResult ¶ added in v1.9.0
type ResolveBaseLayerConfig ¶
type ResolveBaseLayerConfig = resolveBaseLayerSpec
type ResolveBaseLayerResult ¶
type ResolveBaseLayerResult = resolveBaseLayerSpec
type RwxDirectoryEntry ¶
type RwxDirectoryEntry struct {
OriginalPath string `json:"-"`
Path string `json:"path"`
Type string `json:"type"`
Permissions uint32 `json:"permissions"`
FileContents string `json:"file_contents"`
}
func (RwxDirectoryEntry) IsDir ¶
func (e RwxDirectoryEntry) IsDir() bool
func (RwxDirectoryEntry) IsFile ¶
func (e RwxDirectoryEntry) IsFile() bool
type SetSecretsInVaultConfig ¶
type SetSecretsInVaultResult ¶
type SetSecretsInVaultResult struct {
SetSecrets []string `json:"set_secrets"`
}
type TaskDefinition ¶
type WhoamiResult ¶
Click to show internal directories.
Click to hide internal directories.