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 ServerLintMessage ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.