jobdef

package
v0.0.0-...-4f574f2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(c *echo.Context) error

func Diff

func Diff(c *echo.Context) error

func Lint

func Lint(c *echo.Context) error

Types

type ApplyRequest

type ApplyRequest struct {
	Definitions []schema.Definition `json:"definitions"`
	Force       bool                `json:"force,omitempty"`
	Prune       bool                `json:"prune,omitempty"`
}

type ApplyResponse

type ApplyResponse struct {
	Applied int `json:"applied"`
	Pruned  int `json:"pruned,omitempty"`
}

type DiffRequest

type DiffRequest struct {
	Definitions []schema.Definition `json:"definitions"`
}

type DiffResponse

type DiffResponse struct {
	Added    []jobdiff.JobSpec `json:"added"`
	Removed  []jobdiff.JobSpec `json:"removed"`
	Modified []jobdiff.Update  `json:"modified"`
}

type LintMessage

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

type LintRequest

type LintRequest struct {
	Definitions []schema.Definition `json:"definitions"`
}

type LintResponse

type LintResponse struct {
	Errors   []LintMessage `json:"errors"`
	Warnings []LintMessage `json:"warnings"`
	Summary  LintSummary   `json:"summary"`
}

type LintSummary

type LintSummary struct {
	Steps string `json:"steps"`
}

Jump to

Keyboard shortcuts

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