pbjson

package
v0.0.1-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2017 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Description *I18nField `json:"description"`
	LinkID      string     `json:"link_id"`
}

Chain ...

type I18nField

type I18nField map[string]string

I18nField ...

type Link struct {
	Config            *LinkConfig           `json:"config"`
	Description       *I18nField            `json:"description"`
	ExitCodes         map[int]*LinkExitCode `json:"exit_codes"`
	FallbackJobStatus string                `json:"fallback_job_status"`
	FallbackLinkID    string                `json:"fallback_link_id"`
	Group             *I18nField            `json:"group"`
}

Link ...

type LinkConfig

type LinkConfig struct {
	Manager string `json:"@manager"`
	Model   string `json:"@model"`

	// StandardTaskConfig
	Arguments          string `json:"arguments"`
	Execute            string `json:"execute"`
	FilterFileEnd      string `json:"filter_file_end"`
	FilterSubdir       string `json:"filter_subdir"`
	RequiresOutputLock bool   `json:"requires_output_lock"`
	StderrFile         string `json:"stderr_file"`
	StdoutFile         string `json:"stdout_file"`

	// MicroServiceChainChoice
	Choices []string `json:"chain_choices"`

	// TaskConfigSetUnitVariable
	Variable      string `json:"variable"`
	VariableValue string `json:"variable_value"`
	ChainID       string `json:"chain_id"`

	// MicroServiceChoiceReplacementDic
	Replacements []*LinkConfigReplacement `json:"replacements"`

	// TaskConfigAssignMagicLink
	LinkID string `json:"link_id"`
}

LinkConfig ...

type LinkConfigReplacement

type LinkConfigReplacement struct {
	Id          string            `json:"id"`
	Description *I18nField        `json:"description"`
	Items       map[string]string `json:"items"`
}

LinkConfigReplacement ...

type LinkExitCode

type LinkExitCode struct {
	JobStatus string `json:"job_status"`
	LinkID    string `json:"link_id"`
}

LinkExitCode ...

type WatchedDirectory

type WatchedDirectory struct {
	ChainID  string `json:"chain_id"`
	OnlyDirs bool   `json:"only_dirs"`
	Path     string `json:"path"`
	UnitType string `json:"unit_type"`
}

WatchedDirectory ...

type WorkflowData

type WorkflowData struct {
	WatchedDirectories []*WatchedDirectory `json:"watched_directories"`
	Chains             map[string]*Chain   `json:"chains"`
	Links              map[string]*Link    `json:"links"`
}

WorkflowData is our proxy type to marshal WorkflowData or to unmarshal JSON-encoded data into a

func NewWorkflowData

func NewWorkflowData() *WorkflowData

NewWorkflowData returns a pointer to a new WorkflowData

Jump to

Keyboard shortcuts

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