Struct dagger_sdk::gen::Container

source ·
pub struct Container {
    pub proc: Arc<Child>,
    pub selection: Selection,
    pub conn: ConnectParams,
}

Fields§

§proc: Arc<Child>§selection: Selection§conn: ConnectParams

Implementations§

source§

impl Container

source

pub fn build( &self, context: DirectoryId, opts: Option<ContainerBuildOpts> ) -> Container

source

pub fn default_args(&self) -> Vec<String>

source

pub fn directory(&self, path: String) -> Directory

source

pub fn entrypoint(&self) -> Vec<String>

source

pub fn env_variable(&self, name: String) -> String

source

pub fn env_variables(&self) -> Vec<EnvVariable>

source

pub fn exec(&self, opts: Option<ContainerExecOpts>) -> Container

source

pub fn exit_code(&self) -> isize

source

pub fn export(&self, path: String, opts: Option<ContainerExportOpts>) -> bool

source

pub fn file(&self, path: String) -> File

source

pub fn from(&self, address: String) -> Container

source

pub fn fs(&self) -> Directory

source

pub fn id(&self) -> ContainerId

source

pub fn label(&self, name: String) -> String

source

pub fn labels(&self) -> Vec<Label>

source

pub fn mounts(&self) -> Vec<String>

source

pub fn pipeline( &self, name: String, opts: Option<ContainerPipelineOpts> ) -> Container

source

pub fn platform(&self) -> Platform

source

pub fn publish( &self, address: String, opts: Option<ContainerPublishOpts> ) -> String

source

pub fn rootfs(&self) -> Directory

source

pub fn stderr(&self) -> String

source

pub fn stdout(&self) -> String

source

pub fn user(&self) -> String

source

pub fn with_default_args( &self, opts: Option<ContainerWithDefaultArgsOpts> ) -> Container

source

pub fn with_directory( &self, path: String, directory: DirectoryId, opts: Option<ContainerWithDirectoryOpts> ) -> Container

source

pub fn with_entrypoint(&self, args: Vec<String>) -> Container

source

pub fn with_env_variable(&self, name: String, value: String) -> Container

source

pub fn with_exec( &self, args: Vec<String>, opts: Option<ContainerWithExecOpts> ) -> Container

source

pub fn with_fs(&self, id: DirectoryId) -> Container

source

pub fn with_file( &self, path: String, source: FileId, opts: Option<ContainerWithFileOpts> ) -> Container

source

pub fn with_label(&self, name: String, value: String) -> Container

source

pub fn with_mounted_cache( &self, path: String, cache: CacheId, opts: Option<ContainerWithMountedCacheOpts> ) -> Container

source

pub fn with_mounted_directory( &self, path: String, source: DirectoryId ) -> Container

source

pub fn with_mounted_file(&self, path: String, source: FileId) -> Container

source

pub fn with_mounted_secret(&self, path: String, source: SecretId) -> Container

source

pub fn with_mounted_temp(&self, path: String) -> Container

source

pub fn with_new_file( &self, path: String, opts: Option<ContainerWithNewFileOpts> ) -> Container

source

pub fn with_registry_auth( &self, address: String, username: String, secret: SecretId ) -> Container

source

pub fn with_rootfs(&self, id: DirectoryId) -> Container

source

pub fn with_secret_variable(&self, name: String, secret: SecretId) -> Container

source

pub fn with_unix_socket(&self, path: String, source: SocketId) -> Container

source

pub fn with_user(&self, name: String) -> Container

source

pub fn with_workdir(&self, path: String) -> Container

source

pub fn without_env_variable(&self, name: String) -> Container

source

pub fn without_label(&self, name: String) -> Container

source

pub fn without_mount(&self, path: String) -> Container

source

pub fn without_registry_auth(&self, address: String) -> Container

source

pub fn without_unix_socket(&self, path: String) -> Container

source

pub fn workdir(&self) -> String

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · 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 Twhere U: From<T>,

const: unstable · 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> Same<T> for T

§

type Output = T

Should always be Self
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
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