contract

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package contract shares Docker resource wire types with adapters.

Index

Constants

View Source
const DeclareActivity = "docker.entity.declare"

DeclareActivity is the Docker resource declaration activity.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerSpec

type ContainerSpec struct {
	Name   string                `json:"name"`
	Config *container.Config     `json:"config"`
	Host   *container.HostConfig `json:"host,omitempty"`
	Owner  ref.OwnerRef          `json:"owner,omitempty"`
	// Flows are the declared outgoing edges of this container (Р-Н25) —
	// carried into the record's state for the topology view.
	Flows []ownership.Flow `json:"flows,omitempty"`
	// Scrape is a prometheus metrics endpoint the container exposes; the
	// executor pulls it every ScrapeEvery and ships the samples as the
	// container's own metrics (Р-Н27). Empty disables scraping.
	Scrape      string        `json:"scrape,omitempty"`
	ScrapeEvery time.Duration `json:"scrapeEvery,omitempty"`
}

ContainerSpec is the native Docker configuration and its ownership metadata.

type DeclareRequest

type DeclareRequest struct {
	Kind   entity.KindName   `json:"kind"`
	Name   string            `json:"name"`
	Labels map[string]string `json:"labels,omitempty"`
	RunId  string            `json:"runId,omitempty"`
	// Spec is the kind-shaped spec as JSON.
	Spec json.RawMessage `json:"spec"`
}

DeclareRequest starts or attaches to a Docker resource.

Jump to

Keyboard shortcuts

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