db

package
v3.7.0-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: LGPL-3.0 Imports: 14 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTask

func BuildTask(t *TaskStruct) (*pb.EnqueueRequest, error)

BuildTask build task

func BuildTaskBuild

func BuildTaskBuild(t *BuildTaskStruct) (*pb.EnqueueRequest, error)

BuildTaskBuild build task

func CreateDBManager

func CreateDBManager(conf option.Config) error

CreateDBManager get db manager TODO: need to try when happend error, try 4 times

func CreateEventManager

func CreateEventManager(conf option.Config) error

CreateEventManager create event manager

Types

type BuildTaskStruct

type BuildTaskStruct struct {
	TaskType string
	TaskBody []byte
	User     string
}

BuildTaskStruct build task struct

type ConDB

type ConDB struct {
	ConnectionInfo string
	DBType         string
}

ConDB struct

type K8SManager

type K8SManager struct {
	K8SConfig string
}

K8SManager struct

func (*K8SManager) NewKubeConnection

func (k *K8SManager) NewKubeConnection() (*kubernetes.Clientset, error)

NewKubeConnection new k8s config path

type MQManager

type MQManager struct {
	EtcdEndpoint  []string
	DefaultServer string
}

MQManager mq manager

func (*MQManager) NewMQManager

func (m *MQManager) NewMQManager() (*client.MQClient, error)

NewMQManager new mq manager

type OpentsdbManager

type OpentsdbManager struct {
	Endpoint string
}

OpentsdbManager OpentsdbManager

func (*OpentsdbManager) NewOpentsdbManager

func (o *OpentsdbManager) NewOpentsdbManager() (tsdbClient.Client, error)

NewOpentsdbManager NewOpentsdbManager

type TaskStruct

type TaskStruct struct {
	TaskType string
	TaskBody model.TaskBody
	User     string
}

TaskStruct task struct

Jump to

Keyboard shortcuts

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