simple-selectors 0.1.0

A simple label selector syntax inspired (and mostly compatible) to k8s
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Debug)]
pub enum ParseError {
    /// a selector must not be empty
    EmptySelector,
    /// the key at the position was invalid (i.e. some chars are not allowed within a key)
    InvalidKey(usize),
    /// the operator at the position is invalid
    InvalidOperator(usize),
    /// the selector must either finish at the position or another expression should start separated by a comma
    ExpectingEndOrComma(usize),
    /// a value was expected at the position
    ExpectingValue(usize),
    /// expecting opening parenthesis
    ExpectingLeftParenthesis(usize),
}