123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: Authentication.proto
- package pb
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- type TokenIdentifier_Kind int32
- const (
- TokenIdentifier_HBASE_AUTH_TOKEN TokenIdentifier_Kind = 0
- )
- var TokenIdentifier_Kind_name = map[int32]string{
- 0: "HBASE_AUTH_TOKEN",
- }
- var TokenIdentifier_Kind_value = map[string]int32{
- "HBASE_AUTH_TOKEN": 0,
- }
- func (x TokenIdentifier_Kind) Enum() *TokenIdentifier_Kind {
- p := new(TokenIdentifier_Kind)
- *p = x
- return p
- }
- func (x TokenIdentifier_Kind) String() string {
- return proto.EnumName(TokenIdentifier_Kind_name, int32(x))
- }
- func (x *TokenIdentifier_Kind) UnmarshalJSON(data []byte) error {
- value, err := proto.UnmarshalJSONEnum(TokenIdentifier_Kind_value, data, "TokenIdentifier_Kind")
- if err != nil {
- return err
- }
- *x = TokenIdentifier_Kind(value)
- return nil
- }
- func (TokenIdentifier_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{1, 0} }
- type AuthenticationKey struct {
- Id *int32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
- ExpirationDate *int64 `protobuf:"varint,2,req,name=expiration_date,json=expirationDate" json:"expiration_date,omitempty"`
- Key []byte `protobuf:"bytes,3,req,name=key" json:"key,omitempty"`
- XXX_unrecognized []byte `json:"-"`
- }
- func (m *AuthenticationKey) Reset() { *m = AuthenticationKey{} }
- func (m *AuthenticationKey) String() string { return proto.CompactTextString(m) }
- func (*AuthenticationKey) ProtoMessage() {}
- func (*AuthenticationKey) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
- func (m *AuthenticationKey) GetId() int32 {
- if m != nil && m.Id != nil {
- return *m.Id
- }
- return 0
- }
- func (m *AuthenticationKey) GetExpirationDate() int64 {
- if m != nil && m.ExpirationDate != nil {
- return *m.ExpirationDate
- }
- return 0
- }
- func (m *AuthenticationKey) GetKey() []byte {
- if m != nil {
- return m.Key
- }
- return nil
- }
- type TokenIdentifier struct {
- Kind *TokenIdentifier_Kind `protobuf:"varint,1,req,name=kind,enum=pb.TokenIdentifier_Kind" json:"kind,omitempty"`
- Username []byte `protobuf:"bytes,2,req,name=username" json:"username,omitempty"`
- KeyId *int32 `protobuf:"varint,3,req,name=key_id,json=keyId" json:"key_id,omitempty"`
- IssueDate *int64 `protobuf:"varint,4,opt,name=issue_date,json=issueDate" json:"issue_date,omitempty"`
- ExpirationDate *int64 `protobuf:"varint,5,opt,name=expiration_date,json=expirationDate" json:"expiration_date,omitempty"`
- SequenceNumber *int64 `protobuf:"varint,6,opt,name=sequence_number,json=sequenceNumber" json:"sequence_number,omitempty"`
- XXX_unrecognized []byte `json:"-"`
- }
- func (m *TokenIdentifier) Reset() { *m = TokenIdentifier{} }
- func (m *TokenIdentifier) String() string { return proto.CompactTextString(m) }
- func (*TokenIdentifier) ProtoMessage() {}
- func (*TokenIdentifier) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
- func (m *TokenIdentifier) GetKind() TokenIdentifier_Kind {
- if m != nil && m.Kind != nil {
- return *m.Kind
- }
- return TokenIdentifier_HBASE_AUTH_TOKEN
- }
- func (m *TokenIdentifier) GetUsername() []byte {
- if m != nil {
- return m.Username
- }
- return nil
- }
- func (m *TokenIdentifier) GetKeyId() int32 {
- if m != nil && m.KeyId != nil {
- return *m.KeyId
- }
- return 0
- }
- func (m *TokenIdentifier) GetIssueDate() int64 {
- if m != nil && m.IssueDate != nil {
- return *m.IssueDate
- }
- return 0
- }
- func (m *TokenIdentifier) GetExpirationDate() int64 {
- if m != nil && m.ExpirationDate != nil {
- return *m.ExpirationDate
- }
- return 0
- }
- func (m *TokenIdentifier) GetSequenceNumber() int64 {
- if m != nil && m.SequenceNumber != nil {
- return *m.SequenceNumber
- }
- return 0
- }
- // Serialization of the org.apache.hadoop.security.token.Token class
- // Note that this is a Hadoop class, so fields may change!
- type Token struct {
- // the TokenIdentifier in serialized form
- // Note: we can't use the protobuf directly because the Hadoop Token class
- // only stores the serialized bytes
- Identifier []byte `protobuf:"bytes,1,opt,name=identifier" json:"identifier,omitempty"`
- Password []byte `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
- Service []byte `protobuf:"bytes,3,opt,name=service" json:"service,omitempty"`
- XXX_unrecognized []byte `json:"-"`
- }
- func (m *Token) Reset() { *m = Token{} }
- func (m *Token) String() string { return proto.CompactTextString(m) }
- func (*Token) ProtoMessage() {}
- func (*Token) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
- func (m *Token) GetIdentifier() []byte {
- if m != nil {
- return m.Identifier
- }
- return nil
- }
- func (m *Token) GetPassword() []byte {
- if m != nil {
- return m.Password
- }
- return nil
- }
- func (m *Token) GetService() []byte {
- if m != nil {
- return m.Service
- }
- return nil
- }
- // RPC request & response messages
- type GetAuthenticationTokenRequest struct {
- XXX_unrecognized []byte `json:"-"`
- }
- func (m *GetAuthenticationTokenRequest) Reset() { *m = GetAuthenticationTokenRequest{} }
- func (m *GetAuthenticationTokenRequest) String() string { return proto.CompactTextString(m) }
- func (*GetAuthenticationTokenRequest) ProtoMessage() {}
- func (*GetAuthenticationTokenRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
- type GetAuthenticationTokenResponse struct {
- Token *Token `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
- XXX_unrecognized []byte `json:"-"`
- }
- func (m *GetAuthenticationTokenResponse) Reset() { *m = GetAuthenticationTokenResponse{} }
- func (m *GetAuthenticationTokenResponse) String() string { return proto.CompactTextString(m) }
- func (*GetAuthenticationTokenResponse) ProtoMessage() {}
- func (*GetAuthenticationTokenResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
- func (m *GetAuthenticationTokenResponse) GetToken() *Token {
- if m != nil {
- return m.Token
- }
- return nil
- }
- type WhoAmIRequest struct {
- XXX_unrecognized []byte `json:"-"`
- }
- func (m *WhoAmIRequest) Reset() { *m = WhoAmIRequest{} }
- func (m *WhoAmIRequest) String() string { return proto.CompactTextString(m) }
- func (*WhoAmIRequest) ProtoMessage() {}
- func (*WhoAmIRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
- type WhoAmIResponse struct {
- Username *string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
- AuthMethod *string `protobuf:"bytes,2,opt,name=auth_method,json=authMethod" json:"auth_method,omitempty"`
- XXX_unrecognized []byte `json:"-"`
- }
- func (m *WhoAmIResponse) Reset() { *m = WhoAmIResponse{} }
- func (m *WhoAmIResponse) String() string { return proto.CompactTextString(m) }
- func (*WhoAmIResponse) ProtoMessage() {}
- func (*WhoAmIResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
- func (m *WhoAmIResponse) GetUsername() string {
- if m != nil && m.Username != nil {
- return *m.Username
- }
- return ""
- }
- func (m *WhoAmIResponse) GetAuthMethod() string {
- if m != nil && m.AuthMethod != nil {
- return *m.AuthMethod
- }
- return ""
- }
- func init() {
- proto.RegisterType((*AuthenticationKey)(nil), "pb.AuthenticationKey")
- proto.RegisterType((*TokenIdentifier)(nil), "pb.TokenIdentifier")
- proto.RegisterType((*Token)(nil), "pb.Token")
- proto.RegisterType((*GetAuthenticationTokenRequest)(nil), "pb.GetAuthenticationTokenRequest")
- proto.RegisterType((*GetAuthenticationTokenResponse)(nil), "pb.GetAuthenticationTokenResponse")
- proto.RegisterType((*WhoAmIRequest)(nil), "pb.WhoAmIRequest")
- proto.RegisterType((*WhoAmIResponse)(nil), "pb.WhoAmIResponse")
- proto.RegisterEnum("pb.TokenIdentifier_Kind", TokenIdentifier_Kind_name, TokenIdentifier_Kind_value)
- }
- func init() { proto.RegisterFile("Authentication.proto", fileDescriptor1) }
- var fileDescriptor1 = []byte{
- // 497 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x51, 0x6f, 0x12, 0x41,
- 0x10, 0xc7, 0xbd, 0xa3, 0x87, 0x32, 0x45, 0xa0, 0x9b, 0xd6, 0x5c, 0x88, 0x2d, 0x78, 0x2f, 0x25,
- 0xc6, 0x9c, 0x09, 0xdf, 0x00, 0x62, 0x23, 0x48, 0x5a, 0xcd, 0x16, 0xe3, 0x93, 0x5e, 0x16, 0x6e,
- 0xda, 0xdb, 0x10, 0x76, 0xcf, 0xdb, 0x3d, 0x95, 0x47, 0xdf, 0xfc, 0x18, 0xbe, 0xfa, 0x2d, 0xcd,
- 0xee, 0x16, 0x04, 0x52, 0xfb, 0x76, 0xf3, 0x9b, 0xff, 0xcd, 0xfc, 0xff, 0x99, 0x2c, 0x1c, 0x0f,
- 0x4a, 0x9d, 0xa1, 0xd0, 0x7c, 0xce, 0x34, 0x97, 0x22, 0xce, 0x0b, 0xa9, 0x25, 0xf1, 0xf3, 0x59,
- 0xf4, 0x05, 0x8e, 0x76, 0x7b, 0x13, 0x5c, 0x91, 0x06, 0xf8, 0x3c, 0x0d, 0xbd, 0xae, 0xdf, 0x0b,
- 0xa8, 0xcf, 0x53, 0x72, 0x0e, 0x4d, 0xfc, 0x91, 0xf3, 0xc2, 0x0a, 0x92, 0x94, 0x69, 0x0c, 0xfd,
- 0xae, 0xdf, 0xab, 0xd0, 0xc6, 0x3f, 0xfc, 0x86, 0x69, 0x24, 0x2d, 0xa8, 0x2c, 0x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