Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreCheck ¶
type PreCheck interface { // Name - Describes the check Name() string // Execute the check, return true if passed ExecuteCheck(args RunArguments) (bool, error) }
PreCheck Is interface for a check on an Artifactory server
type PreCheckRunner ¶
type PreCheckRunner struct {
// contains filtered or unexported fields
}
PreCheckRunner - Manages and runs the pre-checks
func (*PreCheckRunner) AddCheck ¶
func (pcr *PreCheckRunner) AddCheck(check PreCheck)
Add a check to the runner
func (*PreCheckRunner) Run ¶
func (pcr *PreCheckRunner) Run(context context.Context, serverDetails *config.ServerDetails) (err error)
Run all the checks and display the process
type RemoteRepositoryCheck ¶
type RemoteRepositoryCheck struct {
// contains filtered or unexported fields
}
Run remote repository URLs accessibility test before transferring configuration from one Artifactory to another
func NewRemoteRepositoryCheck ¶
func NewRemoteRepositoryCheck(targetServicesManager *artifactory.ArtifactoryServicesManager, remoteRepositories []interface{}) *RemoteRepositoryCheck
func (*RemoteRepositoryCheck) ExecuteCheck ¶
func (rrc *RemoteRepositoryCheck) ExecuteCheck(args RunArguments) (passed bool, err error)
func (*RemoteRepositoryCheck) Name ¶
func (rrc *RemoteRepositoryCheck) Name() string
type RemoteUrlCheckStatus ¶
type RemoteUrlCheckStatus string
type RepositoryNamingCheck ¶
type RepositoryNamingCheck struct {
// contains filtered or unexported fields
}
Run repository naming check before transferring configuration from one Artifactory to another
func NewRepositoryNamingCheck ¶
func NewRepositoryNamingCheck(selectedRepos map[utils.RepoType][]services.RepositoryDetails) *RepositoryNamingCheck
func (*RepositoryNamingCheck) ExecuteCheck ¶
func (drc *RepositoryNamingCheck) ExecuteCheck(args RunArguments) (passed bool, err error)
func (*RepositoryNamingCheck) Name ¶
func (drc *RepositoryNamingCheck) Name() string
type RunArguments ¶
type RunArguments struct { Context context.Context ServerDetails *config.ServerDetails ProgressMng *progressbar.ProgressBarMng }
RunArguments - The arguments of the run that is passed to the checks
type RunStatus ¶
type RunStatus struct {
// contains filtered or unexported fields
}
RunStatus - The status of the preformed checks in a run
type RunnerProgressBar ¶
type RunnerProgressBar struct {
// contains filtered or unexported fields
}
Manage all the displayed progress of the run
Click to show internal directories.
Click to hide internal directories.