Skip to main content

LintContext

Trait LintContext 

Source
pub trait LintContext: Send + Sync {
    // Required methods
    fn objects(&self) -> &[Object];
    fn invalid_objects(&self) -> &[InvalidObject];
}
Expand description

A lint context provides access to all parsed Kubernetes objects.

Required Methods§

Source

fn objects(&self) -> &[Object]

Get all valid parsed objects.

Source

fn invalid_objects(&self) -> &[InvalidObject]

Get all objects that failed to parse.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§