workload

package
v0.3.0-dev.36 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package workload resolves a service-owned declarative release against platform-owned capabilities. A manifest is data, never Go, shell, an executor ID or a credential.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(raw []byte, p Policy, steps map[Capability][]workflow.Step) ([]workflow.Step, error)

Bind maps declared operations to reviewed executors or workflow calls. The caller injects mandatory source/plan/approval BEFORE the resulting apply sequence.

Types

type Capability

type Capability string
const (
	LXC     Capability = "deploy_lxc"
	Compose Capability = "deploy_compose"
	Docker  Capability = "deploy_docker"
	Native  Capability = "deploy_native"
	Routes  Capability = "route_deploy"
)

type Policy

type Policy struct {
	Service, Target string
	Allowed         []Capability
}

Policy is set by arch, not the service. Only known hosts and capabilities may bind.

type Release

type Release struct {
	Version int          `json:"version"`
	Service string       `json:"service"`
	Target  string       `json:"target"`
	Steps   []Capability `json:"steps"`
}

func Parse

func Parse(raw []byte, p Policy) (Release, error)

Jump to

Keyboard shortcuts

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