etcd: go.etcd.io/etcd/auth/authpb Index | Files

package authpb

import "go.etcd.io/etcd/auth/authpb"

Package authpb is a generated protocol buffer package.

It is generated from these files:

auth.proto

It has these top-level messages:

UserAddOptions
User
Permission
Role

Index

Package Files

auth.pb.go

Variables

var (
    ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowAuth   = fmt.Errorf("proto: integer overflow")
)
var Permission_Type_name = map[int32]string{
    0:  "READ",
    1:  "WRITE",
    2:  "READWRITE",
}
var Permission_Type_value = map[string]int32{
    "READ":      0,
    "WRITE":     1,
    "READWRITE": 2,
}

type Permission Uses

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"`
}

Permission is a single entity

func (*Permission) Descriptor Uses

func (*Permission) Descriptor() ([]byte, []int)

func (*Permission) Marshal Uses

func (m *Permission) Marshal() (dAtA []byte, err error)

func (*Permission) MarshalTo Uses

func (m *Permission) MarshalTo(dAtA []byte) (int, error)

func (*Permission) ProtoMessage Uses

func (*Permission) ProtoMessage()

func (*Permission) Reset Uses

func (m *Permission) Reset()

func (*Permission) Size Uses

func (m *Permission) Size() (n int)

func (*Permission) String Uses

func (m *Permission) String() string

func (*Permission) Unmarshal Uses

func (m *Permission) Unmarshal(dAtA []byte) error

type Permission_Type Uses

type Permission_Type int32
const (
    READ      Permission_Type = 0
    WRITE     Permission_Type = 1
    READWRITE Permission_Type = 2
)

func (Permission_Type) EnumDescriptor Uses

func (Permission_Type) EnumDescriptor() ([]byte, []int)

func (Permission_Type) String Uses

func (x Permission_Type) String() string

type Role Uses

type Role struct {
    Name          []byte        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    KeyPermission []*Permission `protobuf:"bytes,2,rep,name=keyPermission" json:"keyPermission,omitempty"`
}

Role is a single entry in the bucket authRoles

func (*Role) Descriptor Uses

func (*Role) Descriptor() ([]byte, []int)

func (*Role) Marshal Uses

func (m *Role) Marshal() (dAtA []byte, err error)

func (*Role) MarshalTo Uses

func (m *Role) MarshalTo(dAtA []byte) (int, error)

func (*Role) ProtoMessage Uses

func (*Role) ProtoMessage()

func (*Role) Reset Uses

func (m *Role) Reset()

func (*Role) Size Uses

func (m *Role) Size() (n int)

func (*Role) String Uses

func (m *Role) String() string

func (*Role) Unmarshal Uses

func (m *Role) Unmarshal(dAtA []byte) error

type User Uses

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" json:"roles,omitempty"`
    Options  *UserAddOptions `protobuf:"bytes,4,opt,name=options" json:"options,omitempty"`
}

User is a single entry in the bucket authUsers

func (*User) Descriptor Uses

func (*User) Descriptor() ([]byte, []int)

func (*User) Marshal Uses

func (m *User) Marshal() (dAtA []byte, err error)

func (*User) MarshalTo Uses

func (m *User) MarshalTo(dAtA []byte) (int, error)

func (*User) ProtoMessage Uses

func (*User) ProtoMessage()

func (*User) Reset Uses

func (m *User) Reset()

func (*User) Size Uses

func (m *User) Size() (n int)

func (*User) String Uses

func (m *User) String() string

func (*User) Unmarshal Uses

func (m *User) Unmarshal(dAtA []byte) error

type UserAddOptions Uses

type UserAddOptions struct {
    NoPassword bool `protobuf:"varint,1,opt,name=no_password,json=noPassword,proto3" json:"no_password,omitempty"`
}

func (*UserAddOptions) Descriptor Uses

func (*UserAddOptions) Descriptor() ([]byte, []int)

func (*UserAddOptions) Marshal Uses

func (m *UserAddOptions) Marshal() (dAtA []byte, err error)

func (*UserAddOptions) MarshalTo Uses

func (m *UserAddOptions) MarshalTo(dAtA []byte) (int, error)

func (*UserAddOptions) ProtoMessage Uses

func (*UserAddOptions) ProtoMessage()

func (*UserAddOptions) Reset Uses

func (m *UserAddOptions) Reset()

func (*UserAddOptions) Size Uses

func (m *UserAddOptions) Size() (n int)

func (*UserAddOptions) String Uses

func (m *UserAddOptions) String() string

func (*UserAddOptions) Unmarshal Uses

func (m *UserAddOptions) Unmarshal(dAtA []byte) error

Package authpb imports 5 packages (graph) and is imported by 28 packages. Updated 2019-06-02. Refresh now. Tools for package owners.