pub struct RegistryLogin {
pub host: String,
pub username: Option<String>,
pub password: Option<Secret>,
pub cert_file: Option<PathBuf>,
pub key_file: Option<PathBuf>,
pub ca_file: Option<PathBuf>,
pub insecure: bool,
pub plain_http: bool,
}Expand description
helm registry login: stores credentials for an OCI registry in the registry config.
The password or identity token reaches Helm through --password-stdin (never argv). Without a
password Helm prompts on a terminal, which a backend run does not have, so it fails.
Fields§
§host: StringThe registry host (host).
username: Option<String>Flag --username (-u); empty with a password means an identity token.
password: Option<Secret>Flag --password-stdin: the password or identity token, written to Helm’s stdin.
cert_file: Option<PathBuf>Flag --cert-file: the SSL client certificate.
key_file: Option<PathBuf>Flag --key-file: the SSL client key.
ca_file: Option<PathBuf>Flag --ca-file: the CA bundle that verifies the server.
insecure: boolFlag --insecure: allow connections to a TLS registry without certificates.
plain_http: boolFlag --plain-http: use insecure HTTP connections.
Implementations§
Source§impl RegistryLogin
impl RegistryLogin
Sourcepub fn builder(host: impl Into<String>) -> RegistryLoginBuilder
pub fn builder(host: impl Into<String>) -> RegistryLoginBuilder
Create an instance of RegistryLogin using the builder syntax
Trait Implementations§
Source§impl Clone for RegistryLogin
impl Clone for RegistryLogin
Source§impl Debug for RegistryLogin
impl Debug for RegistryLogin
Source§impl PartialEq for RegistryLogin
impl PartialEq for RegistryLogin
impl StructuralPartialEq for RegistryLogin
Auto Trait Implementations§
impl Forget for RegistryLogin
impl Freeze for RegistryLogin
impl Move for RegistryLogin
impl RefUnwindSafe for RegistryLogin
impl Send for RegistryLoginwhere
RawVecInner: Send,
impl Sync for RegistryLoginwhere
RawVecInner: Sync,
impl Unpin for RegistryLogin
impl UnsafeUnpin for RegistryLogin
impl UnwindSafe for RegistryLoginwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more