connectors

package
v0.0.0-...-3c6cd92 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControllerCreateConnector

func ControllerCreateConnector(c *gin.Context)

func ControllerExecConnector

func ControllerExecConnector(c *gin.Context)

func ControllerGetConnector

func ControllerGetConnector(c *gin.Context)

func ControllerGetConnectorExecutor

func ControllerGetConnectorExecutor(c *gin.Context)

func ControllerGetConnectorResult

func ControllerGetConnectorResult(c *gin.Context)

func ControllerGetConnectors

func ControllerGetConnectors(c *gin.Context)

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, e *executors.Executor) string

func GetRedisrKey

func GetRedisrKey(g string, c string) string

func InitSchedule

func InitSchedule(c *Connector)

func RedisGetConnectors

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

func RedisGetLastExecutor

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

func RedisSaveConnector

func RedisSaveConnector(c *Connector) error

func RedisSaveExecutor

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

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 *dockerclient.ContainerConfig `json:"config"`
	Timeout         int                           `json:"timeout,omitempty"`
	Refresh         int                           `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) Init

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

func (*Connector) Run

func (c *Connector) Run()

type ConnectorRunner

type ConnectorRunner interface {
	Exec(connector *Connector) (*executors.Executor, error)
}

Jump to

Keyboard shortcuts

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