commands

package
v2.57.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PipelineName                      = "PipelineName :"
	Branch                            = "Branch :"
	Run                               = "Run :"
	Duration                          = "Duration :"
	StatusLabel                       = "Status :"
	MaxRetries                        = 1500
	MinimumIntervalRetriesInMilliSecs = 5000
)
View Source
const (
	PipeStatusFormat = "Status: %s\nIsSyncing: %t\nLastSyncStartedAt: %s\nLastSyncEndedAt: %s\n" +
		"CommitSHA: %s\nCommitter: %s\nCommitMessage: %s\nSyncSummary: %s\n"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusCommand

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

func NewStatusCommand

func NewStatusCommand() *StatusCommand

func (*StatusCommand) CommandName

func (sc *StatusCommand) CommandName() string

func (*StatusCommand) Run

func (sc *StatusCommand) Run() error

func (*StatusCommand) ServerDetails

func (sc *StatusCommand) ServerDetails() (*config.ServerDetails, error)

func (*StatusCommand) SetBranch

func (sc *StatusCommand) SetBranch(br string) *StatusCommand

func (*StatusCommand) SetMultiBranch

func (sc *StatusCommand) SetMultiBranch(multiBranch bool) *StatusCommand

func (*StatusCommand) SetNotify

func (sc *StatusCommand) SetNotify(nf bool) *StatusCommand

func (*StatusCommand) SetPipeline

func (sc *StatusCommand) SetPipeline(pl string) *StatusCommand

func (*StatusCommand) SetServerDetails

func (sc *StatusCommand) SetServerDetails(serverDetails *config.ServerDetails) *StatusCommand

type SyncCommand

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

func NewSyncCommand

func NewSyncCommand() *SyncCommand

func (*SyncCommand) CommandName

func (sc *SyncCommand) CommandName() string

func (*SyncCommand) Run

func (sc *SyncCommand) Run() error

func (*SyncCommand) ServerDetails

func (sc *SyncCommand) ServerDetails() (*config.ServerDetails, error)

func (*SyncCommand) SetBranch

func (sc *SyncCommand) SetBranch(br string) *SyncCommand

func (*SyncCommand) SetRepositoryFullName

func (sc *SyncCommand) SetRepositoryFullName(rfn string) *SyncCommand

func (*SyncCommand) SetServerDetails

func (sc *SyncCommand) SetServerDetails(serverDetails *config.ServerDetails) *SyncCommand

type SyncStatusCommand

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

func NewSyncStatusCommand

func NewSyncStatusCommand() *SyncStatusCommand

func (*SyncStatusCommand) CommandName

func (sc *SyncStatusCommand) CommandName() string

func (*SyncStatusCommand) Run

func (sc *SyncStatusCommand) Run() error

func (*SyncStatusCommand) ServerDetails

func (sc *SyncStatusCommand) ServerDetails() (*config.ServerDetails, error)

func (*SyncStatusCommand) SetBranch

func (sc *SyncStatusCommand) SetBranch(br string) *SyncStatusCommand

func (*SyncStatusCommand) SetRepoPath

func (sc *SyncStatusCommand) SetRepoPath(repo string) *SyncStatusCommand

func (*SyncStatusCommand) SetServerDetails

func (sc *SyncStatusCommand) SetServerDetails(serverDetails *config.ServerDetails) *SyncStatusCommand

type TriggerCommand

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

func NewTriggerCommand

func NewTriggerCommand() *TriggerCommand

func (*TriggerCommand) CommandName

func (tc *TriggerCommand) CommandName() string

func (*TriggerCommand) Run

func (tc *TriggerCommand) Run() error

func (*TriggerCommand) ServerDetails

func (tc *TriggerCommand) ServerDetails() (*config.ServerDetails, error)

func (*TriggerCommand) SetBranch

func (tc *TriggerCommand) SetBranch(br string) *TriggerCommand

func (*TriggerCommand) SetMultiBranch

func (tc *TriggerCommand) SetMultiBranch(multiBranch bool) *TriggerCommand

func (*TriggerCommand) SetPipelineName

func (tc *TriggerCommand) SetPipelineName(pl string) *TriggerCommand

func (*TriggerCommand) SetServerDetails

func (tc *TriggerCommand) SetServerDetails(serverDetails *config.ServerDetails) *TriggerCommand

type VersionCommand

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

func NewVersionCommand

func NewVersionCommand() *VersionCommand

func (*VersionCommand) CommandName

func (vc *VersionCommand) CommandName() string

func (*VersionCommand) Run

func (vc *VersionCommand) Run() error

func (*VersionCommand) ServerDetails

func (vc *VersionCommand) ServerDetails() (*config.ServerDetails, error)

func (*VersionCommand) SetServerDetails

func (vc *VersionCommand) SetServerDetails(serverDetails *config.ServerDetails) *VersionCommand

Jump to

Keyboard shortcuts

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