precheckrunner

package
v2.55.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

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

func NewCheck

func NewCheck(name string, check func(args RunArguments) (bool, error)) PreCheck

NewCheck - Creates a check base on a given function and name

type PreCheckRunner

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

PreCheckRunner - Manages and runs the pre-checks

func NewPreChecksRunner

func NewPreChecksRunner() *PreCheckRunner

Creates a new empty runner

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

Jump to

Keyboard shortcuts

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