Help us shape the future of Go! Take the 2026 Go Developer Survey

workloadmeta

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Dir is where core writes workload records for eru-agent on SSH-managed nodes.
	Dir        = "/run/eru/workloads"
	CgroupRoot = "/sys/fs/cgroup"
	// NotExistsCode is the exit code node-side scripts use for "no record on the node".
	NotExistsCode = 64
)

Variables

This section is empty.

Functions

func Path

func Path(ID string) string

Path is the record file for ID under Dir.

Types

type Record

type Record struct {
	ID          string                   `json:"id"`
	Kind        string                   `json:"kind"`
	Name        string                   `json:"name"`
	Appname     string                   `json:"appname"`
	Entrypoint  string                   `json:"entrypoint"`
	Ident       string                   `json:"ident"`
	Podname     string                   `json:"podname"`
	Nodename    string                   `json:"nodename"`
	CoreID      string                   `json:"coreid"`
	Labels      map[string]string        `json:"labels,omitempty"`
	HealthCheck *enginetypes.HealthCheck `json:"healthcheck,omitempty"`
	Publish     []string                 `json:"publish,omitempty"`
	Networks    map[string]string        `json:"networks,omitempty"`
	Cgroup      string                   `json:"cgroup"`
	NetnsPID    int                      `json:"netns_pid"`
	Iface       string                   `json:"iface,omitempty"`
}

Record is the workload record core writes next to an SSH-managed workload for eru-agent.

func NewRecord

func NewRecord(ctx context.Context, ID, kind, name, podname, nodename string, labels map[string]string) Record

Jump to

Keyboard shortcuts

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