Documentation ¶
Index ¶
- type Binding
- func AddSourceIntegration(takenNames []string, connectorsManifest []byte, loadedOptions DefaultOptions) (*Binding, error)
- func AddTargetIntegration(takenNames []string, connectorsManifest []byte, loadedOptions DefaultOptions) (*Binding, error)
- func NewBinding(defaultName string, side string, loadedOptions DefaultOptions, ...) *Binding
- func (b *Binding) BelongToClusterAddress(address string, side string) bool
- func (b *Binding) Clone() *Binding
- func (b *Binding) ColoredYaml() string
- func (b *Binding) Render() (*Binding, error)
- func (b *Binding) SetEditMode(value bool) *Binding
- func (b *Binding) TableRowShort() []interface{}
- func (b *Binding) Validate() error
- type Bindings
- func (b *Bindings) AddIntegration(integration *Binding) error
- func (b *Bindings) Clone() *Bindings
- func (b *Bindings) GenerateNewBindingName() string
- func (b *Bindings) GetBindingsForCluster(address string) []*Binding
- func (b *Bindings) RemoveIntegration(integration *Binding)
- func (b *Bindings) Render() ([]byte, error)
- func (b *Bindings) Sort()
- func (b *Bindings) SwitchOrRemove(old, new *Binding)
- func (b *Bindings) Update(manifest *Manifest, loadedOptions DefaultOptions) *Bindings
- func (b *Bindings) Validate() error
- func (b *Bindings) Yaml() ([]byte, error)
- type Connector
- func (c *Connector) AddMetadata(value *Metadata) *Connector
- func (c *Connector) AddProperty(value *Property) *Connector
- func (c *Connector) ColoredYaml() string
- func (c *Connector) RenderMetadata(options DefaultOptions, defaultKeys map[string]string) (map[string]string, error)
- func (c *Connector) RenderProperties(options DefaultOptions, defaultKeys map[string]string) (map[string]string, error)
- func (c *Connector) SetCategory(value string) *Connector
- func (c *Connector) SetDescription(value string) *Connector
- func (c *Connector) SetKind(value string) *Connector
- func (c *Connector) SetName(value string) *Connector
- func (c *Connector) SetProvider(value string) *Connector
- func (c *Connector) SetTags(values ...string) *Connector
- func (c *Connector) Validate() error
- type Connectors
- type DefaultOptions
- type Log
- type Manifest
- func (m *Manifest) AddConnector(value *Connector) *Manifest
- func (m *Manifest) Marshal() []byte
- func (m *Manifest) Save() error
- func (m *Manifest) SaveFile(filename string) error
- func (m *Manifest) SetSchema(value string) *Manifest
- func (m *Manifest) SetSourceConnectors(value Connectors) *Manifest
- func (m *Manifest) SetTargetConnectors(value Connectors) *Manifest
- func (m *Manifest) SetVersion(value string) *Manifest
- type Metadata
- func (m *Metadata) SetDefault(value string) *Metadata
- func (m *Metadata) SetDescription(value string) *Metadata
- func (m *Metadata) SetKind(value string) *Metadata
- func (m *Metadata) SetLoadedOptions(value string) *Metadata
- func (m *Metadata) SetMax(value int) *Metadata
- func (m *Metadata) SetMin(value int) *Metadata
- func (m *Metadata) SetMust(value bool) *Metadata
- func (m *Metadata) SetName(value string) *Metadata
- func (m *Metadata) SetOptions(value []string) *Metadata
- func (m *Metadata) Validate() error
- type Name
- type Node
- type Properties
- type Property
- func (p *Property) Map() map[string]string
- func (p *Property) NewCondition(condition string, properties []*Property) *Property
- func (p *Property) SetDefault(value string) *Property
- func (p *Property) SetDefaultFromKey(value string) *Property
- func (p *Property) SetDescription(value string) *Property
- func (p *Property) SetKind(value string) *Property
- func (p *Property) SetLoadedOptions(value string) *Property
- func (p *Property) SetMax(value int) *Property
- func (p *Property) SetMin(value int) *Property
- func (p *Property) SetMust(value bool) *Property
- func (p *Property) SetName(value string) *Property
- func (p *Property) SetOptions(value []string) *Property
- func (p *Property) SetTitle(value string) *Property
- func (p *Property) Validate() error
- type RateLimiter
- type Retry
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Binding struct { Name string `json:"name" yaml:"name"` Source *Spec `json:"source" yaml:"source"` Target *Spec `json:"target" yaml:"target"` Properties map[string]string `json:"properties" yaml:"properties"` SourceSpec string `json:"-" yaml:"-"` TargetSpec string `json:"-" yaml:"-"` PropertiesSpec string `json:"-" yaml:"-"` Side string `json:"-" yaml:"-"` // contains filtered or unexported fields }
func AddSourceIntegration ¶ added in v0.5.1
func AddSourceIntegration(takenNames []string, connectorsManifest []byte, loadedOptions DefaultOptions) (*Binding, error)
func AddTargetIntegration ¶ added in v0.5.1
func AddTargetIntegration(takenNames []string, connectorsManifest []byte, loadedOptions DefaultOptions) (*Binding, error)
func NewBinding ¶
func NewBinding(defaultName string, side string, loadedOptions DefaultOptions, targetList, sourcesList Connectors) *Binding
func (*Binding) BelongToClusterAddress ¶ added in v0.5.1
func (*Binding) ColoredYaml ¶ added in v0.3.1
func (*Binding) SetEditMode ¶ added in v0.3.1
func (*Binding) TableRowShort ¶ added in v0.3.1
func (b *Binding) TableRowShort() []interface{}
type Bindings ¶
type Bindings struct { Bindings []*Binding `json:"bindings" yaml:"bindings"` Side string `json:"-" yaml:"-"` // contains filtered or unexported fields }
func NewBindings ¶
func (*Bindings) AddIntegration ¶ added in v0.5.1
func (*Bindings) GenerateNewBindingName ¶ added in v0.5.1
func (*Bindings) GetBindingsForCluster ¶ added in v0.5.1
func (*Bindings) RemoveIntegration ¶ added in v0.5.1
func (*Bindings) SwitchOrRemove ¶ added in v0.5.1
type Connector ¶
type Connector struct { Kind string `json:"kind"` Name string `json:"name"` Provider string `json:"provider"` Category string `json:"category"` Description string `json:"description"` Tags []string `json:"tags"` Properties []*Property `json:"properties"` Metadata []*Metadata `json:"metadata"` PropertiesSpec string // contains filtered or unexported fields }
func NewConnector ¶
func NewConnector() *Connector
func (*Connector) AddMetadata ¶ added in v0.5.2
func (*Connector) AddProperty ¶
func (*Connector) ColoredYaml ¶ added in v0.4.0
func (*Connector) RenderMetadata ¶ added in v0.5.8
func (*Connector) RenderProperties ¶ added in v0.5.8
func (*Connector) SetCategory ¶ added in v0.7.1
func (*Connector) SetDescription ¶
func (*Connector) SetProvider ¶ added in v0.7.1
type Connectors ¶
type Connectors []*Connector
func (Connectors) Validate ¶
func (c Connectors) Validate() error
type DefaultOptions ¶
func NewDefaultOptions ¶
func NewDefaultOptions() DefaultOptions
func (DefaultOptions) Add ¶
func (do DefaultOptions) Add(key string, value []string) DefaultOptions
type Manifest ¶
type Manifest struct { Schema string `json:"schema"` Version string `json:"version"` Sources Connectors `json:"sources"` Targets Connectors `json:"targets"` }
func LoadFromUrl ¶
func LoadManifest ¶
func LoadManifestFromFile ¶
func NewManifest ¶
func NewManifest() *Manifest
func (*Manifest) AddConnector ¶
func (*Manifest) SetSourceConnectors ¶
func (m *Manifest) SetSourceConnectors(value Connectors) *Manifest
func (*Manifest) SetTargetConnectors ¶
func (m *Manifest) SetTargetConnectors(value Connectors) *Manifest
func (*Manifest) SetVersion ¶
type Metadata ¶ added in v0.5.3
type Metadata struct { Name string `json:"name"` Kind string `json:"kind"` Description string `json:"description"` Default string `json:"default"` Options []string `json:"options"` Must bool `json:"must"` Min int `json:"min"` Max int `json:"max"` LoadedOptions string }
func NewMetadata ¶ added in v0.5.3
func NewMetadata() *Metadata
func (*Metadata) SetDefault ¶ added in v0.5.3
func (*Metadata) SetDescription ¶ added in v0.5.3
func (*Metadata) SetLoadedOptions ¶ added in v0.5.3
func (*Metadata) SetOptions ¶ added in v0.5.3
type Name ¶
type Name struct {
// contains filtered or unexported fields
}
func (*Name) RenderBinding ¶
func (*Name) RenderSource ¶
func (*Name) RenderTarget ¶
func (*Name) SetTakenNames ¶
type Node ¶ added in v0.4.0
func BuildNextNode ¶ added in v0.4.0
type Properties ¶
func NewProperties ¶
func NewProperties(current map[string]string) *Properties
func (*Properties) ColoredYaml ¶ added in v0.3.1
func (p *Properties) ColoredYaml() string
type Property ¶
type Property struct { Name string `json:"name"` Kind string `json:"kind"` Title string `json:"title"` Description string `json:"description"` Default string `json:"default"` Options []string `json:"options"` Must bool `json:"must"` Min int `json:"min"` Max int `json:"max"` Conditional map[string][]*Property DefaultFromKey string `json:"default_from_key"` LoadedOptions string }
func NewProperty ¶
func NewProperty() *Property
func (*Property) NewCondition ¶
func (*Property) SetDefault ¶
func (*Property) SetDefaultFromKey ¶ added in v0.5.8
func (*Property) SetDescription ¶
func (*Property) SetLoadedOptions ¶
func (*Property) SetOptions ¶
type RateLimiter ¶
type RateLimiter struct { }
func NewRateLimiter ¶
func NewRateLimiter() *RateLimiter
type Spec ¶
type Spec struct { Kind string `json:"kind"` Properties map[string]string `json:"properties"` PropertiesSpec string `json:"-" yaml:"-"` }
func (*Spec) ColoredYaml ¶ added in v0.3.1
func (*Spec) IsKubemqAddress ¶ added in v0.5.1
func (*Spec) TableItemShort ¶ added in v0.3.1
Click to show internal directories.
Click to hide internal directories.