replication

package
v2.57.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Strings for prompt questions
	SelectConfigKeyMsg = "Select the next configuration key" + ioutils.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"
	// Deprecated
	PathPrefix               = "pathPrefix"
	IncludePathPrefixPattern = "includePathPrefixPattern"
	SocketTimeoutMillis      = "socketTimeoutMillis"
	DisableProxy             = "disableProxy"
)

Variables

View Source
var BoolToStringQuestionInfo = ioutils.QuestionInfo{
	Options:   ioutils.GetBoolSuggests(),
	AllowVars: true,
	Writer:    ioutils.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

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

func (*ReplicationCreateCommand) SetServerDetails

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

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

func (*ReplicationDeleteCommand) SetQuiet

func (*ReplicationDeleteCommand) SetRepoKey

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

func (*ReplicationDeleteCommand) SetServerDetails

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

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