Enum brane_cli::errors::BuildError

source ·
pub enum BuildError {
Show 54 variants ContainerInfoOpenError { file: PathBuf, err: Error, }, ContainerInfoParseError { file: PathBuf, err: ContainerInfoError, }, PackageDirError { err: UtilError, }, OasDocumentParseError { file: PathBuf, err: Error, }, VersionParseError { err: ParseError, }, PackageInfoFromOpenAPIError { err: Error, }, LockCreateError { name: String, err: Error, }, DockerfileStrWriteError { err: Error, }, UnsafePath { path: PathBuf, }, MissingExecutable { path: PathBuf, }, DockerfileCreateError { path: PathBuf, err: Error, }, DockerfileWriteError { path: PathBuf, err: Error, }, ContainerDirCreateError { path: PathBuf, err: Error, }, BraneletCanonicalizeError { path: PathBuf, err: Error, }, BraneletCopyError { source: PathBuf, target: PathBuf, err: Error, }, WdClearError { path: PathBuf, err: Error, }, WdCreateError { path: PathBuf, err: Error, }, LocalContainerInfoCreateError { err: LocalContainerInfoError, }, WdSourceFileCanonicalizeError { path: PathBuf, err: Error, }, WdTargetFileCanonicalizeError { path: PathBuf, err: Error, }, WdDirCreateError { path: PathBuf, err: Error, }, WdFileCopyError { source: PathBuf, target: PathBuf, err: Error, }, WdDirReadError { path: PathBuf, err: Error, }, WdDirEntryError { path: PathBuf, err: Error, }, WdFileRenameError { source: PathBuf, target: PathBuf, err: Error, }, WdFileCreateError { path: PathBuf, err: Error, }, WdFileOpenError { path: PathBuf, err: Error, }, WdFileReadError { path: PathBuf, err: Error, }, WdFileWriteError { path: PathBuf, err: Error, }, WdFileRemoveError { path: PathBuf, err: Error, }, WdCompressionLaunchError { command: String, err: Error, }, WdCompressionError { command: String, code: i32, stdout: String, stderr: String, }, WdConfirmationError { err: Error, }, OpenAPISerializeError { err: Error, }, OpenAPIFileCreateError { path: PathBuf, err: Error, }, OpenAPIFileWriteError { path: PathBuf, err: Error, }, BuildKitLaunchError { command: String, err: Error, }, BuildKitError { command: String, code: i32, stdout: String, stderr: String, }, ImageBuildLaunchError { command: String, err: Error, }, ImageBuildError { command: String, code: i32, }, DigestError { err: Error, }, PackageFileCreateError { err: PackageInfoError, }, FileCleanupError { path: PathBuf, err: Error, }, DirCleanupError { path: PathBuf, err: Error, }, CleanupError { path: PathBuf, err: Error, }, ImageTarOpenError { path: PathBuf, err: Error, }, ImageTarEntriesError { path: PathBuf, err: Error, }, ManifestParseError { path: PathBuf, err: Error, }, ManifestNotOneEntry { path: PathBuf, n: usize, }, ManifestInvalidConfigBlob { path: PathBuf, config: String, }, NoManifest { path: PathBuf, }, DigestFileCreateError { path: PathBuf, err: Error, }, DigestFileWriteError { path: PathBuf, err: Error, }, HostArchError { err: ArchError, },
}
Expand description

Collects errors during the build subcommand

Variants§

§

ContainerInfoOpenError

Could not open the given container info file

Fields

§file: PathBuf
§err: Error
§

ContainerInfoParseError

Could not read/open the given container info file

§

PackageDirError

Could not create/resolve the package directory

Fields

§

OasDocumentParseError

Could not read/open the given OAS document

Fields

§file: PathBuf
§err: Error
§

VersionParseError

Could not parse the version in the given OAS document

Fields

§

PackageInfoFromOpenAPIError

Could not properly convert the OpenAPI document into a PackageInfo

Fields

§err: Error
§

LockCreateError

Failed to create a LockFile.

Fields

§name: String
§err: Error
§

DockerfileStrWriteError

Could not write to the DockerFile string.

Fields

§err: Error
§

UnsafePath

A given filepath escaped the working directory

Fields

§path: PathBuf
§

MissingExecutable

The entrypoint executable referenced was not found

Fields

§path: PathBuf
§

DockerfileCreateError

Could not create the Dockerfile in the build directory.

Fields

§path: PathBuf
§err: Error
§

DockerfileWriteError

Could not write to the Dockerfile in the build directory.

Fields

§path: PathBuf
§err: Error
§

ContainerDirCreateError

Could not create the container directory

Fields

§path: PathBuf
§err: Error
§

BraneletCanonicalizeError

Could not resolve the custom branelet’s path

Fields

§path: PathBuf
§err: Error
§

BraneletCopyError

Could not copy the branelet executable

Fields

§source: PathBuf
§target: PathBuf
§err: Error
§

WdClearError

Could not clear an existing working directory

