standardresources

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 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"
	ArchitectureAMD64 = "amd64"
	PoolAMD64         = "standard-amd64"

	DurableCodingCPUMillis            = int64(4000)
	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/v2"

Variables

This section is empty.

Functions

func Build

Build resolves execution asset digests only from the already-validated artifact manifest. Consumer repositories never copy release digests.

func DevelopmentProfileLineage added in v0.4.0

func DevelopmentProfileLineage(name, runtimeDigest, toolchainDigest string) (resourceapply.Profile, error)

DevelopmentProfileLineage returns a synthetic, current-only lineage for the explicit local development release identity. It never imports published history whose signed component assets are absent from the development catalog.

func ProfileLineage

func ProfileLineage(name, runtimeDigest, toolchainDigest string) (resourceapply.Profile, error)

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

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"`
	SignedManifestDigest  string                `json:"signedManifestDigest"`
	RuntimeBundleDigest   string                `json:"runtimeBundleDigest"`
	ToolchainBundleDigest string                `json:"toolchainBundleDigest"`
	Profile               resourceapply.Profile `json:"profile"`
	ParameterSchema       json.RawMessage       `json:"parameterSchema"`
}

func DecodeDocument

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

func Documents

func Documents(signedManifestDigest, runtimeBundleDigest, toolchainBundleDigest string) ([]BundleDocument, error)

func (BundleDocument) Validate

func (document BundleDocument) Validate() error

type PoolBinding

type PoolBinding struct {
	Name           string
	Architectures  []string
	Capabilities   []string
	CapacityPolicy map[string]int64
	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