fx

package
v0.0.0-...-fb67617 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 Action

type Action int32
const (
	Action_none   Action = 0
	Action_create Action = 1
	Action_read   Action = 2
	Action_write  Action = 3
	Action_delete Action = 4
	Action_rules  Action = 5
	Action_graft  Action = 6
)

func (Action) EnumDescriptor

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

func (Action) String

func (x Action) String() string

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) Descriptor() ([]byte, []int)

func (*AuthCEL) GetEmail

func (m *AuthCEL) GetEmail() string

func (*AuthCEL) GetGroup

func (m *AuthCEL) GetGroup() string

func (*AuthCEL) GetScope

func (m *AuthCEL) GetScope() []string

func (*AuthCEL) GetUid

func (m *AuthCEL) GetUid() string

func (*AuthCEL) GetValidated

func (m *AuthCEL) GetValidated() bool

func (*AuthCEL) ProtoMessage

func (*AuthCEL) ProtoMessage()

func (*AuthCEL) Reset

func (m *AuthCEL) Reset()

func (*AuthCEL) String

func (m *AuthCEL) String() string

func (*AuthCEL) XXX_DiscardUnknown

func (m *AuthCEL) XXX_DiscardUnknown()

func (*AuthCEL) XXX_Marshal

func (m *AuthCEL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthCEL) XXX_Merge

func (m *AuthCEL) XXX_Merge(src proto.Message)

func (*AuthCEL) XXX_Size

func (m *AuthCEL) XXX_Size() int

func (*AuthCEL) XXX_Unmarshal

func (m *AuthCEL) XXX_Unmarshal(b []byte) error

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 Data

type Data struct {
	ID         string `json:"id"`
	CreatedBy  string `json:"created_by"`
	CreatedAt  int64  `json:"created_at"`
	Collection string `json:"collection"`
	Size       int64  `json:"size"`
	Content    string `json:"content"`
}

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) Descriptor() ([]byte, []int)

func (*DataCEL) GetCol

func (m *DataCEL) GetCol() string

func (*DataCEL) GetCreator

func (m *DataCEL) GetCreator() string

func (*DataCEL) GetId

func (m *DataCEL) GetId() string

func (*DataCEL) ProtoMessage

func (*DataCEL) ProtoMessage()

func (*DataCEL) Reset

func (m *DataCEL) Reset()

func (*DataCEL) String

func (m *DataCEL) String() string

func (*DataCEL) XXX_DiscardUnknown

func (m *DataCEL) XXX_DiscardUnknown()

func (*DataCEL) XXX_Marshal

func (m *DataCEL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataCEL) XXX_Merge

func (m *DataCEL) XXX_Merge(src proto.Message)

func (*DataCEL) XXX_Size

func (m *DataCEL) XXX_Size() int

func (*DataCEL) XXX_Unmarshal

func (m *DataCEL) XXX_Unmarshal(b []byte) error

type DataCursor

type DataCursor interface {
	Walk() (bool, error)
	Get() *Data
	Close() error
}

type DataList

type DataList struct {
	Collection string `json:"collection"`
	Cursor     DataCursor
}

type DataOptions

type DataOptions struct {
	Path string `json:"path"`
}

type DeleteOptions

type DeleteOptions struct {
	Path string `json:"path"`
	Id   string `json:"id"`
}

type GetDataOptions

type GetDataOptions struct {
	Path string `json:"path"`
}

type Graft

type Graft struct {
	ID         string `json:"id"`
	CreatedBy  string `json:"created_by"`
	CreatedAt  int64  `json:"created_at"`
	Collection string `json:"collection"`
	DataID     string `json:"data_id"`
	Size       int64  `json:"size"`
	Content    string `json:"content"`
}

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) Descriptor() ([]byte, []int)

func (*GraftCEL) GetCol

func (m *GraftCEL) GetCol() string

func (*GraftCEL) GetCreatedAt

func (m *GraftCEL) GetCreatedAt() int64

func (*GraftCEL) GetCreator

func (m *GraftCEL) GetCreator() string

func (*GraftCEL) GetDid

func (m *GraftCEL) GetDid() string

func (*GraftCEL) GetId

func (m *GraftCEL) GetId() string

func (*GraftCEL) ProtoMessage

func (*GraftCEL) ProtoMessage()

func (*GraftCEL) Reset

func (m *GraftCEL) Reset()

func (*GraftCEL) String

func (m *GraftCEL) String() string

func (*GraftCEL) XXX_DiscardUnknown

func (m *GraftCEL) XXX_DiscardUnknown()

func (*GraftCEL) XXX_Marshal

func (m *GraftCEL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GraftCEL) XXX_Merge

func (m *GraftCEL) XXX_Merge(src proto.Message)

func (*GraftCEL) XXX_Size

func (m *GraftCEL) XXX_Size() int

func (*GraftCEL) XXX_Unmarshal

func (m *GraftCEL) XXX_Unmarshal(b []byte) error

type GraftCursor

type GraftCursor interface {
	Walk() (bool, error)
	Get() *Graft
	Close() error
}

type GraftInfo

type GraftInfo struct {
	ID         string `json:"id"`
	DataID     string `json:"data_id"`
	CreatedBy  string `json:"created_by"`
	CreatedAt  int64  `json:"created_at"`
	Collection string `json:"collection"`
	Size       int64  `json:"size"`
}

type GraftList

type GraftList struct {
	Collection string `json:"collection"`
	DataID     string `json:"data_id"`
	Cursor     GraftCursor
}

type IDFilter

type IDFilter interface {
	Filter(id string) (bool, error)
}

type IDFilterFunc

type IDFilterFunc func(id string) (bool, error)

func (IDFilterFunc) Filter

func (f IDFilterFunc) Filter(id string) (bool, error)

type Info

type Info struct {
	ID         string `json:"id"`
	CreatedBy  string `json:"created_by"`
	CreatedAt  int64  `json:"created_at"`
	Collection string `json:"collection"`
	Size       int64  `json:"size"`
}

type ListOptions

type ListOptions struct {
	IDFilter IDFilter
	Path     string `json:"path"`
	Before   int64  `json:"before"`
	Count    int64  `json:"count"`
}

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) Descriptor() ([]byte, []int)

func (*PermCEL) GetDelete

func (m *PermCEL) GetDelete() bool

func (*PermCEL) GetGraft

func (m *PermCEL) GetGraft() bool

func (*PermCEL) GetRead

func (m *PermCEL) GetRead() bool

func (*PermCEL) GetRules

func (m *PermCEL) GetRules() bool

func (*PermCEL) GetWrite

func (m *PermCEL) GetWrite() bool

func (*PermCEL) ProtoMessage

func (*PermCEL) ProtoMessage()

func (*PermCEL) Reset

func (m *PermCEL) Reset()

func (*PermCEL) String

func (m *PermCEL) String() string

func (*PermCEL) XXX_DiscardUnknown

func (m *PermCEL) XXX_DiscardUnknown()

func (*PermCEL) XXX_Marshal

func (m *PermCEL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PermCEL) XXX_Merge

func (m *PermCEL) XXX_Merge(src proto.Message)

func (*PermCEL) XXX_Size

func (m *PermCEL) XXX_Size() int

func (*PermCEL) XXX_Unmarshal

func (m *PermCEL) XXX_Unmarshal(b []byte) error

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)
}

type UserOptions

type UserOptions struct {
	WithAccessList  bool
	WithPermissions bool
	WithGroups      bool
	WithPassword    bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL