Authentication.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: Authentication.proto
  3. package pb
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. type TokenIdentifier_Kind int32
  12. const (
  13. TokenIdentifier_HBASE_AUTH_TOKEN TokenIdentifier_Kind = 0
  14. )
  15. var TokenIdentifier_Kind_name = map[int32]string{
  16. 0: "HBASE_AUTH_TOKEN",
  17. }
  18. var TokenIdentifier_Kind_value = map[string]int32{
  19. "HBASE_AUTH_TOKEN": 0,
  20. }
  21. func (x TokenIdentifier_Kind) Enum() *TokenIdentifier_Kind {
  22. p := new(TokenIdentifier_Kind)
  23. *p = x
  24. return p
  25. }
  26. func (x TokenIdentifier_Kind) String() string {
  27. return proto.EnumName(TokenIdentifier_Kind_name, int32(x))
  28. }
  29. func (x *TokenIdentifier_Kind) UnmarshalJSON(data []byte) error {
  30. value, err := proto.UnmarshalJSONEnum(TokenIdentifier_Kind_value, data, "TokenIdentifier_Kind")
  31. if err != nil {
  32. return err
  33. }
  34. *x = TokenIdentifier_Kind(value)
  35. return nil
  36. }
  37. func (TokenIdentifier_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{1, 0} }
  38. type AuthenticationKey struct {
  39. Id *int32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
  40. ExpirationDate *int64 `protobuf:"varint,2,req,name=expiration_date,json=expirationDate" json:"expiration_date,omitempty"`
  41. Key []byte `protobuf:"bytes,3,req,name=key" json:"key,omitempty"`
  42. XXX_unrecognized []byte `json:"-"`
  43. }
  44. func (m *AuthenticationKey) Reset() { *m = AuthenticationKey{} }
  45. func (m *AuthenticationKey) String() string { return proto.CompactTextString(m) }
  46. func (*AuthenticationKey) ProtoMessage() {}
  47. func (*AuthenticationKey) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
  48. func (m *AuthenticationKey) GetId() int32 {
  49. if m != nil && m.Id != nil {
  50. return *m.Id
  51. }
  52. return 0
  53. }
  54. func (m *AuthenticationKey) GetExpirationDate() int64 {
  55. if m != nil && m.ExpirationDate != nil {
  56. return *m.ExpirationDate
  57. }
  58. return 0
  59. }
  60. func (m *AuthenticationKey) GetKey() []byte {
  61. if m != nil {
  62. return m.Key
  63. }
  64. return nil
  65. }
  66. type TokenIdentifier struct {
  67. Kind *TokenIdentifier_Kind `protobuf:"varint,1,req,name=kind,enum=pb.TokenIdentifier_Kind" json:"kind,omitempty"`
  68. Username []byte `protobuf:"bytes,2,req,name=username" json:"username,omitempty"`
  69. KeyId *int32 `protobuf:"varint,3,req,name=key_id,json=keyId" json:"key_id,omitempty"`
  70. IssueDate *int64 `protobuf:"varint,4,opt,name=issue_date,json=issueDate" json:"issue_date,omitempty"`
  71. ExpirationDate *int64 `protobuf:"varint,5,opt,name=expiration_date,json=expirationDate" json:"expiration_date,omitempty"`
  72. SequenceNumber *int64 `protobuf:"varint,6,opt,name=sequence_number,json=sequenceNumber" json:"sequence_number,omitempty"`
  73. XXX_unrecognized []byte `json:"-"`
  74. }
  75. func (m *TokenIdentifier) Reset() { *m = TokenIdentifier{} }
  76. func (m *TokenIdentifier) String() string { return proto.CompactTextString(m) }
  77. func (*TokenIdentifier) ProtoMessage() {}
  78. func (*TokenIdentifier) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
  79. func (m *TokenIdentifier) GetKind() TokenIdentifier_Kind {
  80. if m != nil && m.Kind != nil {
  81. return *m.Kind
  82. }
  83. return TokenIdentifier_HBASE_AUTH_TOKEN
  84. }
  85. func (m *TokenIdentifier) GetUsername() []byte {
  86. if m != nil {
  87. return m.Username
  88. }
  89. return nil
  90. }
  91. func (m *TokenIdentifier) GetKeyId() int32 {
  92. if m != nil && m.KeyId != nil {
  93. return *m.KeyId
  94. }
  95. return 0
  96. }
  97. func (m *TokenIdentifier) GetIssueDate() int64 {
  98. if m != nil && m.IssueDate != nil {
  99. return *m.IssueDate
  100. }
  101. return 0
  102. }
  103. func (m *TokenIdentifier) GetExpirationDate() int64 {
  104. if m != nil && m.ExpirationDate != nil {
  105. return *m.ExpirationDate
  106. }
  107. return 0
  108. }
  109. func (m *TokenIdentifier) GetSequenceNumber() int64 {
  110. if m != nil && m.SequenceNumber != nil {
  111. return *m.SequenceNumber
  112. }
  113. return 0
  114. }
  115. // Serialization of the org.apache.hadoop.security.token.Token class
  116. // Note that this is a Hadoop class, so fields may change!
  117. type Token struct {
  118. // the TokenIdentifier in serialized form
  119. // Note: we can't use the protobuf directly because the Hadoop Token class
  120. // only stores the serialized bytes
  121. Identifier []byte `protobuf:"bytes,1,opt,name=identifier" json:"identifier,omitempty"`
  122. Password []byte `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
  123. Service []byte `protobuf:"bytes,3,opt,name=service" json:"service,omitempty"`
  124. XXX_unrecognized []byte `json:"-"`
  125. }
  126. func (m *Token) Reset() { *m = Token{} }
  127. func (m *Token) String() string { return proto.CompactTextString(m) }
  128. func (*Token) ProtoMessage() {}
  129. func (*Token) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
  130. func (m *Token) GetIdentifier() []byte {
  131. if m != nil {
  132. return m.Identifier
  133. }
  134. return nil
  135. }
  136. func (m *Token) GetPassword() []byte {
  137. if m != nil {
  138. return m.Password
  139. }
  140. return nil
  141. }
  142. func (m *Token) GetService() []byte {
  143. if m != nil {
  144. return m.Service
  145. }
  146. return nil
  147. }
  148. // RPC request & response messages
  149. type GetAuthenticationTokenRequest struct {
  150. XXX_unrecognized []byte `json:"-"`
  151. }
  152. func (m *GetAuthenticationTokenRequest) Reset() { *m = GetAuthenticationTokenRequest{} }
  153. func (m *GetAuthenticationTokenRequest) String() string { return proto.CompactTextString(m) }
  154. func (*GetAuthenticationTokenRequest) ProtoMessage() {}
  155. func (*GetAuthenticationTokenRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
  156. type GetAuthenticationTokenResponse struct {
  157. Token *Token `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
  158. XXX_unrecognized []byte `json:"-"`
  159. }
  160. func (m *GetAuthenticationTokenResponse) Reset() { *m = GetAuthenticationTokenResponse{} }
  161. func (m *GetAuthenticationTokenResponse) String() string { return proto.CompactTextString(m) }
  162. func (*GetAuthenticationTokenResponse) ProtoMessage() {}
  163. func (*GetAuthenticationTokenResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
  164. func (m *GetAuthenticationTokenResponse) GetToken() *Token {
  165. if m != nil {
  166. return m.Token
  167. }
  168. return nil
  169. }
  170. type WhoAmIRequest struct {
  171. XXX_unrecognized []byte `json:"-"`
  172. }
  173. func (m *WhoAmIRequest) Reset() { *m = WhoAmIRequest{} }
  174. func (m *WhoAmIRequest) String() string { return proto.CompactTextString(m) }
  175. func (*WhoAmIRequest) ProtoMessage() {}
  176. func (*WhoAmIRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
  177. type WhoAmIResponse struct {
  178. Username *string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
  179. AuthMethod *string `protobuf:"bytes,2,opt,name=auth_method,json=authMethod" json:"auth_method,omitempty"`
  180. XXX_unrecognized []byte `json:"-"`
  181. }
  182. func (m *WhoAmIResponse) Reset() { *m = WhoAmIResponse{} }
  183. func (m *WhoAmIResponse) String() string { return proto.CompactTextString(m) }
  184. func (*WhoAmIResponse) ProtoMessage() {}
  185. func (*WhoAmIResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
  186. func (m *WhoAmIResponse) GetUsername() string {
  187. if m != nil && m.Username != nil {
  188. return *m.Username
  189. }
  190. return ""
  191. }
  192. func (m *WhoAmIResponse) GetAuthMethod() string {
  193. if m != nil && m.AuthMethod != nil {
  194. return *m.AuthMethod
  195. }
  196. return ""
  197. }
  198. func init() {
  199. proto.RegisterType((*AuthenticationKey)(nil), "pb.AuthenticationKey")
  200. proto.RegisterType((*TokenIdentifier)(nil), "pb.TokenIdentifier")
  201. proto.RegisterType((*Token)(nil), "pb.Token")
  202. proto.RegisterType((*GetAuthenticationTokenRequest)(nil), "pb.GetAuthenticationTokenRequest")
  203. proto.RegisterType((*GetAuthenticationTokenResponse)(nil), "pb.GetAuthenticationTokenResponse")
  204. proto.RegisterType((*WhoAmIRequest)(nil), "pb.WhoAmIRequest")
  205. proto.RegisterType((*WhoAmIResponse)(nil), "pb.WhoAmIResponse")
  206. proto.RegisterEnum("pb.TokenIdentifier_Kind", TokenIdentifier_Kind_name, TokenIdentifier_Kind_value)
  207. }
  208. func init() { proto.RegisterFile("Authentication.proto", fileDescriptor1) }
  209. var fileDescriptor1 = []byte{
  210. // 497 bytes of a gzipped FileDescriptorProto
  211. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x51, 0x6f, 0x12, 0x41,
  212. 0x10, 0xc7, 0xbd, 0xa3, 0x87, 0x32, 0x45, 0xa0, 0x9b, 0xd6, 0x5c, 0x88, 0x2d, 0x78, 0x2f, 0x25,
  213. 0xc6, 0x9c, 0x09, 0xdf, 0x00, 0x62, 0x23, 0x48, 0x5a, 0xcd, 0x16, 0xe3, 0x93, 0x5e, 0x16, 0x6e,
  214. 0xda, 0xdb, 0x10, 0x76, 0xcf, 0xdb, 0x3d, 0x95, 0x47, 0xdf, 0xfc, 0x18, 0xbe, 0xfa, 0x2d, 0xcd,
  215. 0xee, 0x16, 0x04, 0x52, 0xfb, 0x76, 0xf3, 0x9b, 0xff, 0xcd, 0xfc, 0xff, 0x99, 0x2c, 0x1c, 0x0f,
  216. 0x4a, 0x9d, 0xa1, 0xd0, 0x7c, 0xce, 0x34, 0x97, 0x22, 0xce, 0x0b, 0xa9, 0x25, 0xf1, 0xf3, 0x59,
  217. 0xf4, 0x05, 0x8e, 0x76, 0x7b, 0x13, 0x5c, 0x91, 0x06, 0xf8, 0x3c, 0x0d, 0xbd, 0xae, 0xdf, 0x0b,
  218. 0xa8, 0xcf, 0x53, 0x72, 0x0e, 0x4d, 0xfc, 0x91, 0xf3, 0xc2, 0x0a, 0x92, 0x94, 0x69, 0x0c, 0xfd,
  219. 0xae, 0xdf, 0xab, 0xd0, 0xc6, 0x3f, 0xfc, 0x86, 0x69, 0x24, 0x2d, 0xa8, 0x2c, 0x70, 0x15, 0x56,
  220. 0xba, 0x7e, 0xaf, 0x4e, 0xcd, 0x67, 0xf4, 0xd3, 0x87, 0xe6, 0x54, 0x2e, 0x50, 0x8c, 0x53, 0xb3,
  221. 0xe3, 0x86, 0x63, 0x41, 0x5e, 0xc1, 0xc1, 0x82, 0x0b, 0xb7, 0xa0, 0xd1, 0x0f, 0xe3, 0x7c, 0x16,
  222. 0xef, 0x49, 0xe2, 0x09, 0x17, 0x29, 0xb5, 0x2a, 0xd2, 0x86, 0x27, 0xa5, 0xc2, 0x42, 0xb0, 0xa5,
  223. 0xdb, 0x5a, 0xa7, 0x9b, 0x9a, 0x9c, 0x40, 0x75, 0x81, 0xab, 0x84, 0xa7, 0x76, 0x65, 0x40, 0x83,
  224. 0x05, 0xae, 0xc6, 0x29, 0x39, 0x05, 0xe0, 0x4a, 0x95, 0xe8, 0xac, 0x1e, 0x74, 0xbd, 0x5e, 0x85,
  225. 0xd6, 0x2c, 0xb1, 0x2e, 0xef, 0x89, 0x13, 0x58, 0xcd, 0x7e, 0x9c, 0x73, 0x68, 0x2a, 0xfc, 0x5a,
  226.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0xf2,
  237. 0xc1, 0xe4, 0xed, 0xe8, 0x21, 0xc9, 0x9d, 0xef, 0xd7, 0x50, 0x75, 0x49, 0xc8, 0x91, 0x51, 0xef,
  238. 0xc4, 0x6c, 0x93, 0x6d, 0xe4, 0x7e, 0x18, 0xbe, 0x83, 0x97, 0xb2, 0xb8, 0x8d, 0x59, 0xce, 0xe6,
  239. 0x19, 0xc6, 0x19, 0x4b, 0xa5, 0xcc, 0xe3, 0x6c, 0xc6, 0x14, 0xba, 0x77, 0x35, 0x2b, 0x6f, 0xe2,
  240. 0x5b, 0x14, 0x58, 0x30, 0x8d, 0xe9, 0x70, 0xef, 0xe9, 0x7d, 0x30, 0x0a, 0x35, 0xf2, 0x7e, 0x79,
  241. 0xde, 0x6f, 0xcf, 0xfb, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x0e, 0xa0, 0x34, 0x67, 0x99, 0x03, 0x00,
  242. 0x00,
  243. }