Documentation ¶
Index ¶
- Variables
- type Action
- type AuthCEL
- func (*AuthCEL) Descriptor() ([]byte, []int)
- func (m *AuthCEL) GetEmail() string
- func (m *AuthCEL) GetGroup() string
- func (m *AuthCEL) GetScope() []string
- func (m *AuthCEL) GetUid() string
- func (m *AuthCEL) GetValidated() bool
- func (*AuthCEL) ProtoMessage()
- func (m *AuthCEL) Reset()
- func (m *AuthCEL) String() string
- func (m *AuthCEL) XXX_DiscardUnknown()
- func (m *AuthCEL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthCEL) XXX_Merge(src proto.Message)
- func (m *AuthCEL) XXX_Size() int
- func (m *AuthCEL) XXX_Unmarshal(b []byte) error
- type BulkOptions
- type Conditions
- func (*Conditions) Descriptor() ([]byte, []int)
- func (m *Conditions) GetItems() []*any.Any
- func (*Conditions) ProtoMessage()
- func (m *Conditions) Reset()
- func (m *Conditions) String() string
- func (m *Conditions) XXX_DiscardUnknown()
- func (m *Conditions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Conditions) XXX_Merge(src proto.Message)
- func (m *Conditions) XXX_Size() int
- func (m *Conditions) XXX_Unmarshal(b []byte) error
- type Data
- type DataCEL
- func (*DataCEL) Descriptor() ([]byte, []int)
- func (m *DataCEL) GetCol() string
- func (m *DataCEL) GetCreator() string
- func (m *DataCEL) GetId() string
- func (*DataCEL) ProtoMessage()
- func (m *DataCEL) Reset()
- func (m *DataCEL) String() string
- func (m *DataCEL) XXX_DiscardUnknown()
- func (m *DataCEL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataCEL) XXX_Merge(src proto.Message)
- func (m *DataCEL) XXX_Size() int
- func (m *DataCEL) XXX_Unmarshal(b []byte) error
- type DataCursor
- type DataList
- type DataOptions
- type DeleteOptions
- type GetDataOptions
- type Graft
- type GraftCEL
- func (*GraftCEL) Descriptor() ([]byte, []int)
- func (m *GraftCEL) GetCol() string
- func (m *GraftCEL) GetCreatedAt() int64
- func (m *GraftCEL) GetCreator() string
- func (m *GraftCEL) GetDid() string
- func (m *GraftCEL) GetId() string
- func (*GraftCEL) ProtoMessage()
- func (m *GraftCEL) Reset()
- func (m *GraftCEL) String() string
- func (m *GraftCEL) XXX_DiscardUnknown()
- func (m *GraftCEL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GraftCEL) XXX_Merge(src proto.Message)
- func (m *GraftCEL) XXX_Size() int
- func (m *GraftCEL) XXX_Unmarshal(b []byte) error
- type GraftCursor
- type GraftInfo
- type GraftList
- type IDFilter
- type IDFilterFunc
- type Info
- type ListOptions
- type OperationParams
- func (*OperationParams) Descriptor() ([]byte, []int)
- func (m *OperationParams) GetFunc() string
- func (m *OperationParams) GetPath() string
- func (m *OperationParams) GetValue() string
- func (*OperationParams) ProtoMessage()
- func (m *OperationParams) Reset()
- func (m *OperationParams) String() string
- func (m *OperationParams) XXX_DiscardUnknown()
- func (m *OperationParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OperationParams) XXX_Merge(src proto.Message)
- func (m *OperationParams) XXX_Size() int
- func (m *OperationParams) XXX_Unmarshal(b []byte) error
- type PatchOptions
- type PermCEL
- func (*PermCEL) Descriptor() ([]byte, []int)
- func (m *PermCEL) GetDelete() bool
- func (m *PermCEL) GetGraft() bool
- func (m *PermCEL) GetRead() bool
- func (m *PermCEL) GetRules() bool
- func (m *PermCEL) GetWrite() bool
- func (*PermCEL) ProtoMessage()
- func (m *PermCEL) Reset()
- func (m *PermCEL) String() string
- func (m *PermCEL) XXX_DiscardUnknown()
- func (m *PermCEL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PermCEL) XXX_Merge(src proto.Message)
- func (m *PermCEL) XXX_Size() int
- func (m *PermCEL) XXX_Unmarshal(b []byte) error
- type PutDataOptions
- type SearchQuery
- func (*SearchQuery) Descriptor() ([]byte, []int)
- func (m *SearchQuery) GetCollection() string
- func (m *SearchQuery) GetCondition() *any.Any
- func (*SearchQuery) ProtoMessage()
- func (m *SearchQuery) Reset()
- func (m *SearchQuery) String() string
- func (m *SearchQuery) XXX_DiscardUnknown()
- func (m *SearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchQuery) XXX_Merge(src proto.Message)
- func (m *SearchQuery) XXX_Size() int
- func (m *SearchQuery) XXX_Unmarshal(b []byte) error
- type SettingsOptions
- type Store
- type UserOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var Action_name = map[int32]string{
0: "none",
1: "create",
2: "read",
3: "write",
4: "delete",
5: "rules",
6: "graft",
}
View Source
var Action_value = map[string]int32{
"none": 0,
"create": 1,
"read": 2,
"write": 3,
"delete": 4,
"rules": 5,
"graft": 6,
}
Functions ¶
This section is empty.
Types ¶
type AuthCEL ¶
type AuthCEL struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Validated bool `protobuf:"varint,3,opt,name=validated,proto3" json:"validated,omitempty"` Scope []string `protobuf:"bytes,4,rep,name=scope,proto3" json:"scope,omitempty"` Group string `protobuf:"bytes,5,opt,name=group,proto3" json:"group,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthCEL) Descriptor ¶
func (*AuthCEL) GetValidated ¶
func (*AuthCEL) ProtoMessage ¶
func (*AuthCEL) ProtoMessage()
func (*AuthCEL) XXX_DiscardUnknown ¶
func (m *AuthCEL) XXX_DiscardUnknown()
func (*AuthCEL) XXX_Marshal ¶
func (*AuthCEL) XXX_Unmarshal ¶
type BulkOptions ¶
type BulkOptions struct {
Provider IDFilter
}
type Conditions ¶
type Conditions struct { Items []*any.Any `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Conditions) Descriptor ¶
func (*Conditions) Descriptor() ([]byte, []int)
func (*Conditions) GetItems ¶
func (m *Conditions) GetItems() []*any.Any
func (*Conditions) ProtoMessage ¶
func (*Conditions) ProtoMessage()
func (*Conditions) Reset ¶
func (m *Conditions) Reset()
func (*Conditions) String ¶
func (m *Conditions) String() string
func (*Conditions) XXX_DiscardUnknown ¶
func (m *Conditions) XXX_DiscardUnknown()
func (*Conditions) XXX_Marshal ¶
func (m *Conditions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Conditions) XXX_Merge ¶
func (m *Conditions) XXX_Merge(src proto.Message)
func (*Conditions) XXX_Size ¶
func (m *Conditions) XXX_Size() int
func (*Conditions) XXX_Unmarshal ¶
func (m *Conditions) XXX_Unmarshal(b []byte) error
type DataCEL ¶
type DataCEL struct { Col string `protobuf:"bytes,1,opt,name=col,proto3" json:"col,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DataCEL) Descriptor ¶
func (*DataCEL) GetCreator ¶
func (*DataCEL) ProtoMessage ¶
func (*DataCEL) ProtoMessage()
func (*DataCEL) XXX_DiscardUnknown ¶
func (m *DataCEL) XXX_DiscardUnknown()
func (*DataCEL) XXX_Marshal ¶
func (*DataCEL) XXX_Unmarshal ¶
type DataList ¶
type DataList struct { Collection string `json:"collection"` Cursor DataCursor }
type DataOptions ¶
type DataOptions struct {
Path string `json:"path"`
}
type DeleteOptions ¶
type GetDataOptions ¶
type GetDataOptions struct {
Path string `json:"path"`
}
type GraftCEL ¶
type GraftCEL struct { Col string `protobuf:"bytes,1,opt,name=col,proto3" json:"col,omitempty"` Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"` CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GraftCEL) Descriptor ¶
func (*GraftCEL) GetCreatedAt ¶
func (*GraftCEL) GetCreator ¶
func (*GraftCEL) ProtoMessage ¶
func (*GraftCEL) ProtoMessage()
func (*GraftCEL) XXX_DiscardUnknown ¶
func (m *GraftCEL) XXX_DiscardUnknown()
func (*GraftCEL) XXX_Marshal ¶
func (*GraftCEL) XXX_Unmarshal ¶
type GraftList ¶
type GraftList struct { Collection string `json:"collection"` DataID string `json:"data_id"` Cursor GraftCursor }
type IDFilterFunc ¶
type ListOptions ¶
type OperationParams ¶
type OperationParams struct { Func string `protobuf:"bytes,1,opt,name=func,proto3" json:"func,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Conditions
func (*OperationParams) Descriptor ¶
func (*OperationParams) Descriptor() ([]byte, []int)
func (*OperationParams) GetFunc ¶
func (m *OperationParams) GetFunc() string
func (*OperationParams) GetPath ¶
func (m *OperationParams) GetPath() string
func (*OperationParams) GetValue ¶
func (m *OperationParams) GetValue() string
func (*OperationParams) ProtoMessage ¶
func (*OperationParams) ProtoMessage()
func (*OperationParams) Reset ¶
func (m *OperationParams) Reset()
func (*OperationParams) String ¶
func (m *OperationParams) String() string
func (*OperationParams) XXX_DiscardUnknown ¶
func (m *OperationParams) XXX_DiscardUnknown()
func (*OperationParams) XXX_Marshal ¶
func (m *OperationParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OperationParams) XXX_Merge ¶
func (m *OperationParams) XXX_Merge(src proto.Message)
func (*OperationParams) XXX_Size ¶
func (m *OperationParams) XXX_Size() int
func (*OperationParams) XXX_Unmarshal ¶
func (m *OperationParams) XXX_Unmarshal(b []byte) error
type PatchOptions ¶
type PatchOptions struct {
Path string `json:"path"`
}
type PermCEL ¶
type PermCEL struct { Read bool `protobuf:"varint,1,opt,name=read,proto3" json:"read,omitempty"` Write bool `protobuf:"varint,2,opt,name=write,proto3" json:"write,omitempty"` Delete bool `protobuf:"varint,3,opt,name=delete,proto3" json:"delete,omitempty"` Rules bool `protobuf:"varint,4,opt,name=rules,proto3" json:"rules,omitempty"` Graft bool `protobuf:"varint,5,opt,name=graft,proto3" json:"graft,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PermCEL) Descriptor ¶
func (*PermCEL) ProtoMessage ¶
func (*PermCEL) ProtoMessage()
func (*PermCEL) XXX_DiscardUnknown ¶
func (m *PermCEL) XXX_DiscardUnknown()
func (*PermCEL) XXX_Marshal ¶
func (*PermCEL) XXX_Unmarshal ¶
type PutDataOptions ¶
type PutDataOptions struct{}
type SearchQuery ¶
type SearchQuery struct { Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` Condition *any.Any `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchQuery) Descriptor ¶
func (*SearchQuery) Descriptor() ([]byte, []int)
func (*SearchQuery) GetCollection ¶
func (m *SearchQuery) GetCollection() string
func (*SearchQuery) GetCondition ¶
func (m *SearchQuery) GetCondition() *any.Any
func (*SearchQuery) ProtoMessage ¶
func (*SearchQuery) ProtoMessage()
func (*SearchQuery) Reset ¶
func (m *SearchQuery) Reset()
func (*SearchQuery) String ¶
func (m *SearchQuery) String() string
func (*SearchQuery) XXX_DiscardUnknown ¶
func (m *SearchQuery) XXX_DiscardUnknown()
func (*SearchQuery) XXX_Marshal ¶
func (m *SearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchQuery) XXX_Merge ¶
func (m *SearchQuery) XXX_Merge(src proto.Message)
func (*SearchQuery) XXX_Size ¶
func (m *SearchQuery) XXX_Size() int
func (*SearchQuery) XXX_Unmarshal ¶
func (m *SearchQuery) XXX_Unmarshal(b []byte) error
type SettingsOptions ¶
type SettingsOptions struct {
Path string `json:"path"`
}
type Store ¶
type Store interface { Save(ctx context.Context, data *Data) error Update(ctx context.Context, data *Data) error Delete(ctx context.Context, data *Data) error List(ctx context.Context, model string, opts ListOptions) (*DataList, error) Collections(ctx context.Context) ([]string, error) Get(ctx context.Context, collection string, id string, opts DataOptions) (*Data, error) Info(ctx context.Context, collection string, id string) (*Info, error) Search(ctx context.Context, collection string, condition *any.Any, opts ListOptions) (*DataList, error) SaveGraft(ctx context.Context, graft *Graft) (string, error) GetGraft(ctx context.Context, collection string, dataID string, id string) (*Graft, error) GraftInfo(ctx context.Context, collection string, dataID string, id string) (*GraftInfo, error) DeleteGraft(ctx context.Context, collection string, dataID string, id string) error GetAllGraft(ctx context.Context, collection string, dataID string, opts ListOptions) (*GraftList, error) }
Click to show internal directories.
Click to hide internal directories.