install

package
v0.7.5-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(i Interface, b []byte, debug bool) error

func ParseServerList

func ParseServerList(b []byte, debug bool) ([]runner.ServerInternal, error)

func RedisCluster

func RedisCluster(b []byte, debug bool) error

Types

type Executor

type Executor struct {
	Servers []runner.ServerInternal
	Meta    interface{}
}

type Interface

type Interface interface {
	Combine(servers []runner.ServerInternal) Executor
	Detect(executor Executor, debug bool) error
	HandPackage(executor Executor, debug bool) error
	Compile(executor Executor, debug bool) error
}

type RedisItem

type RedisItem struct {
	Redis struct {
		Password string `yaml:"password"`
		Package  string `yaml:"package"`
	} `yaml:"redis"`
}

type RedisMeta

type RedisMeta struct {
	Password string
	Package  string
}

func (*RedisMeta) Combine

func (meta *RedisMeta) Combine(servers []runner.ServerInternal) Executor

func (*RedisMeta) Compile

func (meta *RedisMeta) Compile(executor Executor, debug bool) error

func (*RedisMeta) Detect

func (meta *RedisMeta) Detect(executor Executor, debug bool) error

func (*RedisMeta) HandPackage

func (meta *RedisMeta) HandPackage(executor Executor, debug bool) error

type Task

type Task struct {
	Servers []runner.ServerInternal
	Cmd     string
	Debug   bool
	ErrChan chan error
}

type TaskFnc

type TaskFnc func(Task) error

Jump to

Keyboard shortcuts

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