standardresources

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package standardresources materializes release-owned resource bundles from a verified release artifact manifest and explicit deployment bindings.

Index

Constants

View Source
const (
	AgentCompartment         = "agent-compartment"
	DurableCoding            = "durable-coding"
	AgentCompartmentIsolated = "agent-compartment-isolated"
	ArchitectureAMD64        = "amd64"
	ArchitectureARM64        = "arm64"
	PoolAMD64                = "standard-amd64"
	PoolARM64                = "standard-arm64"

	DurableCodingVCPUCount            = int64(4)
	DurableCodingMemoryBytes          = int64(8 << 30)
	DurableCodingWorkspaceBytes       = int64(50 << 30)
	DurableCodingConcurrentOperations = int64(16)

	AgentGateway    = "agent-gateway.secondbox.internal"
	PlatformGateway = "platform-gateway.secondbox.internal"
)
View Source
const BundleSchemaVersion = "secondbox.standard-bundle/v4"

Variables

This section is empty.

Functions

func Build

Build returns the code-owned Profile lineages of the selected bundles after proving they are the lineages the validated artifact manifest released.

func BundleNames added in v0.6.0

func BundleNames() []string

BundleNames returns every release-owned standard bundle in artifact order.

func DevelopmentProfileLineage added in v0.4.0

func DevelopmentProfileLineage(name, architecture string) (resourceapply.Profile, error)

DevelopmentProfileLineage returns the shorter lineage the explicit local development release identity has always recorded, without published history.

func ProfileLineage

func ProfileLineage(name, architecture string) (resourceapply.Profile, error)

ProfileLineage returns the complete ordered lineage for one architecture-qualified standard Profile.

func StandardPool added in v0.23.0

func StandardPool(architecture string) (string, error)

StandardPool returns the release-owned RunnerPool that serves one guest architecture. A release targets exactly one guest architecture, so its standard Profiles bind to exactly one of these pools.

Types

type BundleDocument

type BundleDocument struct {
	SchemaVersion      string                `json:"schemaVersion"`
	Name               string                `json:"name"`
	Architecture       string                `json:"architecture"`
	RunnerPoolSelector string                `json:"runnerPoolSelector"`
	LogicalGateway     string                `json:"logicalGateway"`
	Profile            resourceapply.Profile `json:"profile"`
	ParameterSchema    json.RawMessage       `json:"parameterSchema"`
}

func DecodeDocument

func DecodeDocument(data []byte) (BundleDocument, error)

func Documents

func Documents(architecture string) ([]BundleDocument, error)

Documents returns the release-owned standard bundles of one guest architecture.

func (BundleDocument) Validate

func (document BundleDocument) Validate() error

type PoolBinding

type PoolBinding struct {
	Name          string
	Architectures []string
	Capabilities  []string
	State         string
}

type Selection

type Selection struct {
	Bundles []string
	Pools   map[string]PoolBinding
}

Jump to

Keyboard shortcuts

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