job

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "job",
	Short: "Manage job definitions",
}

Cmd is the parent command for job operations.

Functions

func LoadDefinitions

func LoadDefinitions(paths []string) ([]jobdef.Definition, error)

LoadDefinitions exposes the same manifest loader used by `caesium job lint` for sibling CLI groups that need to lint the exact local path set.

Types

type ServerContractFinding

type ServerContractFinding struct {
	EdgeID    string            `json:"edgeId,omitempty"`
	EdgeClass string            `json:"edgeClass,omitempty"`
	From      string            `json:"from,omitempty"`
	To        string            `json:"to,omitempty"`
	Dataset   *ServerDatasetRef `json:"dataset,omitempty"`
	Kind      string            `json:"kind,omitempty"`
	Path      string            `json:"path,omitempty"`
	Detail    string            `json:"detail,omitempty"`
	Verdict   string            `json:"verdict"`
}

type ServerContractSummary

type ServerContractSummary struct {
	Breaking []ServerContractFinding `json:"breaking"`
	Warnings []ServerContractFinding `json:"warnings"`
	Edges    int                     `json:"edges"`
}

type ServerDatasetRef

type ServerDatasetRef struct {
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
}

type ServerLintMessage

type ServerLintMessage struct {
	Message string `json:"message"`
	Line    int    `json:"line,omitempty"`
}

type ServerLintRequest

type ServerLintRequest struct {
	Definitions []jobdef.Definition `json:"definitions"`
}

type ServerLintResponse

type ServerLintResponse struct {
	Errors    []ServerLintMessage    `json:"errors"`
	Warnings  []ServerLintMessage    `json:"warnings"`
	Summary   ServerLintSummary      `json:"summary"`
	Contracts *ServerContractSummary `json:"contracts,omitempty"`
}

func PostServerLint

func PostServerLint(ctx context.Context, server, apiKey string, defs []jobdef.Definition) (*ServerLintResponse, []byte, error)

type ServerLintSummary

type ServerLintSummary struct {
	Steps     int    `json:"steps"`
	Contracts string `json:"contracts,omitempty"`
}

Jump to

Keyboard shortcuts

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