db

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTaintsNotFound = errors.New("taints not found")

Error when the placement is not found using Uuid

Functions

func Dial

func Dial() (redis.Conn, error)

Dial returns the redis.Conn. The context must be set before with InitContext

func DialPubSub

func DialPubSub() (redis.PubSubConn, error)

DialPubSub is the same as Dial but returns redis.PubSubConn The context must be set before with InitContext

func InitContext

func InitContext(url string)

func Reconnect

func Reconnect() redis.Conn

Reconnect calls Dial until the connection to redis is established. This function is blocking and may never end.

func ReconnectPubSub

func ReconnectPubSub() redis.PubSubConn

ReconnectPubSub is the same as Reconnect except it returns a redis.PubSubConn connection.

func ReloadAllTaints added in v0.1.8

func ReloadAllTaints(clouds map[string]v1.Cloud) error

func SaveTaints added in v0.1.8

func SaveTaints(cloud v1.Cloud) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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