Documentation ¶
Overview ¶
Description of the manifest schema. For detailed field explanations, see /docs/autokitteh.yaml.
Index ¶
Constants ¶
View Source
const Version = "v1"
Variables ¶
View Source
var ( JSONSchema = jsonschema.Reflect(Manifest{}) JSONSchemaString = string(kittehs.Must1(json.MarshalIndent(JSONSchema, "", " "))) )
View Source
var ErrUnsupportedManifestVersion = errors.New("unsupported manifest version")
Functions ¶
Types ¶
type Connection ¶
type Connection struct { ProjectKey string `yaml:"-" json:"-"` // belongs to project. Name string `yaml:"name" json:"name" jsonschema:"required"` IntegrationKey string `yaml:"integration" json:"integration" jsonschema:"required"` Vars []*Var `yaml:"vars,omitempty" json:"vars,omitempty"` }
func (Connection) GetKey ¶
func (c Connection) GetKey() string
type Effect ¶ added in v0.6.0
type Effect struct { SubjectID sdktypes.ID Type EffectType Text string }
type EffectType ¶ added in v0.6.0
type EffectType string
const ( NoChange EffectType = "no_change" Created EffectType = "created" Updated EffectType = "updated" Deleted EffectType = "deleted" )
type Effects ¶ added in v0.6.0
type Effects []*Effect
func (Effects) ProjectIDs ¶ added in v0.6.0
type Manifest ¶
type Option ¶
type Option func(*opts)
func WithFromScratch ¶
func WithLogger ¶
func WithProjectName ¶ added in v0.4.6
func WithRemoveUnusedConnFlags ¶ added in v0.5.0
type Project ¶
type Project struct { Name string `yaml:"name" json:"name"` Connections []*Connection `yaml:"connections,omitempty" json:"connections,omitempty"` Triggers []*Trigger `yaml:"triggers,omitempty" json:"triggers,omitempty"` Vars []*Var `yaml:"vars,omitempty" json:"vars,omitempty"` }
type Trigger ¶
type Trigger struct { EnvKey string `yaml:"-" json:"-"` // associated with env. Name string `yaml:"name" json:"name"` EventType string `yaml:"event_type,omitempty" json:"event_type,omitempty"` Filter string `yaml:"filter,omitempty" json:"filter,omitempty"` Type string `yaml:"type,omitempty" json:"type,omitempty" jsonschema:"enum=schedule,enum=webhook,enum=connection"` Schedule *string `yaml:"schedule,omitempty" json:"schedule,omitempty"` Webhook *struct{} `yaml:"webhook,omitempty" json:"webhook,omitempty"` ConnectionKey *string `yaml:"connection,omitempty" json:"connection,omitempty" ` Call string `yaml:"call,omitempty" json:"call,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.