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) ImagePushStatus(pushID string) (ImagePushStatusResult, 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) McpGetRunTestFailures(cfg McpGetRunTestFailuresRequest) (*McpTextResult, 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) StartImagePush(cfg StartImagePushConfig) (StartImagePushResult, error)
- func (c Client) Whoami() (*WhoamiResult, error)
- type Config
- type DebugConnectionInfo
- type DebugConnectionInfoError
- type ErrorMessage
- type GetDispatchConfig
- type GetDispatchResult
- type GetDispatchRun
- type GitMetadata
- type ImagePushStatusResult
- type InitializationParameter
- type InitiateDispatchConfig
- type InitiateDispatchResult
- type InitiateRunConfig
- type InitiateRunResult
- type LintConfig
- type LintProblem
- type LintResult
- type McpGetRunTestFailuresRequest
- type McpTextResult
- type NullInt
- type ObtainAuthCodeCode
- type ObtainAuthCodeConfig
- type ObtainAuthCodeResult
- type PackageVersionsResult
- type PatchMetadata
- type ResolveBaseLayerConfig
- type ResolveBaseLayerResult
- type RwxDirectoryEntry
- type Secret
- type SetSecretsInVaultConfig
- type SetSecretsInVaultResult
- type StartImagePushConfig
- type StartImagePushConfigCredentials
- type StartImagePushConfigImage
- type StartImagePushResult
- 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) ImagePushStatus ¶ added in v1.12.0
func (c Client) ImagePushStatus(pushID string) (ImagePushStatusResult, 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) McpGetRunTestFailures ¶ added in v1.11.0
func (c Client) McpGetRunTestFailures(cfg McpGetRunTestFailuresRequest) (*McpTextResult, 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) StartImagePush ¶ added in v1.12.0
func (c Client) StartImagePush(cfg StartImagePushConfig) (StartImagePushResult, 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 GitMetadata ¶ added in v1.13.0
type ImagePushStatusResult ¶ added in v1.12.0
type ImagePushStatusResult struct {
Status string `json:"status"`
}
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"`
Git GitMetadata `json:"git"`
Patch PatchMetadata `json:"patch"`
}
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 McpGetRunTestFailuresRequest ¶ added in v1.11.0
type McpGetRunTestFailuresRequest struct {
RunUrls []string `json:"run_urls"`
}
type McpTextResult ¶ added in v1.11.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 PackageVersionsResult ¶ added in v1.9.0
type PatchMetadata ¶ added in v1.13.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 StartImagePushConfig ¶ added in v1.12.0
type StartImagePushConfig struct {
TaskID string `json:"task_id"`
Image StartImagePushConfigImage `json:"image"`
Credentials StartImagePushConfigCredentials `json:"credentials"`
}
type StartImagePushConfigCredentials ¶ added in v1.12.0
type StartImagePushConfigImage ¶ added in v1.12.0
type StartImagePushResult ¶ added in v1.12.0
type TaskDefinition ¶
type WhoamiResult ¶
Click to show internal directories.
Click to hide internal directories.