install

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const PruneRedisShell = `` /* 263-byte string literal not displayed */

Variables

This section is empty.

Functions

func Redis

func Redis(item command.OperationItem) (err command.RunErr)

Redis 部署redis

func RedisCluster

func RedisCluster(item command.OperationItem) command.RunErr

RedisCluster 部署redis集群

Types

type BootErr

type BootErr struct {
	Host string
	Err  error
}

func (BootErr) Error

func (bootErr BootErr) Error() string

type DetectErr

type DetectErr struct {
	Host string
	Err  error
}

func (DetectErr) Error

func (detectErr DetectErr) Error() string

type InstallErr

type InstallErr struct {
	Host string
	Err  error
}

func (InstallErr) Error

func (installErr InstallErr) Error() string

type Interface

type Interface interface {
	Parse() command.RunErr
	SetValue() command.RunErr
	Detect() command.RunErr
	Prune() command.RunErr
	HandPackage() command.RunErr
	Install() command.RunErr
	SetUpRuntime() command.RunErr
	Config() command.RunErr
	SetService() command.RunErr // 开机自启动
	Boot() command.RunErr
	CloseFirewall() command.RunErr
	Init() command.RunErr
	Print() command.RunErr // 输出安装信息
}

Interface install操作类型接口

type ParseServerListErr

type ParseServerListErr struct {
	Err error
}

func (ParseServerListErr) Error

func (parseServerListErr ParseServerListErr) Error() string

type PruneErr

type PruneErr struct {
	Host string
	Err  error
}

func (PruneErr) Error

func (pruneErr PruneErr) Error() string

type RedisClusterConfig

type RedisClusterConfig struct {
	RedisCluster struct {
		Password    string           `yaml:"password"`
		ClusterType RedisClusterType `yaml:"cluster-type"`
		Package     string           `yaml:"package"`
		ListenPorts []int            `yaml:"listenPorts"`
	} `yaml:"redis-cluster"`
}

RedisClusterConfig redis安装配置反序列化对象

type RedisClusterType

type RedisClusterType int8

RedisClusterType redis cluster部署模式

type RedisExternalConfig

type RedisExternalConfig struct {
	Redis struct {
		Password string `yaml:"password"`
		Port     int    `yaml:"port"`
		Package  string `yaml:"package"`
	} `yaml:"redis"`
}

RedisExternalConfig redis安装配置反序列化对象

type RedisInternalConfig

type RedisInternalConfig struct {
	Servers       []runner.ServerInternal
	Password      string
	Ports         []int
	Package       string
	Logger        *logrus.Logger
	ConfigContent []byte
	Executor      runner.ExecutorInternal
	IgnoreErr     bool     // UnitTest
	PortsNeedOpen []int    // 需要放开的防火墙策略
	EndpointList  []string // 节点列表
	BootCommand   string
	// contains filtered or unexported fields
}

RedisInternalConfig 内部对象

func (*RedisInternalConfig) Boot

func (config *RedisInternalConfig) Boot() (err command.RunErr)

func (*RedisInternalConfig) CloseFirewall

func (config *RedisInternalConfig) CloseFirewall() (err command.RunErr)

func (*RedisInternalConfig) Config

func (config *RedisInternalConfig) Config() (err command.RunErr)

func (*RedisInternalConfig) Detect

func (config *RedisInternalConfig) Detect() (err command.RunErr)

Detect 调用运行时检测依赖

func (*RedisInternalConfig) HandPackage

func (config *RedisInternalConfig) HandPackage() (err command.RunErr)

HandPackage 分发安装包

func (*RedisInternalConfig) Init

func (config *RedisInternalConfig) Init() (err command.RunErr)

func (*RedisInternalConfig) Install

func (config *RedisInternalConfig) Install() (err command.RunErr)

Install 编译

func (*RedisInternalConfig) Parse

func (config *RedisInternalConfig) Parse() command.RunErr

func (*RedisInternalConfig) Print

func (config *RedisInternalConfig) Print() command.RunErr

func (*RedisInternalConfig) Prune

func (config *RedisInternalConfig) Prune() (err command.RunErr)

Prune 清理历史文件

func (*RedisInternalConfig) SetService

func (config *RedisInternalConfig) SetService() (err command.RunErr)

func (*RedisInternalConfig) SetUpRuntime

func (config *RedisInternalConfig) SetUpRuntime() (err command.RunErr)

SetUpRuntime redis运行时配置

func (*RedisInternalConfig) SetValue

func (config *RedisInternalConfig) SetValue() command.RunErr

type SetConfigErr

type SetConfigErr struct {
	Host string
	Err  error
}

func (SetConfigErr) Error

func (setConfigErr SetConfigErr) Error() string

type SetSystemdErr

type SetSystemdErr struct {
	Host string
	Err  error
}

func (SetSystemdErr) Error

func (setSystemdErr SetSystemdErr) Error() string

type SetUpRuntimeErr

type SetUpRuntimeErr struct {
	Host string
	Err  error
}

func (SetUpRuntimeErr) Error

func (setUpRuntimeErr SetUpRuntimeErr) Error() string

type TransferPackageErr

type TransferPackageErr struct {
	Host string
	Path string
	Err  error
}

func (TransferPackageErr) Error

func (transferPackageErr TransferPackageErr) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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