connector

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	Name         string            `json:"name"`
	Namespace    string            `json:"namespace"`
	Type         string            `json:"type"`
	Replicas     int               `json:"replicas"`
	Config       string            `json:"config"`
	NodePort     int               `json:"node_port"`
	ServiceType  string            `json:"service_type"`
	Image        string            `json:"image"`
	Integrations *common.Bindings  `json:"-" yaml:"-"`
	Bridges      *bridges.Bindings `json:"-" yaml:"-"`
	Status       *Status           `json:"-" yaml:"-"`
	// contains filtered or unexported fields
}

func AddConnector added in v0.4.1

func AddConnector(handler ConnectorsHandler, loadedOptions common.DefaultOptions, targetsManifests, sourceManifest []byte) (*Connector, error)

func CopyConnector added in v0.4.1

func CopyConnector(origin *Connector) (*Connector, error)

func EditConnector added in v0.4.1

func EditConnector(origin *Connector, isCopyMode bool) (*Connector, error)

func NewConnector

func NewConnector(handler ConnectorsHandler, loadedOptions common.DefaultOptions, targetManifest, sourceManifest []byte) *Connector

func (*Connector) Clone added in v0.4.0

func (c *Connector) Clone() *Connector

func (*Connector) ColoredYaml added in v0.4.0

func (c *Connector) ColoredYaml() string

func (*Connector) GetBindingNames added in v0.5.1

func (c *Connector) GetBindingNames() []string

func (*Connector) GetIntegrationsForCluster added in v0.5.1

func (c *Connector) GetIntegrationsForCluster(endPoints []string) []*common.Binding

func (*Connector) GetManifest added in v0.5.1

func (c *Connector) GetManifest() *common.Manifest

func (*Connector) Key added in v0.4.0

func (c *Connector) Key() string

func (*Connector) SetHandler added in v0.5.1

func (c *Connector) SetHandler(value ConnectorsHandler) *Connector

func (*Connector) SetLoadedOptions added in v0.5.1

func (c *Connector) SetLoadedOptions(value common.DefaultOptions) *Connector

func (*Connector) Update added in v0.5.1

func (c *Connector) Update(loadedOptions common.DefaultOptions, targets, sources []byte) *Connector

func (*Connector) Validate added in v0.4.1

func (c *Connector) Validate() error

type ConnectorsHandler added in v0.4.1

type ConnectorsHandler interface {
	Name() string
	Add(connector *Connector) error
	Edit(connector *Connector) error
	Delete(connector *Connector) error
	Get(namespace, name string) (*Connector, error)
	List() ([]*Connector, error)
}

type Name

type Name struct {
	Name string
	// contains filtered or unexported fields
}

func NewName

func NewName() *Name

func (*Name) Render

func (n *Name) Render(defaultName string) (*Name, error)

func (*Name) SetTakenNames

func (n *Name) SetTakenNames(value []string) *Name

func (*Name) Validate

func (n *Name) Validate() error

type Namespace

type Namespace struct {
	Namespace string
	// contains filtered or unexported fields
}

func NewNamespace

func NewNamespace() *Namespace

func (*Namespace) Render

func (n *Namespace) Render() (*Namespace, error)

func (*Namespace) SetNamespaces

func (n *Namespace) SetNamespaces(value []string) *Namespace

func (*Namespace) Validate

func (n *Namespace) Validate() error

type Replicas

type Replicas struct {
	// contains filtered or unexported fields
}

func NewReplicas

func NewReplicas() *Replicas

func (*Replicas) Render

func (r *Replicas) Render(defaultVal int) (int, error)

func (*Replicas) Validate

func (r *Replicas) Validate() error

type Status added in v0.5.1

type Status struct {
	Replicas int32  `json:"replicas"`
	Type     string `json:"type"`
	Image    string `json:"image"`
	Api      string `json:"api"`
	Status   string `json:"status"`
}

type Validator

type Validator interface {
	Validate() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL