service

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceSandboxedContainerProviderName     = "service-sandboxed-container"
	NodeServiceSandboxedContainerProviderName = "node-service-sandboxed-container"
	SandboxedServiceOperationRun              = "run-sandboxed-service"
)

Variables

This section is empty.

Functions

func NodeServiceSandboxedContainerContract

func NodeServiceSandboxedContainerContract(descriptor core.RuntimeDescriptor) core.RuntimeAdapterContract

func ServiceSandboxedContainerContract

func ServiceSandboxedContainerContract(descriptor core.RuntimeDescriptor) core.RuntimeAdapterContract

Types

type RuntimeAdapterCatalogDocument

type RuntimeAdapterCatalogDocument struct {
	Version                   string                       `json:"version"`
	ProtocolVersion           string                       `json:"protocol_version"`
	Adapters                  []RuntimeAdapterCatalogEntry `json:"adapters"`
	HostOwnedResponsibilities []string                     `json:"host_owned_responsibilities"`
}

func (RuntimeAdapterCatalogDocument) Validate

func (d RuntimeAdapterCatalogDocument) Validate() error

type RuntimeAdapterCatalogEntry

type RuntimeAdapterCatalogEntry struct {
	AdapterID           string                      `json:"adapter_id"`
	Operation           string                      `json:"operation"`
	Kinds               []core.RuntimeAdapterKind   `json:"kinds"`
	WorkloadKinds       []core.WorkloadKind         `json:"workload_kinds"`
	RuntimeProfiles     []core.RuntimeProfile       `json:"runtime_profiles"`
	WorkspacePolicy     core.RuntimeWorkspacePolicy `json:"workspace_policy"`
	ConformanceProfiles []string                    `json:"conformance_profiles"`
}

func (RuntimeAdapterCatalogEntry) Contract

func (RuntimeAdapterCatalogEntry) Validate

func (e RuntimeAdapterCatalogEntry) Validate() error

type SandboxRuntimeServiceAdapter

type SandboxRuntimeServiceAdapter struct {
	Runtime computecontainer.SandboxRuntime
}

func (SandboxRuntimeServiceAdapter) RunSandboxedService

type SandboxedServiceInvocationOptions

type SandboxedServiceInvocationOptions struct {
	TaskID          string
	LeaseID         string
	Image           string
	Command         []string
	RuntimeScope    computecontainer.ContainerRuntimeScope
	Workspace       string
	Network         string
	DataMounts      []computecontainer.SandboxMount
	Timeout         time.Duration
	TimeoutLimitHit string
	Workload        core.WorkloadSpec
	ResolvedEnv     map[string]string
	Limits          core.ResourceLimits
}

type SandboxedServiceRuntime

type SandboxedServiceRuntime interface {
	RunSandboxedService(context.Context, SandboxedServiceRuntimeInvocation) (ServiceRunResult, error)
}

type SandboxedServiceRuntimeInvocation

type SandboxedServiceRuntimeInvocation struct {
	Request         core.RuntimeExecutionRequest
	Image           string
	Command         []string
	RuntimeScope    computecontainer.ContainerRuntimeScope
	Workspace       string
	Network         string
	DataMounts      []computecontainer.SandboxMount
	Timeout         time.Duration
	TimeoutLimitHit string
}

type ServiceRunResult

type ServiceRunResult = core.RuntimeServiceResult

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL