pub struct DiffOptions {
pub suppress: Vec<String>,
pub secrets: SecretMode,
pub context: Option<usize>,
pub strip_trailing_cr: bool,
pub normalize_manifests: bool,
pub no_hooks: bool,
pub include_tests: bool,
}Expand description
The options of Diff::between, mirroring diff.Options and the
release flags of the helm-diff plugin (diff/diff.go, cmd/options.go, cmd/upgrade.go,
manifest/parse.go, all at v3.15.15).
Not modelled, because they print, run a tool, or need a cluster: --output, --diff-tool,
--suppress-secrets (equals suppressing the Secret kind), --find-renames (a rename is a
removed plus an added object here), --suppress-output-line-regex, --three-way-merge,
--take-ownership, --revision, --detailed-exitcode (see Diff::is_empty)
and every flag that only steers rendering or the Helm connection.
Fields§
§suppress: Vec<String>Flag --suppress (repeatable): kinds whose changes are reported without content. The
object still shows as added, removed or changed, but its text is one line saying so and it
has no field changes. Compared with the kind exactly.
secrets: SecretModeFlags --show-secrets and --show-secrets-decoded; redacted by default.
context: Option<usize>Flag --context: lines of context around each change in the text diff. None (the
plugin’s -1) keeps every line.
strip_trailing_cr: boolFlag --strip-trailing-cr: ignore a carriage return at the end of each line.
normalize_manifests: boolFlag --normalize-manifests: re-serialise every object (keys sorted, one canonical
style, comments including # Source: dropped) so that style differences do not show.
no_hooks: boolFlag --no-hooks: leave out every object that has a helm.sh/hook annotation. The
plugin diffs hooks by default.
include_tests: boolFlag --include-tests: also diff hooks whose helm.sh/hook annotation is exactly test
or test-success, which the plugin leaves out by default.
Implementations§
Source§impl DiffOptions
impl DiffOptions
Sourcepub fn builder() -> DiffOptionsBuilder
pub fn builder() -> DiffOptionsBuilder
Create an instance of DiffOptions using the builder syntax
Trait Implementations§
Source§impl Clone for DiffOptions
impl Clone for DiffOptions
Source§impl Debug for DiffOptions
impl Debug for DiffOptions
Source§impl Default for DiffOptions
impl Default for DiffOptions
impl Eq for DiffOptions
Source§impl PartialEq for DiffOptions
impl PartialEq for DiffOptions
impl StructuralPartialEq for DiffOptions
Auto Trait Implementations§
impl !RefUnwindSafe for DiffOptions
impl !UnwindSafe for DiffOptions
impl Forget for DiffOptions
impl Freeze for DiffOptionswhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<dyn Fn(&MaskedValue<'_>) -> String + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Fn(&MaskedValue<'_>) -> String + Sync + Send>>: Freeze,
impl Move for DiffOptions
impl Send for DiffOptions
impl Sync for DiffOptions
impl Unpin for DiffOptions
impl UnsafeUnpin for DiffOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<dyn Fn(&MaskedValue<'_>) -> String + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(&MaskedValue<'_>) -> String + Sync + Send>>: UnsafeUnpin,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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