majorupgrade_utils

package
v0.0.0-...-7cac148 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INDICES_TOTAL_SHARD_DEFAULT = 2500
	V3_ES_SETTING_FILE          = "/svc/deployment-service/old_es_v3_settings.json"
	HAB_DIR                     = "/hab"
	UPGRADE_METADATA            = "/svc/deployment-service/var/upgrade_metadata.json"
)

Variables

This section is empty.

Functions

func EnsureStatus

func EnsureStatus() (bool, error)

func GetAutomateSvcList

func GetAutomateSvcList() ([]*api.ServiceState, error)

func GetMaintenanceStatus

func GetMaintenanceStatus(timeout int64) (bool, error)

func IsExternalElasticSearch

func IsExternalElasticSearch(timeout int64) bool

func SetMaintenanceMode

func SetMaintenanceMode(timeout int64, status bool) (stdOut, stdErr string, err error)

Types

type CustomWriter

type CustomWriter struct {
	WriteBuffer *bytes.Buffer
	ReadBuffer  *bytes.Buffer
	ErrorBuffer *bytes.Buffer
	CliWriter   *cli.Writer
}

func NewCustomWriter

func NewCustomWriter() *CustomWriter

func NewCustomWriterWithInputs

func NewCustomWriterWithInputs(inputs ...string) *CustomWriter

func (*CustomWriter) Error

func (cw *CustomWriter) Error() string

func (*CustomWriter) Input

func (cw *CustomWriter) Input(userInput string)

func (*CustomWriter) Output

func (cw *CustomWriter) Output() string

func (*CustomWriter) SetCliWriter

func (cw *CustomWriter) SetCliWriter()

Jump to

Keyboard shortcuts

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