Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Endpoint ¶
type Endpoint struct {
Name string `yaml:"name" json:"name"`
Arguments string `yaml:"arguments" json:"arguments"`
Returns string `yaml:"returns" json:"returns"`
}
Endpoint of a service
type EventReaction ¶
type EventReaction struct {
Condition string `json:"condition" yaml:"condition"`
Reaction []Reaction `json:"reactions" yaml:"reactions"`
}
EventReaction maps condition to reactions
type Pipeline ¶
type Pipeline struct {
Metadata Metadata `json:"metadata" yaml:"metadata"`
Services []PipelineService `json:"services" yaml:"services"`
EventReactions []EventReaction `json:"eventReactions" yaml:"eventReactions"`
}
Pipeline structure to generate pipeline code
func LoadFromPath ¶
LoadFromPath loads pipeline from filesystem
func UnmarshalPipeline ¶
UnmarshalPipeline unmarshals json into pipeline
type PipelineService ¶
type PipelineService struct {
Name string `json:"name" yaml:"name"`
As string `json:"as" yaml:"as"`
Version string `json:"version" yaml:"version"`
}
PipelineService represents dependency service
type Reaction ¶
type Reaction struct {
Name string `json:"name" yaml:"name"`
Command string `json:"command" yaml:"command"`
}
Reaction on oi.engine event
type Service ¶
type Service struct {
Name string `yaml:"name" json:"name"`
Project string `yaml:"project" json:"project"`
Version string `yaml:"version" json:"version"`
Endpoints map[string]Endpoint `yaml:"endpoints" json:"endpoints"`
Types []string `yaml:"types" json:"types"`
}
Service structure to generate service code
func UnmarshalService ¶
UnmarshalService unmarshals json into Service
Source Files
¶
Click to show internal directories.
Click to hide internal directories.