pub struct ChartMetadata {Show 15 fields
pub api_version: ApiVersion,
pub name: String,
pub version: String,
pub kube_version: Option<String>,
pub description: Option<String>,
pub chart_type: Option<ChartType>,
pub keywords: Vec<String>,
pub home: Option<String>,
pub sources: Vec<String>,
pub dependencies: Vec<Dependency>,
pub maintainers: Vec<Maintainer>,
pub icon: Option<String>,
pub app_version: Option<String>,
pub deprecated: Option<bool>,
pub annotations: HashMap<String, String>,
}Expand description
Parsed Chart.yaml metadata.
Fields§
§api_version: ApiVersionThe chart API version (v1 or v2)
name: StringThe name of the chart
version: StringA SemVer 2 version
kube_version: Option<String>Kubernetes version constraint
description: Option<String>A single-sentence description of this project
chart_type: Option<ChartType>The type of the chart (application or library)
keywords: Vec<String>A list of keywords about this project
home: Option<String>The URL of this projects home page
sources: Vec<String>A list of URLs to source code for this project
dependencies: Vec<Dependency>A list of chart dependencies
maintainers: Vec<Maintainer>A list of maintainers
icon: Option<String>A URL to an SVG or PNG image to be used as an icon
app_version: Option<String>The version of the app that this contains
deprecated: Option<bool>Whether this chart is deprecated
annotations: HashMap<String, String>Annotations
Implementations§
Source§impl ChartMetadata
impl ChartMetadata
Sourcepub fn has_valid_api_version(&self) -> bool
pub fn has_valid_api_version(&self) -> bool
Check if the chart has valid API version.
Sourcepub fn is_library(&self) -> bool
pub fn is_library(&self) -> bool
Check if this is a library chart.
Sourcepub fn is_deprecated(&self) -> bool
pub fn is_deprecated(&self) -> bool
Check if the chart is marked as deprecated.
Sourcepub fn dependency_names(&self) -> Vec<&str>
pub fn dependency_names(&self) -> Vec<&str>
Get dependency names.
Sourcepub fn has_duplicate_dependencies(&self) -> Vec<&str>
pub fn has_duplicate_dependencies(&self) -> Vec<&str>
Check for duplicate dependency names.
Trait Implementations§
Source§impl Clone for ChartMetadata
impl Clone for ChartMetadata
Source§fn clone(&self) -> ChartMetadata
fn clone(&self) -> ChartMetadata
Returns a duplicate 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 moreSource§impl Debug for ChartMetadata
impl Debug for ChartMetadata
Source§impl<'de> Deserialize<'de> for ChartMetadata
impl<'de> Deserialize<'de> for ChartMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChartMetadata
impl RefUnwindSafe for ChartMetadata
impl Send for ChartMetadata
impl Sync for ChartMetadata
impl Unpin for ChartMetadata
impl UnwindSafe for ChartMetadata
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
Mutably borrows from an owned value. Read more
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> 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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.