github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/support_libraries/secret_disclosure_support/directive.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: directive.proto 3 // DO NOT EDIT! 4 5 /* 6 Package secret_disclosure is a generated protocol buffer package. 7 8 It is generated from these files: 9 directive.proto 10 11 It has these top-level messages: 12 DirectiveMessage 13 */ 14 package secret_disclosure 15 16 import proto "github.com/golang/protobuf/proto" 17 import fmt "fmt" 18 import math "math" 19 20 // Reference imports to suppress errors if they are not otherwise used. 21 var _ = proto.Marshal 22 var _ = fmt.Errorf 23 var _ = math.Inf 24 25 // This is a compile-time assertion to ensure that this generated file 26 // is compatible with the proto package it is being compiled against. 27 // A compilation error at this line likely means your copy of the 28 // proto package needs to be updated. 29 // const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 30 31 // As of now, the only type supported is "secret_disclosure". 32 type DirectiveMessageDirectiveType int32 33 34 const ( 35 DirectiveMessage_SECRET_DISCLOSURE DirectiveMessageDirectiveType = 1 36 ) 37 38 var DirectiveMessageDirectiveType_name = map[int32]string{ 39 1: "SECRET_DISCLOSURE", 40 } 41 var DirectiveMessageDirectiveType_value = map[string]int32{ 42 "SECRET_DISCLOSURE": 1, 43 } 44 45 func (x DirectiveMessageDirectiveType) Enum() *DirectiveMessageDirectiveType { 46 p := new(DirectiveMessageDirectiveType) 47 *p = x 48 return p 49 } 50 func (x DirectiveMessageDirectiveType) String() string { 51 return proto.EnumName(DirectiveMessageDirectiveType_name, int32(x)) 52 } 53 func (x *DirectiveMessageDirectiveType) UnmarshalJSON(data []byte) error { 54 value, err := proto.UnmarshalJSONEnum(DirectiveMessageDirectiveType_value, data, "DirectiveMessageDirectiveType") 55 if err != nil { 56 return err 57 } 58 *x = DirectiveMessageDirectiveType(value) 59 return nil 60 } 61 func (DirectiveMessageDirectiveType) EnumDescriptor() ([]byte, []int) { 62 return fileDescriptor0, []int{0, 0} 63 } 64 65 type DirectiveMessage struct { 66 Type *DirectiveMessageDirectiveType `protobuf:"varint,1,opt,name=type,enum=secret_disclosure.DirectiveMessageDirectiveType" json:"type,omitempty"` 67 // A serialized statement. This is serialized using cloudproxy/tao/auth.Marshal(). 68 // 69 // The statement corresponding to type "key_disclosure" must be of the form: 70 // policy_key says program_name can read (secret_name, epoch). 71 SerializedStatement []byte `protobuf:"bytes,2,opt,name=serialized_statement" json:"serialized_statement,omitempty"` 72 // The signer's public key principal, encoded using clouddproxy/tao/auth.Marshal(). 73 Signer []byte `protobuf:"bytes,3,opt,name=signer" json:"signer,omitempty"` 74 // Signature over the serialized statement. 75 Signature []byte `protobuf:"bytes,4,opt,name=signature" json:"signature,omitempty"` 76 // Program certificate, to be used in case signer is a program key. 77 Cert []byte `protobuf:"bytes,5,opt,name=cert" json:"cert,omitempty"` 78 XXX_unrecognized []byte `json:"-"` 79 } 80 81 func (m *DirectiveMessage) Reset() { *m = DirectiveMessage{} } 82 func (m *DirectiveMessage) String() string { return proto.CompactTextString(m) } 83 func (*DirectiveMessage) ProtoMessage() {} 84 func (*DirectiveMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } 85 86 func (m *DirectiveMessage) GetType() DirectiveMessageDirectiveType { 87 if m != nil && m.Type != nil { 88 return *m.Type 89 } 90 return DirectiveMessage_SECRET_DISCLOSURE 91 } 92 93 func (m *DirectiveMessage) GetSerializedStatement() []byte { 94 if m != nil { 95 return m.SerializedStatement 96 } 97 return nil 98 } 99 100 func (m *DirectiveMessage) GetSigner() []byte { 101 if m != nil { 102 return m.Signer 103 } 104 return nil 105 } 106 107 func (m *DirectiveMessage) GetSignature() []byte { 108 if m != nil { 109 return m.Signature 110 } 111 return nil 112 } 113 114 func (m *DirectiveMessage) GetCert() []byte { 115 if m != nil { 116 return m.Cert 117 } 118 return nil 119 } 120 121 func init() { 122 proto.RegisterType((*DirectiveMessage)(nil), "secret_disclosure.directive_message") 123 proto.RegisterEnum("secret_disclosure.DirectiveMessageDirectiveType", DirectiveMessageDirectiveType_name, DirectiveMessageDirectiveType_value) 124 } 125 126 var fileDescriptor0 = []byte{ 127 // 196 bytes of a gzipped FileDescriptorProto 128 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x4f, 0xc9, 0x2c, 0x4a, 129 0x4d, 0x2e, 0xc9, 0x2c, 0x4b, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x2c, 0x4e, 0x4d, 130 0x2e, 0x4a, 0x2d, 0x89, 0x4f, 0xc9, 0x2c, 0x4e, 0xce, 0xc9, 0x2f, 0x2e, 0x2d, 0x4a, 0x55, 0x3a, 131 0xc7, 0xc8, 0x25, 0x08, 0x57, 0x16, 0x9f, 0x9b, 0x5a, 0x5c, 0x9c, 0x98, 0x9e, 0x2a, 0xe4, 0xc8, 132 0xc5, 0x52, 0x52, 0x59, 0x90, 0x2a, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x67, 0x64, 0xac, 0x87, 0xa1, 133 0x4f, 0x0f, 0x43, 0x0f, 0x92, 0x08, 0x48, 0xab, 0x90, 0x0c, 0x97, 0x48, 0x71, 0x6a, 0x51, 0x66, 134 0x62, 0x4e, 0x66, 0x55, 0x6a, 0x4a, 0x7c, 0x71, 0x49, 0x62, 0x49, 0x6a, 0x6e, 0x6a, 0x5e, 0x89, 135 0x04, 0x13, 0xd0, 0x48, 0x1e, 0x21, 0x3e, 0x2e, 0xb6, 0xe2, 0xcc, 0xf4, 0xbc, 0xd4, 0x22, 0x09, 136 0x66, 0x30, 0x5f, 0x90, 0x8b, 0x13, 0xc4, 0x4f, 0x2c, 0x01, 0x9a, 0x2d, 0xc1, 0x02, 0x16, 0xe2, 137 0xe1, 0x62, 0x49, 0x4e, 0x2d, 0x2a, 0x91, 0x60, 0x05, 0xf1, 0x94, 0xd4, 0xb9, 0xf8, 0xd0, 0x2c, 138 0x10, 0xe5, 0x12, 0x0c, 0x76, 0x75, 0x0e, 0x72, 0x0d, 0x89, 0x77, 0xf1, 0x0c, 0x76, 0xf6, 0xf1, 139 0x0f, 0x0e, 0x0d, 0x72, 0x15, 0x60, 0x04, 0x04, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x72, 0xc2, 0x3a, 140 0xf5, 0x00, 0x00, 0x00, 141 }