Documentation
¶
Index ¶
- func AuthCtx(ctx context.Context, token string) context.Context
- type Bucket
- type Buckets
- func (f *Buckets) Create(ctx context.Context, pth path.Resolved, name, projectID string) (*Bucket, error)
- func (f *Buckets) Delete(ctx context.Context, id string) error
- func (f *Buckets) GetByName(ctx context.Context, name string) (*Bucket, error)
- func (f *Buckets) GetIndexes() []*s.IndexConfig
- func (f *Buckets) GetInstance() interface{}
- func (f *Buckets) GetName() string
- func (f *Buckets) GetStoreID() *uuid.UUID
- func (f *Buckets) List(ctx context.Context, projectID string) ([]*Bucket, error)
- func (f *Buckets) Save(ctx context.Context, bucket *Bucket) error
- type Collection
- type Collections
- type Developer
- type Developers
- func (d *Developers) Create(ctx context.Context, email string) (*Developer, error)
- func (d *Developers) Delete(ctx context.Context, id string) error
- func (d *Developers) Get(ctx context.Context, id string) (*Developer, error)
- func (d *Developers) GetByEmail(ctx context.Context, email string) (*Developer, error)
- func (d *Developers) GetIndexes() []*s.IndexConfig
- func (d *Developers) GetInstance() interface{}
- func (d *Developers) GetName() string
- func (d *Developers) GetOrCreateByEmail(ctx context.Context, email string) (*Developer, error)
- func (d *Developers) GetStoreID() *uuid.UUID
- func (d *Developers) HasTeam(dev *Developer, teamID string) bool
- func (d *Developers) JoinTeam(ctx context.Context, dev *Developer, teamID string) error
- func (d *Developers) LeaveTeam(ctx context.Context, dev *Developer, teamID string) error
- func (d *Developers) ListByTeam(ctx context.Context, teamID string) ([]*Developer, error)
- type Invite
- type Invites
- func (i *Invites) Create(ctx context.Context, teamID, fromID, toEmail string) (*Invite, error)
- func (i *Invites) Delete(ctx context.Context, id string) error
- func (i *Invites) Get(ctx context.Context, id string) (*Invite, error)
- func (i *Invites) GetIndexes() []*s.IndexConfig
- func (i *Invites) GetInstance() interface{}
- func (i *Invites) GetName() string
- func (i *Invites) GetStoreID() *uuid.UUID
- type Project
- type Projects
- func (p *Projects) Create(ctx context.Context, name, scope, addr string) (*Project, error)
- func (p *Projects) Delete(ctx context.Context, id string) error
- func (p *Projects) Get(ctx context.Context, id string) (*Project, error)
- func (p *Projects) GetByName(ctx context.Context, name string) (*Project, error)
- func (p *Projects) GetIndexes() []*s.IndexConfig
- func (p *Projects) GetInstance() interface{}
- func (p *Projects) GetName() string
- func (p *Projects) GetStoreID() *uuid.UUID
- func (p *Projects) List(ctx context.Context, scope string) ([]*Project, error)
- type Session
- type Sessions
- func (s *Sessions) Create(ctx context.Context, userID, scope string) (*Session, error)
- func (s *Sessions) Delete(ctx context.Context, id string) error
- func (s *Sessions) Get(ctx context.Context, id string) (*Session, error)
- func (s *Sessions) GetIndexes() []*store.IndexConfig
- func (s *Sessions) GetInstance() interface{}
- func (s *Sessions) GetName() string
- func (s *Sessions) GetStoreID() *uuid.UUID
- func (s *Sessions) Save(ctx context.Context, session *Session) error
- func (s *Sessions) Touch(ctx context.Context, session *Session) error
- type Team
- type Teams
- func (t *Teams) Create(ctx context.Context, ownerID, name string) (*Team, error)
- func (t *Teams) Delete(ctx context.Context, id string) error
- func (t *Teams) Get(ctx context.Context, id string) (*Team, error)
- func (t *Teams) GetIndexes() []*s.IndexConfig
- func (t *Teams) GetInstance() interface{}
- func (t *Teams) GetName() string
- func (t *Teams) GetStoreID() *uuid.UUID
- type Token
- type TokenAuth
- type Tokens
- func (a *Tokens) Create(ctx context.Context, projectID string) (*Token, error)
- func (a *Tokens) Delete(ctx context.Context, id string) error
- func (a *Tokens) Get(ctx context.Context, id string) (*Token, error)
- func (a *Tokens) GetIndexes() []*s.IndexConfig
- func (a *Tokens) GetInstance() interface{}
- func (a *Tokens) GetName() string
- func (a *Tokens) GetStoreID() *uuid.UUID
- func (a *Tokens) List(ctx context.Context, projectID string) ([]*Token, error)
- type User
- type Users
- func (u *Users) Delete(ctx context.Context, id string) error
- func (u *Users) Get(ctx context.Context, id string) (*User, error)
- func (u *Users) GetByDeviceID(ctx context.Context, deviceID string) (*User, error)
- func (u *Users) GetIndexes() []*s.IndexConfig
- func (u *Users) GetInstance() interface{}
- func (u *Users) GetName() string
- func (u *Users) GetOrCreate(ctx context.Context, projectID, deviceID string) (user *User, err error)
- func (u *Users) GetStoreID() *uuid.UUID
- func (u *Users) List(ctx context.Context, projectID string) ([]*User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buckets ¶
type Buckets struct {
// contains filtered or unexported fields
}
func (*Buckets) GetIndexes ¶
func (f *Buckets) GetIndexes() []*s.IndexConfig
func (*Buckets) GetInstance ¶
func (f *Buckets) GetInstance() interface{}
func (*Buckets) GetStoreID ¶
type Collection ¶
type Collection interface {
GetName() string
GetInstance() interface{}
GetIndexes() []*store.IndexConfig
GetStoreID() *uuid.UUID
}
type Collections ¶
type Developers ¶
type Developers struct {
// contains filtered or unexported fields
}
func (*Developers) Delete ¶
func (d *Developers) Delete(ctx context.Context, id string) error
@todo: Developer must first delete projects and teams they own @todo: Delete associated sessions
func (*Developers) GetByEmail ¶
func (*Developers) GetIndexes ¶
func (d *Developers) GetIndexes() []*s.IndexConfig
func (*Developers) GetInstance ¶
func (d *Developers) GetInstance() interface{}
func (*Developers) GetName ¶
func (d *Developers) GetName() string
func (*Developers) GetOrCreateByEmail ¶
func (*Developers) GetStoreID ¶
func (d *Developers) GetStoreID() *uuid.UUID
func (*Developers) ListByTeam ¶
type Invites ¶
type Invites struct {
// contains filtered or unexported fields
}
func (*Invites) GetIndexes ¶
func (i *Invites) GetIndexes() []*s.IndexConfig
func (*Invites) GetInstance ¶
func (i *Invites) GetInstance() interface{}
func (*Invites) GetStoreID ¶
type Projects ¶
type Projects struct {
// contains filtered or unexported fields
}
func (*Projects) GetIndexes ¶
func (p *Projects) GetIndexes() []*s.IndexConfig
func (*Projects) GetInstance ¶
func (p *Projects) GetInstance() interface{}
func (*Projects) GetStoreID ¶
type Sessions ¶
type Sessions struct {
// contains filtered or unexported fields
}
func (*Sessions) GetIndexes ¶
func (s *Sessions) GetIndexes() []*store.IndexConfig
func (*Sessions) GetInstance ¶
func (s *Sessions) GetInstance() interface{}
func (*Sessions) GetStoreID ¶
type Teams ¶
type Teams struct {
// contains filtered or unexported fields
}
func (*Teams) GetIndexes ¶
func (t *Teams) GetIndexes() []*s.IndexConfig
func (*Teams) GetInstance ¶
func (t *Teams) GetInstance() interface{}
func (*Teams) GetStoreID ¶
type TokenAuth ¶
type TokenAuth struct{}
func (TokenAuth) GetRequestMetadata ¶
func (TokenAuth) RequireTransportSecurity ¶
type Tokens ¶
type Tokens struct {
// contains filtered or unexported fields
}
func (*Tokens) GetIndexes ¶
func (a *Tokens) GetIndexes() []*s.IndexConfig
func (*Tokens) GetInstance ¶
func (a *Tokens) GetInstance() interface{}
func (*Tokens) GetStoreID ¶
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func (*Users) GetByDeviceID ¶
func (*Users) GetIndexes ¶
func (u *Users) GetIndexes() []*s.IndexConfig
func (*Users) GetInstance ¶
func (u *Users) GetInstance() interface{}
func (*Users) GetOrCreate ¶
func (*Users) GetStoreID ¶
Click to show internal directories.
Click to hide internal directories.