Documentation
¶
Index ¶
- type Errors
- type InstallError
- type Installer
- func (inst *Installer) Aborted() bool
- func (inst *Installer) Done() <-chan struct{}
- func (inst *Installer) Err() *Errors
- func (inst *Installer) Execute(ctx context.Context)
- func (inst *Installer) IsError() bool
- func (inst *Installer) NightlyID() string
- func (inst *Installer) NightlyInstallDir() string
- type MultiError
- type Opts
- type PanicRecoverError
- type PkgManagerCopyLogError
- type RPMFinderError
- type TransactionAbortError
- type TransactionCloseError
- type TransactionError
- type TransactionOpenError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
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) NightlyInstallDir ¶
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
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