Documentation ¶
Index ¶
- Variables
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)
- func (m *Permission) Marshal() (dAtA []byte, err error)
- func (m *Permission) MarshalTo(dAtA []byte) (int, error)
- func (m *Permission) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Permission) ProtoMessage()
- func (m *Permission) Reset()
- func (m *Permission) Size() (n int)
- func (m *Permission) String() string
- func (m *Permission) Unmarshal(dAtA []byte) error
- func (m *Permission) XXX_DiscardUnknown()
- func (m *Permission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Permission) XXX_Merge(src proto.Message)
- func (m *Permission) XXX_Size() int
- func (m *Permission) XXX_Unmarshal(b []byte) error
- type Permission_Type
- type Role
- func (*Role) Descriptor() ([]byte, []int)
- func (m *Role) Marshal() (dAtA []byte, err error)
- func (m *Role) MarshalTo(dAtA []byte) (int, error)
- func (m *Role) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Role) ProtoMessage()
- func (m *Role) Reset()
- func (m *Role) Size() (n int)
- func (m *Role) String() string
- func (m *Role) Unmarshal(dAtA []byte) error
- func (m *Role) XXX_DiscardUnknown()
- func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Role) XXX_Merge(src proto.Message)
- func (m *Role) XXX_Size() int
- func (m *Role) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) Marshal() (dAtA []byte, err error)
- func (m *User) MarshalTo(dAtA []byte) (int, error)
- func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) Size() (n int)
- func (m *User) String() string
- func (m *User) Unmarshal(dAtA []byte) error
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserAddOptions
- func (*UserAddOptions) Descriptor() ([]byte, []int)
- func (m *UserAddOptions) Marshal() (dAtA []byte, err error)
- func (m *UserAddOptions) MarshalTo(dAtA []byte) (int, error)
- func (m *UserAddOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserAddOptions) ProtoMessage()
- func (m *UserAddOptions) Reset()
- func (m *UserAddOptions) Size() (n int)
- func (m *UserAddOptions) String() string
- func (m *UserAddOptions) Unmarshal(dAtA []byte) error
- func (m *UserAddOptions) XXX_DiscardUnknown()
- func (m *UserAddOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserAddOptions) XXX_Merge(src proto.Message)
- func (m *UserAddOptions) XXX_Size() int
- func (m *UserAddOptions) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAuth = fmt.Errorf("proto: unexpected end of group") )
View Source
var Permission_Type_name = map[int32]string{
0: "READ",
1: "WRITE",
2: "READWRITE",
}
View Source
var Permission_Type_value = map[string]int32{
"READ": 0,
"WRITE": 1,
"READWRITE": 2,
}
Functions ¶
This section is empty.
Types ¶
type Permission ¶
type Permission struct { PermType Permission_Type `protobuf:"varint,1,opt,name=permType,proto3,enum=authpb.Permission_Type" json:"permType,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Permission is a single entity
func (*Permission) Descriptor ¶
func (*Permission) Descriptor() ([]byte, []int)
func (*Permission) Marshal ¶
func (m *Permission) Marshal() (dAtA []byte, err error)
func (*Permission) MarshalToSizedBuffer ¶
func (m *Permission) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Permission) ProtoMessage ¶
func (*Permission) ProtoMessage()
func (*Permission) Reset ¶
func (m *Permission) Reset()
func (*Permission) Size ¶
func (m *Permission) Size() (n int)
func (*Permission) String ¶
func (m *Permission) String() string
func (*Permission) Unmarshal ¶
func (m *Permission) Unmarshal(dAtA []byte) error
func (*Permission) XXX_DiscardUnknown ¶
func (m *Permission) XXX_DiscardUnknown()
func (*Permission) XXX_Marshal ¶
func (m *Permission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Permission) XXX_Merge ¶
func (m *Permission) XXX_Merge(src proto.Message)
func (*Permission) XXX_Size ¶
func (m *Permission) XXX_Size() int
func (*Permission) XXX_Unmarshal ¶
func (m *Permission) XXX_Unmarshal(b []byte) error
type Permission_Type ¶
type Permission_Type int32
const ( READ Permission_Type = 0 WRITE Permission_Type = 1 READWRITE Permission_Type = 2 )
func (Permission_Type) EnumDescriptor ¶
func (Permission_Type) EnumDescriptor() ([]byte, []int)
func (Permission_Type) String ¶
func (x Permission_Type) String() string
type Role ¶
type Role struct { Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` KeyPermission []*Permission `protobuf:"bytes,2,rep,name=keyPermission,proto3" json:"keyPermission,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Role is a single entry in the bucket authRoles
func (*Role) Descriptor ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) XXX_DiscardUnknown ¶
func (m *Role) XXX_DiscardUnknown()
func (*Role) XXX_Unmarshal ¶
type User ¶
type User struct { Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password []byte `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` Options *UserAddOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
User is a single entry in the bucket authUsers
func (*User) Descriptor ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserAddOptions ¶
type UserAddOptions struct { NoPassword bool `protobuf:"varint,1,opt,name=no_password,json=noPassword,proto3" json:"no_password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserAddOptions) Descriptor ¶
func (*UserAddOptions) Descriptor() ([]byte, []int)
func (*UserAddOptions) Marshal ¶
func (m *UserAddOptions) Marshal() (dAtA []byte, err error)
func (*UserAddOptions) MarshalToSizedBuffer ¶
func (m *UserAddOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserAddOptions) ProtoMessage ¶
func (*UserAddOptions) ProtoMessage()
func (*UserAddOptions) Reset ¶
func (m *UserAddOptions) Reset()
func (*UserAddOptions) Size ¶
func (m *UserAddOptions) Size() (n int)
func (*UserAddOptions) String ¶
func (m *UserAddOptions) String() string
func (*UserAddOptions) Unmarshal ¶
func (m *UserAddOptions) Unmarshal(dAtA []byte) error
func (*UserAddOptions) XXX_DiscardUnknown ¶
func (m *UserAddOptions) XXX_DiscardUnknown()
func (*UserAddOptions) XXX_Marshal ¶
func (m *UserAddOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserAddOptions) XXX_Merge ¶
func (m *UserAddOptions) XXX_Merge(src proto.Message)
func (*UserAddOptions) XXX_Size ¶
func (m *UserAddOptions) XXX_Size() int
func (*UserAddOptions) XXX_Unmarshal ¶
func (m *UserAddOptions) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.