replication

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Strings for prompt questions
	SelectConfigKeyMsg = "Select the next configuration key" + utils.PressTabMsg

	// Template types
	TemplateType = "templateType"
	JobType      = "jobType"
	Create       = "create"
	Pull         = "pull"
	Push         = "push"

	// Common replication configuration JSON keys
	ServerId               = "serverId"
	CronExp                = "cronExp"
	RepoKey                = "repoKey"
	TargetRepoKey          = "targetRepoKey"
	EnableEventReplication = "enableEventReplication"
	Enabled                = "enabled"
	SyncDeletes            = "syncDeletes"
	SyncProperties         = "syncProperties"
	SyncStatistics         = "syncStatistics"
	PathPrefix             = "pathPrefix"
	SocketTimeoutMillis    = "socketTimeoutMillis"
)

Variables

View Source
var BoolToStringQuestionInfo = utils.QuestionInfo{
	Options:   utils.GetBoolSuggests(),
	AllowVars: true,
	Writer:    utils.WriteStringAnswer,
}

Specific writers for repo templates, since all the values in the templates should be written as string.

Functions

This section is empty.

Types

type ReplicationCreateCommand

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

func NewReplicationCreateCommand

func NewReplicationCreateCommand() *ReplicationCreateCommand

func (*ReplicationCreateCommand) CommandName

func (rcc *ReplicationCreateCommand) CommandName() string

func (*ReplicationCreateCommand) Run

func (rcc *ReplicationCreateCommand) Run() (err error)

func (*ReplicationCreateCommand) ServerDetails added in v1.4.0

func (rcc *ReplicationCreateCommand) ServerDetails() (*config.ServerDetails, error)

func (*ReplicationCreateCommand) SetServerDetails added in v1.4.0

func (rcc *ReplicationCreateCommand) SetServerDetails(serverDetails *config.ServerDetails) *ReplicationCreateCommand

func (*ReplicationCreateCommand) SetTemplatePath

func (rcc *ReplicationCreateCommand) SetTemplatePath(path string) *ReplicationCreateCommand

func (*ReplicationCreateCommand) SetVars

type ReplicationDeleteCommand

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

func NewReplicationDeleteCommand

func NewReplicationDeleteCommand() *ReplicationDeleteCommand

func (*ReplicationDeleteCommand) CommandName

func (rdc *ReplicationDeleteCommand) CommandName() string

func (*ReplicationDeleteCommand) Run

func (rdc *ReplicationDeleteCommand) Run() (err error)

func (*ReplicationDeleteCommand) ServerDetails added in v1.4.0

func (rdc *ReplicationDeleteCommand) ServerDetails() (*config.ServerDetails, error)

func (*ReplicationDeleteCommand) SetQuiet

func (*ReplicationDeleteCommand) SetRepoKey

func (rdc *ReplicationDeleteCommand) SetRepoKey(repoKey string) *ReplicationDeleteCommand

func (*ReplicationDeleteCommand) SetServerDetails added in v1.4.0

func (rdc *ReplicationDeleteCommand) SetServerDetails(serverDetails *config.ServerDetails) *ReplicationDeleteCommand

type ReplicationTemplateCommand

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

func NewReplicationTemplateCommand

func NewReplicationTemplateCommand() *ReplicationTemplateCommand

func (*ReplicationTemplateCommand) CommandName

func (rtc *ReplicationTemplateCommand) CommandName() string

func (*ReplicationTemplateCommand) Run

func (rtc *ReplicationTemplateCommand) Run() (err error)

func (*ReplicationTemplateCommand) ServerDetails added in v1.4.0

func (rtc *ReplicationTemplateCommand) ServerDetails() (*config.ServerDetails, error)

func (*ReplicationTemplateCommand) SetTemplatePath

func (rtc *ReplicationTemplateCommand) SetTemplatePath(path string) *ReplicationTemplateCommand

Jump to

Keyboard shortcuts

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