1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClaimOne {
    #[prost(bytes, tag="1")]
    pub target: std::vec::Vec<u8>,
    #[prost(string, repeated, tag="2")]
    pub resources: ::std::vec::Vec<std::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClaimAll {
    #[prost(bytes, tag="1")]
    pub shadow: std::vec::Vec<u8>,
    #[prost(string, repeated, tag="2")]
    pub resources: ::std::vec::Vec<std::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Revoker {
    #[prost(bytes, tag="1")]
    pub identity: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Claim {
    #[prost(oneof="claim::Claim", tags="1, 2, 3, 4")]
    pub claim: ::std::option::Option<claim::Claim>,
}
pub mod claim {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Claim {
        #[prost(enumeration="super::ClaimOpt", tag="1")]
        Opt(i32),
        #[prost(message, tag="2")]
        One(super::ClaimOne),
        #[prost(message, tag="3")]
        All(super::ClaimAll),
        #[prost(message, tag="4")]
        Revoker(super::Revoker),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Certificate {
    #[prost(uint32, tag="1")]
    pub last_valid_epoch: u32,
    #[prost(bytes, tag="2")]
    pub identity: std::vec::Vec<u8>,
    #[prost(bytes, tag="3")]
    pub authority: std::vec::Vec<u8>,
    #[prost(uint64, tag="4")]
    pub serial: u64,
    #[prost(message, repeated, tag="5")]
    pub claims: ::std::vec::Vec<Claim>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CertificateRequest {
    #[prost(uint32, tag="1")]
    pub last_valid_epoch: u32,
    #[prost(bytes, tag="2")]
    pub identity: std::vec::Vec<u8>,
    #[prost(message, repeated, tag="3")]
    pub claims: ::std::vec::Vec<Claim>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Authorization {
    #[prost(string, tag="1")]
    pub identity: std::string::String,
    #[prost(string, tag="2")]
    pub resource: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthorizationList {
    #[prost(message, repeated, tag="1")]
    pub a: ::std::vec::Vec<Authorization>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ClaimOpt {
    Invalid = 0,
    Delegation = 1,
}