env

package
v0.0.0-...-e1dbaa0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	RedisPool
	Virter
	Commander
}

type Commander

type Commander interface {
	Run(cmd string, params map[string]interface{}) (map[string]interface{}, error)
}

type Redis

type Redis interface {
	redis.Conn

	LoadScripts() error

	RedisReader
	Redlock
	Tx() RedisTx
}

type RedisPool

type RedisPool interface {
	Redis() Redis
}

type RedisReader

type RedisReader interface {
	Exists(key string) (bool, error)
	Get(data interface{}) error
	GetString(key string) (string, error)
	HGetString(key, field string) (string, error)
}

type RedisTx

type RedisTx interface {
	RedisWriter

	Begin() RedisTx
	Commit() error
}

type RedisWriter

type RedisWriter interface {
	Put(data interface{})
	Delete(data interface{})
}

type Redlock

type Redlock interface {
	Lock(lock string) (acquired bool, err error)
	Unlock(lock string) (released bool, err error)
}

type Virt

type Virt interface {
	StartVM(vm *model.VM) error
	StopVM(vm *model.VM) error
}

type Virter

type Virter interface {
	Virt() Virt
}

Jump to

Keyboard shortcuts

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