github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/tao/ca.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: ca.proto 3 // DO NOT EDIT! 4 5 package tao 6 7 import proto "github.com/golang/protobuf/proto" 8 import fmt "fmt" 9 import math "math" 10 11 // Reference imports to suppress errors if they are not otherwise used. 12 var _ = proto.Marshal 13 var _ = fmt.Errorf 14 var _ = math.Inf 15 16 type CAType int32 17 18 const ( 19 CAType_ERROR CAType = 0 20 CAType_ATTESTATION CAType = 1 21 CAType_DATALOG_POLICY CAType = 2 22 CAType_ACL_POLICY CAType = 3 23 CAType_UNDEFINED CAType = 4 24 ) 25 26 var CAType_name = map[int32]string{ 27 0: "ERROR", 28 1: "ATTESTATION", 29 2: "DATALOG_POLICY", 30 3: "ACL_POLICY", 31 4: "UNDEFINED", 32 } 33 var CAType_value = map[string]int32{ 34 "ERROR": 0, 35 "ATTESTATION": 1, 36 "DATALOG_POLICY": 2, 37 "ACL_POLICY": 3, 38 "UNDEFINED": 4, 39 } 40 41 func (x CAType) Enum() *CAType { 42 p := new(CAType) 43 *p = x 44 return p 45 } 46 func (x CAType) String() string { 47 return proto.EnumName(CAType_name, int32(x)) 48 } 49 func (x *CAType) UnmarshalJSON(data []byte) error { 50 value, err := proto.UnmarshalJSONEnum(CAType_value, data, "CAType") 51 if err != nil { 52 return err 53 } 54 *x = CAType(value) 55 return nil 56 } 57 func (CAType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0} } 58 59 type CARequest struct { 60 Type *CAType `protobuf:"varint,1,req,name=type,enum=tao.CAType" json:"type,omitempty"` 61 Attestation *Attestation `protobuf:"bytes,2,opt,name=attestation" json:"attestation,omitempty"` 62 XXX_unrecognized []byte `json:"-"` 63 } 64 65 func (m *CARequest) Reset() { *m = CARequest{} } 66 func (m *CARequest) String() string { return proto.CompactTextString(m) } 67 func (*CARequest) ProtoMessage() {} 68 func (*CARequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} } 69 70 func (m *CARequest) GetType() CAType { 71 if m != nil && m.Type != nil { 72 return *m.Type 73 } 74 return CAType_ERROR 75 } 76 77 func (m *CARequest) GetAttestation() *Attestation { 78 if m != nil { 79 return m.Attestation 80 } 81 return nil 82 } 83 84 type CAResponse struct { 85 Type *CAType `protobuf:"varint,1,req,name=type,enum=tao.CAType" json:"type,omitempty"` 86 Attestation *Attestation `protobuf:"bytes,2,opt,name=attestation" json:"attestation,omitempty"` 87 SignedDatalogRules *SignedDatalogRules `protobuf:"bytes,3,opt,name=signed_datalog_rules" json:"signed_datalog_rules,omitempty"` 88 SignedAclSet *SignedACLSet `protobuf:"bytes,4,opt,name=signed_acl_set" json:"signed_acl_set,omitempty"` 89 XXX_unrecognized []byte `json:"-"` 90 } 91 92 func (m *CAResponse) Reset() { *m = CAResponse{} } 93 func (m *CAResponse) String() string { return proto.CompactTextString(m) } 94 func (*CAResponse) ProtoMessage() {} 95 func (*CAResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} } 96 97 func (m *CAResponse) GetType() CAType { 98 if m != nil && m.Type != nil { 99 return *m.Type 100 } 101 return CAType_ERROR 102 } 103 104 func (m *CAResponse) GetAttestation() *Attestation { 105 if m != nil { 106 return m.Attestation 107 } 108 return nil 109 } 110 111 func (m *CAResponse) GetSignedDatalogRules() *SignedDatalogRules { 112 if m != nil { 113 return m.SignedDatalogRules 114 } 115 return nil 116 } 117 118 func (m *CAResponse) GetSignedAclSet() *SignedACLSet { 119 if m != nil { 120 return m.SignedAclSet 121 } 122 return nil 123 } 124 125 func init() { 126 proto.RegisterType((*CARequest)(nil), "tao.CARequest") 127 proto.RegisterType((*CAResponse)(nil), "tao.CAResponse") 128 proto.RegisterEnum("tao.CAType", CAType_name, CAType_value) 129 } 130 131 var fileDescriptor2 = []byte{ 132 // 277 bytes of a gzipped FileDescriptorProto 133 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0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0d, 145 0x07, 0x0b, 0x26, 0x1d, 0x7d, 0x2c, 0x2c, 0x67, 0x05, 0xec, 0x45, 0x19, 0x93, 0x8f, 0x1f, 0x70, 146 0x31, 0xad, 0x64, 0xc0, 0x79, 0x90, 0xa6, 0x49, 0x6a, 0x9f, 0xa1, 0x05, 0x98, 0x98, 0x90, 0x20, 147 0x23, 0x98, 0x84, 0x49, 0x6c, 0x2b, 0x08, 0x81, 0xe5, 0x63, 0x82, 0xa3, 0xe4, 0x25, 0x7f, 0x4b, 148 0xa2, 0xd0, 0xfb, 0xb4, 0x55, 0x64, 0x01, 0xf4, 0x8e, 0xd3, 0x5b, 0x43, 0x57, 0x60, 0xbc, 0xc7, 149 0x7e, 0xf0, 0x1c, 0xc6, 0x81, 0x6f, 0xeb, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf7, 0xbb, 0x55, 150 0x2a, 0xa3, 0x01, 0x00, 0x00, 151 }