Documentation
¶
Overview ¶
Package standardresources materializes release-owned resource bundles from a verified release artifact manifest and explicit deployment bindings.
Index ¶
- Constants
- func Build(manifest releasecontract.ArtifactManifest, selection Selection) (resourceapply.Document, error)
- func BundleNames() []string
- func DevelopmentProfileLineage(name, architecture string) (resourceapply.Profile, error)
- func ProfileLineage(name, architecture string) (resourceapply.Profile, error)
- func StandardPool(architecture string) (string, error)
- type BundleDocument
- type PoolBinding
- type Selection
Constants ¶
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" )
const BundleSchemaVersion = "secondbox.standard-bundle/v4"
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(manifest releasecontract.ArtifactManifest, selection Selection) (resourceapply.Document, error)
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
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 Selection ¶
type Selection struct {
Bundles []string
Pools map[string]PoolBinding
}