Documentation
¶
Index ¶
- Constants
- func Marshal(cfg *Config) ([]byte, error)
- func Validate(cfg *Config) error
- type BackstageSourceConfig
- type CSVSourceConfig
- type Config
- type ExecSourceConfig
- type FieldValue
- type GitHubSourceConfig
- type GraphQLSourceConfig
- type HTTPSourceConfig
- type InlineSourceConfig
- type LocalSourceConfig
- type Output
- type PaginateConfig
- type Pipeline
- type SourceConfig
- type URLSourceConfig
Constants ¶
View Source
const ( KindText = "text" KindNumber = "number" KindBoolean = "boolean" KindReference = "reference" KindService = "service" KindGroup = "group" KindFunctionality = "functionality" KindEnvironment = "environment" KindIncidentType = "incident_type" KindCause = "cause" KindUser = "user" KindSlackChannel = "slack_channel" KindSlackAlias = "slack_alias" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackstageSourceConfig ¶
type BackstageSourceConfig struct {
URL string `yaml:"url" json:"url" hcl:"url"`
Token string `yaml:"token,omitempty" json:"token,omitempty" hcl:"token,optional"`
Filter string `yaml:"filter,omitempty" json:"filter,omitempty" hcl:"filter,optional"`
Kind string `yaml:"kind,omitempty" json:"kind,omitempty" hcl:"kind,optional"`
}
type CSVSourceConfig ¶
type Config ¶
type ExecSourceConfig ¶
type FieldValue ¶ added in v0.3.0
type FieldValue struct {
Value string `yaml:"value" json:"value" hcl:"value"`
Kind string `yaml:"kind,omitempty" json:"kind,omitempty" hcl:"kind,optional"`
Catalog string `yaml:"catalog,omitempty" json:"catalog,omitempty" hcl:"catalog,optional"`
}
func (FieldValue) EffectiveKind ¶ added in v0.3.0
func (f FieldValue) EffectiveKind() string
func (FieldValue) MarshalJSON ¶ added in v0.3.0
func (f FieldValue) MarshalJSON() ([]byte, error)
func (FieldValue) MarshalYAML ¶ added in v0.3.0
func (f FieldValue) MarshalYAML() (any, error)
func (*FieldValue) UnmarshalJSON ¶ added in v0.3.0
func (f *FieldValue) UnmarshalJSON(data []byte) error
func (*FieldValue) UnmarshalYAML ¶ added in v0.3.0
func (f *FieldValue) UnmarshalYAML(node *yaml.Node) error
type GitHubSourceConfig ¶
type GitHubSourceConfig struct {
Token string `yaml:"token,omitempty" json:"token,omitempty" hcl:"token,optional"`
Owner string `yaml:"owner" json:"owner" hcl:"owner"`
Repos []string `yaml:"repos,omitempty" json:"repos,omitempty" hcl:"repos,optional"`
Files []string `yaml:"files" json:"files" hcl:"files"`
Ref string `yaml:"ref,omitempty" json:"ref,omitempty" hcl:"ref,optional"`
Archived bool `yaml:"archived,omitempty" json:"archived,omitempty" hcl:"archived,optional"`
}
type GraphQLSourceConfig ¶
type GraphQLSourceConfig struct {
URL string `yaml:"url" json:"url" hcl:"url"`
Query string `yaml:"query" json:"query" hcl:"query"`
Headers map[string]string `yaml:"headers,omitempty" json:"headers,omitempty" hcl:"headers,optional"`
Result string `yaml:"result" json:"result" hcl:"result"`
Paginate *PaginateConfig `yaml:"paginate,omitempty" json:"paginate,omitempty" hcl:"paginate,block"`
}
type HTTPSourceConfig ¶
type HTTPSourceConfig struct {
URL string `yaml:"url" json:"url" hcl:"url"`
Method string `yaml:"method,omitempty" json:"method,omitempty" hcl:"method,optional"`
Headers map[string]string `yaml:"headers,omitempty" json:"headers,omitempty" hcl:"headers,optional"`
Body string `yaml:"body,omitempty" json:"body,omitempty" hcl:"body,optional"`
Result string `yaml:"result" json:"result" hcl:"result"`
}
type InlineSourceConfig ¶
type LocalSourceConfig ¶
type LocalSourceConfig struct {
Files []string `yaml:"files" json:"files" hcl:"files"`
}
type Output ¶
type Output struct {
Type string `yaml:"type,omitempty" json:"type,omitempty" hcl:"type,optional"`
Catalog string `yaml:"catalog" json:"catalog" hcl:"catalog"`
ExternalID string `yaml:"external_id" json:"external_id" hcl:"external_id"`
Name string `yaml:"name" json:"name" hcl:"name"`
BackstageID string `yaml:"backstage_id,omitempty" json:"backstage_id,omitempty" hcl:"backstage_id,optional"`
Fields map[string]FieldValue `yaml:"fields,omitempty" json:"fields,omitempty" hcl:"fields,optional"`
}
type PaginateConfig ¶
type Pipeline ¶
type Pipeline struct {
Sources []SourceConfig `yaml:"sources" json:"sources" hcl:"source,block"`
Outputs []Output `yaml:"outputs" json:"outputs" hcl:"output,block"`
}
type SourceConfig ¶
type SourceConfig struct {
Local *LocalSourceConfig `yaml:"local,omitempty" json:"local,omitempty" hcl:"local,block"`
Inline *InlineSourceConfig `yaml:"inline,omitempty" json:"inline,omitempty" hcl:"inline,block"`
GitHub *GitHubSourceConfig `yaml:"github,omitempty" json:"github,omitempty" hcl:"github,block"`
Exec *ExecSourceConfig `yaml:"exec,omitempty" json:"exec,omitempty" hcl:"exec,block"`
Backstage *BackstageSourceConfig `yaml:"backstage,omitempty" json:"backstage,omitempty" hcl:"backstage,block"`
GraphQL *GraphQLSourceConfig `yaml:"graphql,omitempty" json:"graphql,omitempty" hcl:"graphql,block"`
CSV *CSVSourceConfig `yaml:"csv,omitempty" json:"csv,omitempty" hcl:"csv,block"`
URL *URLSourceConfig `yaml:"url,omitempty" json:"url,omitempty" hcl:"url,block"`
HTTP *HTTPSourceConfig `yaml:"http,omitempty" json:"http,omitempty" hcl:"http,block"`
}
type URLSourceConfig ¶
Click to show internal directories.
Click to hide internal directories.