Documentation
¶
Index ¶
- Variables
- func ValidateExecutionCommand(result *ExecutionCommand) (err error)
- func ValidateExecutionCommandView(result *ExecutionCommandView) (err error)
- func ValidateExecutionRecord(result *ExecutionRecord) (err error)
- func ValidateExecutionRecordView(result *ExecutionRecordView) (err error)
- func ValidateExecutionStatus(result *ExecutionStatus) (err error)
- func ValidateExecutionStatusView(result *ExecutionStatusView) (err error)
- type ExecutionCommand
- type ExecutionCommandView
- type ExecutionRecord
- type ExecutionRecordView
- type ExecutionStatus
- type ExecutionStatusView
Constants ¶
This section is empty.
Variables ¶
var ( // ExecutionStatusMap is a map indexing the attribute names of ExecutionStatus // by view name. ExecutionStatusMap = map[string][]string{ "default": { "enabled", "allow_elevated", "storage_mode", "durable", "storage_available", "issuer_ready", }, } // ExecutionRecordMap is a map indexing the attribute names of ExecutionRecord // by view name. ExecutionRecordMap = map[string][]string{ "default": { "execution_id", "actor_id", "operation", "namespace", "workspace_name", "workspace_uid", "workspace_generation", "grant_version", "os_identity", "elevated", "recording_id", "mode", "durability", "admitted", "admission_time", "deny_reason", "state", "start_time", "end_time", "exit_code", "termination", "recording_lost", }, } // ExecutionCommandMap is a map indexing the attribute names of // ExecutionCommand by view name. ExecutionCommandMap = map[string][]string{ "default": { "execution_id", "recording_id", "namespace", "workspace_name", "workspace_uid", "admission_time", "mode", "durability", "outcome", "state", "exit_code", "stdout", "stderr", "truncated", "duration_ms", "denial", }, } )
Functions ¶
func ValidateExecutionCommand ¶
func ValidateExecutionCommand(result *ExecutionCommand) (err error)
ValidateExecutionCommand runs the validations defined on the viewed result type ExecutionCommand.
func ValidateExecutionCommandView ¶
func ValidateExecutionCommandView(result *ExecutionCommandView) (err error)
ValidateExecutionCommandView runs the validations defined on ExecutionCommandView using the "default" view.
func ValidateExecutionRecord ¶
func ValidateExecutionRecord(result *ExecutionRecord) (err error)
ValidateExecutionRecord runs the validations defined on the viewed result type ExecutionRecord.
func ValidateExecutionRecordView ¶
func ValidateExecutionRecordView(result *ExecutionRecordView) (err error)
ValidateExecutionRecordView runs the validations defined on ExecutionRecordView using the "default" view.
func ValidateExecutionStatus ¶
func ValidateExecutionStatus(result *ExecutionStatus) (err error)
ValidateExecutionStatus runs the validations defined on the viewed result type ExecutionStatus.
func ValidateExecutionStatusView ¶
func ValidateExecutionStatusView(result *ExecutionStatusView) (err error)
ValidateExecutionStatusView runs the validations defined on ExecutionStatusView using the "default" view.
Types ¶
type ExecutionCommand ¶
type ExecutionCommand struct {
// Type to project
Projected *ExecutionCommandView
// View to render
View string
}
ExecutionCommand is the viewed result type that is projected based on a view.
type ExecutionCommandView ¶
type ExecutionCommandView struct {
// Execution identifier
ExecutionID *string
// Recording identifier
RecordingID *string
Namespace *string
WorkspaceName *string
WorkspaceUID *string
// RFC3339 timestamp
AdmissionTime *string
// Storage mode: ephemeral|external|bundled
Mode *string
// none|durable
Durability *string
// Final command outcome
Outcome *string
// Final lifecycle state
State *string
// Guest process exit code when known
ExitCode *int
// Standard output, truncated to the pilot output bound
Stdout []byte
// Standard error, truncated to the pilot output bound
Stderr []byte
// Output was truncated at the 16 KiB bound
Truncated *bool
// Guest-measured duration in milliseconds
DurationMs *uint64
// Runner denial or transport-loss note
Denial *string
}
ExecutionCommandView is a type that runs validations on a projected type.
type ExecutionRecord ¶
type ExecutionRecord struct {
// Type to project
Projected *ExecutionRecordView
// View to render
View string
}
ExecutionRecord is the viewed result type that is projected based on a view.
type ExecutionRecordView ¶
type ExecutionRecordView struct {
// Execution identifier
ExecutionID *string
// Actor identifier
ActorID *string
// command|script|shell
Operation *string
Namespace *string
WorkspaceName *string
WorkspaceUID *string
WorkspaceGeneration *int64
GrantVersion *string
OsIdentity *string
Elevated *bool
RecordingID *string
// Storage mode: ephemeral|external|bundled
Mode *string
// none|durable
Durability *string
Admitted *bool
// RFC3339 timestamp
AdmissionTime *string
DenyReason *string
// lifecycle state
State *string
// RFC3339 timestamp
StartTime *string
// RFC3339 timestamp
EndTime *string
ExitCode *int
Termination *string
RecordingLost *bool
}
ExecutionRecordView is a type that runs validations on a projected type.
type ExecutionStatus ¶
type ExecutionStatus struct {
// Type to project
Projected *ExecutionStatusView
// View to render
View string
}
ExecutionStatus is the viewed result type that is projected based on a view.
type ExecutionStatusView ¶
type ExecutionStatusView struct {
// Whether VM execution is enabled by policy
Enabled *bool
// Whether elevated execution is allowed by policy
AllowElevated *bool
// Storage mode: disabled|ephemeral|external|bundled
StorageMode *string
// Metadata and recordings are durable (not ephemeral)
Durable *bool
// Store is Ready and can admit work
StorageAvailable *bool
// Opt-in management issuer prerequisites and initial bootstrap sync are ready;
// not a guest execution capability
IssuerReady *bool
}
ExecutionStatusView is a type that runs validations on a projected type.