stub

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoRunningMongodContainers = errors.New("no mongod containers in running state")
	MongoDBTimeout               = 3 * time.Second
)
View Source
var ErrExecCommandTimeout = errors.New("timeout executing command")
View Source
var ReplsetInitWait = 10 * time.Second

Functions

func GetReplsetAddrs added in v0.2.0

func GetReplsetAddrs(m *v1alpha1.PerconaServerMongoDB, replset *v1alpha1.ReplsetSpec, pods []corev1.Pod) ([]string, error)

GetReplsetAddrs returns a slice of replset host:port addresses

func NewHandler

func NewHandler(client sdk.Client) opSdk.Handler

NewHandler return new instance of sdk.Handler interface.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler implements sdk.Handler interface.

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, event opSdk.Event) error

Handle is the main operator function that is ran for every SDK event

type ServiceAddr added in v0.2.0

type ServiceAddr struct {
	Host string
	Port int
}

func (ServiceAddr) String added in v0.2.0

func (s ServiceAddr) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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