28 lines
604 B
Rust
28 lines
604 B
Rust
use std::borrow::Cow;
|
|
|
|
use bon::Builder;
|
|
use oci_distribution::Reference;
|
|
|
|
use crate::drivers::types::Platform;
|
|
|
|
#[derive(Debug, Clone, Builder)]
|
|
pub struct GenerateTagsOpts<'scope> {
|
|
pub oci_ref: &'scope Reference,
|
|
|
|
#[builder(into)]
|
|
pub alt_tags: Option<Vec<Cow<'scope, str>>>,
|
|
|
|
pub platform: Option<Platform>,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Builder)]
|
|
pub struct GenerateImageNameOpts<'scope> {
|
|
#[builder(into)]
|
|
pub name: Cow<'scope, str>,
|
|
|
|
#[builder(into)]
|
|
pub registry: Option<Cow<'scope, str>>,
|
|
|
|
#[builder(into)]
|
|
pub registry_namespace: Option<Cow<'scope, str>>,
|
|
}
|