Documentation
¶
Index ¶
- Variables
- type AuditEvent
- type Bootstrap
- type BootstrapResult
- type Build
- type BuildStatus
- type CacheMount
- type ControlChange
- type CreateDeviceToken
- type DeviceToken
- type EnrollmentCode
- type GitHubClaims
- type GitHubTrust
- type Idempotency
- type IssuedAccessToken
- type IssuedDeviceToken
- type IssuedEnrollmentCode
- type Job
- type JobPage
- type Operation
- type OperationKind
- type OperationState
- type PrepareJob
- type Principal
- type PrincipalKind
- type Project
- type ProjectImageEvent
- type QueueOperation
- type ResourceFilter
- type ResourceRollup
- type ResourceSample
- type ResourceScope
- type ResourceSummary
- type Scheduler
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyExists = errors.New("already exists") ErrForbidden = errors.New("forbidden") ErrIdempotencyConflict = errors.New("idempotency key was already used with a different request") ErrInvalidPageToken = errors.New("invalid page token") ErrNotFound = errors.New("not found") ErrUnauthenticated = errors.New("unauthenticated") )
Functions ¶
This section is empty.
Types ¶
type AuditEvent ¶
type BootstrapResult ¶
type BuildStatus ¶
type BuildStatus string
const ( BuildQueued BuildStatus = "queued" BuildRunning BuildStatus = "running" BuildSucceeded BuildStatus = "succeeded" BuildFailed BuildStatus = "failed" BuildCancelled BuildStatus = "cancelled" )
type CacheMount ¶
type ControlChange ¶
type ControlChange struct {
Sequence int64
ProjectID string
EntityKind string
EntityID string
CreatedAt time.Time
}
ControlChange is durable sequencing and scope metadata for consumers that project control-plane state. It deliberately contains no duplicated domain state; readers re-query their authorized view after observing a change.
type CreateDeviceToken ¶
type DeviceToken ¶
type EnrollmentCode ¶
type GitHubClaims ¶
type GitHubTrust ¶
type Idempotency ¶
type IssuedAccessToken ¶
type IssuedDeviceToken ¶
type IssuedDeviceToken struct {
Metadata DeviceToken
Secret string
}
type IssuedEnrollmentCode ¶
type IssuedEnrollmentCode struct {
Metadata EnrollmentCode
Secret string
}
type Job ¶
type Job struct {
ID string
ProjectID string
Image string
Command []string
WorkingDirectory string
Environment map[string]string
RootDigest string
Status protocol.Status
Timeout time.Duration
CreatedAt time.Time
StartedAt *time.Time
FinishedAt *time.Time
ExitCode *int
ErrorMessage string
CancelRequested bool
WorkerID string
Caches []CacheMount
}
type Operation ¶
type Operation struct {
Kind OperationKind
ID string
State OperationState
AcceptedAt time.Time
LeasedAt *time.Time
}
type OperationKind ¶
type OperationKind string
const ( OperationJob OperationKind = "job" OperationBuild OperationKind = "build" )
type OperationState ¶
type OperationState string
const ( OperationQueued OperationState = "queued" OperationActive OperationState = "active" )
type PrepareJob ¶
type PrincipalKind ¶
type PrincipalKind string
const ( PrincipalDevice PrincipalKind = "device" PrincipalGitHub PrincipalKind = "github" )
type ProjectImageEvent ¶
type QueueOperation ¶
type ResourceFilter ¶
type ResourceRollup ¶
type ResourceSample ¶
type ResourceSample struct {
ResourceScope
ObservedAt time.Time
CPUUtilization float64
CPUCores int
MemoryUtilization float64
MemoryUsageBytes uint64
MemoryTotalBytes uint64
DiskUsageBytes uint64
DiskTotalBytes uint64
}
ResourceSample is a normalized observation of the entire Autback host. CPU and memory utilization are ratios in the inclusive range [0, 1].
type ResourceScope ¶
type ResourceScope struct {
ProjectID string
OperationKind OperationKind
OperationID string
}
ResourceScope identifies which admitted operation, if any, owned the host while a resource sample was observed. Empty operation fields represent an idle host sample.
type ResourceSummary ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package controlapi implements the versioned autback Connect control plane.
|
Package controlapi implements the versioned autback Connect control plane. |
Click to show internal directories.
Click to hide internal directories.