Documentation
¶
Index ¶
- func Validate(cfg *Config) error
- type BackstageSourceConfig
- type CSVSourceConfig
- type Config
- type ExecSourceConfig
- type GitHubSourceConfig
- type GraphQLSourceConfig
- type HTTPSourceConfig
- type InlineSourceConfig
- type LocalSourceConfig
- type Output
- type PaginateConfig
- type Pipeline
- type SourceConfig
- type URLSourceConfig
Constants ¶
This section is empty.
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 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 {
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]string `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.