[][src]Struct gitlab_ci_parser::GitlabCIConfig

pub struct GitlabCIConfig {
    pub file: PathBuf,
    pub parent: Option<Box<GitlabCIConfig>>,
    pub variables: BTreeMap<VarName, VarValue>,
    pub stages: Vec<StageName>,
    pub jobs: BTreeMap<JobName, Rc<Job>>,
}

Fields

file: PathBufparent: Option<Box<GitlabCIConfig>>

Based on include orderings, what's the parent of this gitlab config.

variables: BTreeMap<VarName, VarValue>

Global variables

stages: Vec<StageName>

Stages group jobs that run in parallel. The ordering is important

jobs: BTreeMap<JobName, Rc<Job>>

Targets that gitlab can run.

Methods

impl GitlabCIConfig[src]

pub fn get_merged_variables(&self) -> BTreeMap<String, String>[src]

Returns the consolidated global variables based on all imports.

pub fn lookup_job(&self, job_name: &str) -> Option<Rc<Job>>[src]

Trait Implementations

impl Debug for GitlabCIConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.