Fields

§path: PathBuf
§err: Error
§

WdCreateError

Could not create a new working directory

Fields

§path: PathBuf
§err: Error
§

LocalContainerInfoCreateError

Could not write the LocalContainerInfo to the container directory.

§

WdSourceFileCanonicalizeError

Could not canonicalize file’s path that will be copied to the working directory

Fields

§path: PathBuf
§err: Error
§

WdTargetFileCanonicalizeError

Could not canonicalize a workdir file’s path

Fields

§path: PathBuf
§err: Error
§

WdDirCreateError

Could not create a directory in the working directory

Fields

§path: PathBuf
§err: Error
§

WdFileCopyError

Could not copy a file to the working directory

Fields

§source: PathBuf
§target: PathBuf
§err: Error
§

WdDirReadError

Could not read a directory’s entries.

Fields

§path: PathBuf
§err: Error
§

WdDirEntryError

Could not unwrap an entry in a directory.

Fields

§path: PathBuf
§err: Error
§

WdFileRenameError

Could not rename a file.

Fields

§source: PathBuf
§target: PathBuf
§err: Error
§

WdFileCreateError

Failed to create a new file.

Fields

§path: PathBuf
§err: Error
§

WdFileOpenError

Failed to open a file.

Fields

§path: PathBuf
§err: Error
§

WdFileReadError

Failed to read a file.

Fields

§path: PathBuf
§err: Error
§

WdFileWriteError

Failed to write to a file.

Fields

§path: PathBuf
§err: Error
§

WdFileRemoveError

Failed to remove a file.

Fields

§path: PathBuf
§err: Error
§

WdCompressionLaunchError

Could not launch the command to compress the working directory

Fields

§command: String
§err: Error
§

WdCompressionError

Command to compress the working directory returned a non-zero exit code

Fields

§command: String
§code: i32
§stdout: String
§stderr: String
§

WdConfirmationError

Failed to ask the user for consent.

Fields

§err: Error
§

OpenAPISerializeError

Could not serialize the OPenAPI file

Fields

§err: Error
§

OpenAPIFileCreateError

COuld not create a new OpenAPI file

Fields

§path: PathBuf
§err: Error
§

OpenAPIFileWriteError

Could not write to a new OpenAPI file

Fields

§path: PathBuf
§err: Error
§

BuildKitLaunchError

Could not launch the command to see if buildkit is installed

Fields

§command: String
§err: Error
§

BuildKitError

The simple command to instantiate/test the BuildKit plugin for Docker returned a non-success

Fields

§command: String
§code: i32
§stdout: String
§stderr: String
§

ImageBuildLaunchError

Could not launch the command to build the package image

Fields

§command: String
§err: Error
§

ImageBuildError

The command to build the image returned a non-zero exit code (we don’t accept stdout or stderr here, as the command’s output itself will be passed to stdout & stderr)

Fields

§command: String
§code: i32
§

DigestError

Could not get the digest from the just-built image

Fields

§err: Error
§

PackageFileCreateError

Could not write the PackageFile to the build directory.

§

FileCleanupError

Failed to cleanup a file from the build directory after a successfull build.

Fields

§path: PathBuf
§err: Error
§

DirCleanupError

Failed to cleanup a directory from the build directory after a successfull build.

Fields

§path: PathBuf
§err: Error
§

CleanupError

Failed to cleanup the build directory after a failed build.

Fields

§path: PathBuf
§err: Error
§

ImageTarOpenError

Could not open the just-build image.tar

Fields

§path: PathBuf
§err: Error
§

ImageTarEntriesError

Could not get the entries in the image.tar

Fields

§path: PathBuf
§err: Error
§

ManifestParseError

Could not parse the extracted manifest file

Fields

§path: PathBuf
§err: Error
§

ManifestNotOneEntry

The number of entries in the given manifest is not one (?)

Fields

§path: PathBuf
§

ManifestInvalidConfigBlob

The path to the config blob (which contains Docker’s digest) is invalid

Fields

§path: PathBuf
§config: String
§

NoManifest

Didn’t find any manifest.json in the image.tar

Fields

§path: PathBuf
§

DigestFileCreateError

Could not create the resulting digest.txt file

Fields

§path: PathBuf
§err: Error
§

DigestFileWriteError

Could not write to the resulting digest.txt file

Fields

§path: PathBuf
§err: Error
§

HostArchError

Could not get the host architecture

Fields

Trait Implementations§

source§

impl Debug for BuildError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for BuildError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> FResult

Formats the value using the given formatter. Read more
source§

impl Error for BuildError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> ErrorTrace for T
where T: Error,

source§

fn trace(&self) -> ErrorTraceFormatter<'_>

Returns a formatter that writes the error to the given formatter, with any sources it has. Read more
source§

impl<T> ErrorTrace for T
where T: Error + ?Sized,

source§

fn trace(&self) -> ErrorTraceFormatter<'_, '_>

Returns a formatter for showing this Error and all its sources. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T