Struct wick_package::WickPackage
source · pub struct WickPackage { /* private fields */ }Expand description
Represents a Wick package, including its files and metadata.
Implementations§
source§impl WickPackage
impl WickPackage
sourcepub async fn from_path(path: &Path) -> Result<Self, Error>
pub async fn from_path(path: &Path) -> Result<Self, Error>
Creates a new WickPackage from the provided path.
The provided path can be a file or directory. If it is a directory, the WickPackage will be created based on the files within the directory.
sourcepub fn list_files(&self) -> Vec<&PackageFile>
pub fn list_files(&self) -> Vec<&PackageFile>
Returns a list of the files contained within the WickPackage.
sourcepub async fn push(
&mut self,
reference: &str,
options: &OciOptions
) -> Result<String, Error>
pub async fn push( &mut self, reference: &str, options: &OciOptions ) -> Result<String, Error>
Pushes the WickPackage to a specified registry using the provided reference, username, and password.
The username and password are optional. If not provided, the function falls back to anonymous authentication.
Trait Implementations§
source§impl Clone for WickPackage
impl Clone for WickPackage
source§fn clone(&self) -> WickPackage
fn clone(&self) -> WickPackage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more