installer

package module
v0.0.0-...-78b6b4d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

README

atlas-rpm-installer

This does the actual install on the localhost (via the cmd/installer exe). For CVMFS installs, this must be executed on the gateway node.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Errors

type Errors []error

Errors represents a slice of error values

func (*Errors) Append

func (e *Errors) Append(err error)

Append appends the error

func (*Errors) String

func (e *Errors) String() string

type InstallError

type InstallError struct {
	MultiError
}

InstallError represents an error that occured during installation attempts

func NewInstallError

func NewInstallError(errs ...error) InstallError

NewInstallError returns a new installation error

type Installer

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

Installer is the main data structure for installing RPMs

func New

func New(
	opts *Opts,
	t filesystem.Transactioner,
	pkg pkgManager,
	finder rpmFinder,
	tags tagsFiler,
	log logging.Logger,
) *Installer

New returns an installer that can perform an install.

func (*Installer) Aborted

func (inst *Installer) Aborted() bool

Aborted indicates if this installer was stopped prematurely, likely because a context was canceled

func (*Installer) Done

func (inst *Installer) Done() <-chan struct{}

Done returns a channel to wait for the installer to be done

func (*Installer) Err

func (inst *Installer) Err() *Errors

Err returns the installer Errors instance

func (*Installer) Execute

func (inst *Installer) Execute(ctx context.Context)

Execute will perform the install

func (*Installer) IsError

func (inst *Installer) IsError() bool

IsError indicates if any errors have occured

func (*Installer) NightlyID

func (inst *Installer) NightlyID() string

NightlyID returns a string that identifies this given nightly branch

func (*Installer) NightlyInstallDir

func (inst *Installer) NightlyInstallDir() string

NightlyInstallDir returns the full path to the installation directory for this nightly

type MultiError

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

MultiError represents an error comprising multiple errors

func NewMultiError

func NewMultiError(errs ...error) MultiError

NewMultiError returns a MultiError, a wrapper for more than one error

func (MultiError) Error

func (m MultiError) Error() string

type Opts

type Opts struct {
	Branch    string `json:"branch"`
	Platform  string `json:"platform"`
	Timestamp string `json:"timestamp"`
	Project   string `json:"project"`

	// Base directory below which we install
	InstallBaseDir string `json:"install_base_dir"`

	// Directory where we do our work
	WorkBaseDir string `json:"work_base_dir"`

	// Directory where the stable releases
	// repository is located (to get dependencies)
	StableReleasesDir string `json:"stable_releases_dir"`

	// TagsFile is the path to the tags file
	TagsFile string `json:"tagsfile"`
}

Opts configures the Installer

func (*Opts) String

func (o *Opts) String() string

type PanicRecoverError

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

PanicRecoverError represents the panic error which was recovered

func (PanicRecoverError) Error

func (p PanicRecoverError) Error() string

type PkgManagerCopyLogError

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

PkgManagerCopyLogError represents an error during the copying of the package manager log

func (PkgManagerCopyLogError) Error

func (p PkgManagerCopyLogError) Error() string

type RPMFinderError

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

RPMFinderError represents any problem finding RPMs or any problem related to found RPMs, such as having zero size

func (RPMFinderError) Error

func (r RPMFinderError) Error() string

type TransactionAbortError

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

TransactionAbortError represents an error aborting a transaction

func NewTransactionAbortError

func NewTransactionAbortError(e error) TransactionAbortError

NewTransactionAbortError returns a TransactionAbortError

func (TransactionAbortError) Error

func (t TransactionAbortError) Error() string

type TransactionCloseError

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

TransactionCloseError represents an error closing a transaction

func NewTransactionCloseError

func NewTransactionCloseError(e error) TransactionCloseError

NewTransactionCloseError returns a TransactionCloseError

func (TransactionCloseError) Error

func (t TransactionCloseError) Error() string

type TransactionError

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

TransactionError is the base error for transaction errors

func (TransactionError) Error

func (t TransactionError) Error() string

type TransactionOpenError

type TransactionOpenError struct {
	TransactionError
}

TransactionOpenError represents an error opening a transaction

func NewTransactionOpenError

func NewTransactionOpenError(e error) TransactionOpenError

NewTransactionOpenError returns a TransactionOpenError

func (TransactionOpenError) Error

func (t TransactionOpenError) Error() string

Jump to

Keyboard shortcuts

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