Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpecUnmarshalYamlStrict ¶ added in v0.0.4
func UnmarshalJsonStrict ¶ added in v0.0.4
func ValidateSpec ¶
func ValidateSpec(schema string, spec interface{}) (*gojsonschema.Result, error)
Types ¶
type Destination ¶ added in v0.0.4
type Destination struct { Name string `json:"name,omitempty"` Version string `json:"version,omitempty"` Path string `json:"path,omitempty"` Registry Registry `json:"registry,omitempty"` WriteMode WriteMode `json:"write_mode,omitempty"` Spec interface{} `json:"spec,omitempty"` }
func (*Destination) SetDefaults ¶ added in v0.0.4
func (d *Destination) SetDefaults()
func (*Destination) UnmarshalSpec ¶ added in v0.0.4
func (d *Destination) UnmarshalSpec(out interface{}) error
type Kind ¶ added in v0.0.4
type Kind int
func KindFromString ¶ added in v0.0.4
func (Kind) MarshalJSON ¶ added in v0.0.4
func (*Kind) UnmarshalJSON ¶ added in v0.0.4
type Registry ¶ added in v0.0.4
type Registry int
func RegistryFromString ¶ added in v0.0.4
func (Registry) MarshalJSON ¶ added in v0.0.4
func (*Registry) UnmarshalJSON ¶ added in v0.0.4
type Source ¶ added in v0.0.4
type Source struct { Name string `json:"name,omitempty"` Version string `json:"version,omitempty"` // Path is the path in the registry Path string `json:"path,omitempty"` // Registry can be github,local,grpc. Might support things like https in the future. Registry Registry `json:"registry,omitempty"` MaxGoRoutines uint64 `json:"max_goroutines,omitempty"` Tables []string `json:"tables,omitempty"` SkipTables []string `json:"skip_tables,omitempty"` Destinations []string `json:"destinations,omitempty"` Spec interface{} `json:"spec,omitempty"` }
Source is the shared configuration for all source plugins
func (*Source) SetDefaults ¶ added in v0.0.4
func (s *Source) SetDefaults()
func (*Source) UnmarshalSpec ¶ added in v0.0.4
type Spec ¶
type Spec struct { Kind Kind `json:"kind"` Spec interface{} `json:"spec"` }
func (*Spec) UnmarshalJSON ¶ added in v0.0.4
type SpecReader ¶
type SpecReader struct {
// contains filtered or unexported fields
}
func NewSpecReader ¶
func NewSpecReader(directory string) (*SpecReader, error)
func (*SpecReader) GetDestinatinoByName ¶
func (s *SpecReader) GetDestinatinoByName(name string) *Destination
func (*SpecReader) GetSourceByName ¶
func (s *SpecReader) GetSourceByName(name string) *Source
func (*SpecReader) GetSources ¶ added in v0.0.4
func (s *SpecReader) GetSources() []Source
type WriteMode ¶ added in v0.0.4
type WriteMode int
func WriteModeFromString ¶ added in v0.0.4
func (WriteMode) MarshalJSON ¶ added in v0.0.4
func (*WriteMode) UnmarshalJSON ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.