connectors

package
v0.0.0-...-d86dc6f Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(connector *Connector) (*executors.Executor, error)

func GetLastConnectorExecutor

func GetLastConnectorExecutor(c *Connector) *executors.Executor

func GetRedisConnectorConfKey

func GetRedisConnectorConfKey(g string, c string) string

func GetRedisConnectorKey

func GetRedisConnectorKey(c *Connector) string

func GetRedisConnectorsKey

func GetRedisConnectorsKey(c *Connector) string

func GetRedisExecutorKey

func GetRedisExecutorKey(c *Connector) string

func GetRedisResultKey

func GetRedisResultKey(c *Connector) string

func GetRedisrKey

func GetRedisrKey(g string, c string) string

func RedisGetConnectors

func RedisGetConnectors(group string) ([]string, error)

func RedisGetLastExecutor

func RedisGetLastExecutor(c *Connector) (string, error)

func RedisRemoveConnector

func RedisRemoveConnector(c *Connector) error

func RedisSaveConnector

func RedisSaveConnector(c *Connector) error

func RedisSaveExecutor

func RedisSaveExecutor(c *Connector, exec *executors.Executor) error

func RemoveConnector

func RemoveConnector(c *Connector)

func SaveConnector

func SaveConnector(c *Connector)

func SaveExecutor

func SaveExecutor(c *Connector, exec *executors.Executor)

Types

type Connector

type Connector struct {
	Group           string                      `json:"group"`
	Name            string                      `json:"name"`
	ContainerConfig *dockerapi.ContainerOptions `json:"config"`
	Timeout         uint                        `json:"timeout,omitempty"`
	Refresh         uint                        `json:"refresh,omitempty"`
}

func GetConnector

func GetConnector(group string, connector string) (*Connector, error)

func GetConnectors

func GetConnectors(group string) []Connector

func NewConnector

func NewConnector(group string, name string) *Connector

func RedisGetConnector

func RedisGetConnector(group string, connector string) (*Connector, error)

func (*Connector) GetContainerName

func (c *Connector) GetContainerName() string

func (*Connector) GetJSON

func (c *Connector) GetJSON() string

func (*Connector) Id

func (c *Connector) Id() string

func (*Connector) Init

func (c *Connector) Init(image string, timeout uint, refresh uint, cmd []string)

func (*Connector) Run

func (c *Connector) Run()

type ConnectorScheduler

type ConnectorScheduler struct {
	// contains filtered or unexported fields
}
var Scheduler ConnectorScheduler

func NewConnectorScheduler

func NewConnectorScheduler() ConnectorScheduler

func (ConnectorScheduler) RemoveJob

func (ct ConnectorScheduler) RemoveJob(conn *Connector)

func (ConnectorScheduler) SetJob

func (ct ConnectorScheduler) SetJob(conn *Connector)

Jump to

Keyboard shortcuts

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