mocks

package
v0.0.0-...-2be0f72 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dirs

type Dirs struct {
	mock.Mock
}

func NewMDirs

func NewMDirs() *Dirs

func (*Dirs) ByID

func (m *Dirs) ByID(id string) (*schema.Directory, error)

func (*Dirs) ByPath

func (m *Dirs) ByPath(path, projectID string) (*schema.Directory, error)

func (*Dirs) Delete

func (m *Dirs) Delete(dirID string) error

func (*Dirs) Files

func (m *Dirs) Files(dirID string) ([]schema.File, error)

func (*Dirs) Insert

func (m *Dirs) Insert(dir *schema.Directory) (*schema.Directory, error)

type Dirs2

type Dirs2 struct {
	// contains filtered or unexported fields
}

func NewMDirs2

func NewMDirs2() *Dirs2

func (*Dirs2) ByID

func (m *Dirs2) ByID(id string) (*schema.Directory, error)

func (*Dirs2) ByPath

func (m *Dirs2) ByPath(path, projectID string) (*schema.Directory, error)

func (*Dirs2) Delete

func (m *Dirs2) Delete(dirID string) error

func (*Dirs2) Files

func (m *Dirs2) Files(dirID string) ([]schema.File, error)

func (*Dirs2) Insert

func (m *Dirs2) Insert(dir *schema.Directory) (*schema.Directory, error)

func (*Dirs2) On

func (m *Dirs2) On(method string) *Dirs2

func (*Dirs2) SetDir

func (m *Dirs2) SetDir(dir *schema.Directory) *Dirs2

func (*Dirs2) SetError

func (m *Dirs2) SetError(err error) *Dirs2

func (*Dirs2) SetFiles

func (m *Dirs2) SetFiles(files []schema.File) *Dirs2

type Files

type Files struct {
	mock.Mock
}

func NewMFiles

func NewMFiles() *Files

func (*Files) AllByChecksum

func (m *Files) AllByChecksum(checksum string) ([]schema.File, error)

func (*Files) ByChecksum

func (m *Files) ByChecksum(checksum string) (*schema.File, error)

func (*Files) ByID

func (m *Files) ByID(id string) (*schema.File, error)

func (*Files) ByPath

func (m *Files) ByPath(name, dirID string) (*schema.File, error)

func (*Files) Delete

func (m *Files) Delete(fileID, directoryID, projectID string) (*schema.File, error)

func (*Files) GetProject

func (m *Files) GetProject(fileID string) (*schema.Project, error)

func (*Files) Insert

func (m *Files) Insert(file *schema.File, dirID string, projectID string) (*schema.File, error)

func (*Files) Update

func (m *Files) Update(file *schema.File) error

func (*Files) UpdateFields

func (m *Files) UpdateFields(fileID string, fields map[string]interface{}) error

type Files2

type Files2 struct {
	// contains filtered or unexported fields
}

func NewMFiles2

func NewMFiles2() *Files2

func (*Files2) AllByChecksum

func (m *Files2) AllByChecksum(checksum string) ([]schema.File, error)

func (*Files2) ByChecksum

func (m *Files2) ByChecksum(checksum string) (*schema.File, error)

func (*Files2) ByID

func (m *Files2) ByID(id string) (*schema.File, error)

func (*Files2) ByPath

func (m *Files2) ByPath(name, dirID string) (*schema.File, error)

func (*Files2) Delete

func (m *Files2) Delete(fileID, directoryID, projectID string) (*schema.File, error)

func (*Files2) GetProject

func (m *Files2) GetProject(fileID string) (*schema.Project, error)

func (*Files2) Insert

func (m *Files2) Insert(file *schema.File, dirID string, projectID string) (*schema.File, error)

func (*Files2) On

func (m *Files2) On(method string) *Files2

func (*Files2) SetError

func (m *Files2) SetError(err error) *Files2

func (*Files2) SetFile

func (m *Files2) SetFile(file *schema.File) *Files2

func (*Files2) SetFiles

func (m *Files2) SetFiles(files []schema.File) *Files2

func (*Files2) SetProject

func (m *Files2) SetProject(project *schema.Project) *Files2

func (*Files2) Update

func (m *Files2) Update(file *schema.File) error

func (*Files2) UpdateFields

func (m *Files2) UpdateFields(fileID string, fields map[string]interface{}) error

type Groups

type Groups struct {
	mock.Mock
}

func NewMGroups

func NewMGroups() *Groups

func (*Groups) ByID

func (m *Groups) ByID(id string) (*schema.Group, error)

func (*Groups) ForOwner

func (m *Groups) ForOwner(owner string) ([]schema.Group, error)

type Projects

type Projects struct {
	mock.Mock
}

func NewMProjects

func NewMProjects() *Projects

func (*Projects) AccessList

func (m *Projects) AccessList(projectID string) ([]schema.Access, error)

func (*Projects) ByID

func (m *Projects) ByID(id string) (*schema.Project, error)

func (*Projects) ByName

func (m *Projects) ByName(name, owner string) (*schema.Project, error)

func (*Projects) ForUser

func (m *Projects) ForUser(user string, ownedOnly bool) ([]schema.Project, error)

func (*Projects) HasDirectory

func (m *Projects) HasDirectory(projectID, directoryID string) bool

func (*Projects) Insert

func (m *Projects) Insert(project *schema.Project) (*schema.Project, error)

type Projects2

type Projects2 struct {
	// contains filtered or unexported fields
}

func NewMProjects2

func NewMProjects2() *Projects2

func (*Projects2) AccessList

func (m *Projects2) AccessList(projectID string) ([]schema.Access, error)

func (*Projects2) ByID

func (m *Projects2) ByID(id string) (*schema.Project, error)

func (*Projects2) ByName

func (m *Projects2) ByName(name, owner string) (*schema.Project, error)

func (*Projects2) ForUser

func (m *Projects2) ForUser(user string, ownedOnly bool) ([]schema.Project, error)

func (*Projects2) HasDirectory

func (m *Projects2) HasDirectory(projectID, directoryID string) bool

func (*Projects2) Insert

func (m *Projects2) Insert(project *schema.Project) (*schema.Project, error)

func (*Projects2) On

func (m *Projects2) On(method string) *Projects2

func (*Projects2) SetAccessList

func (m *Projects2) SetAccessList(access []schema.Access) *Projects2

func (*Projects2) SetError

func (m *Projects2) SetError(err error) *Projects2

func (*Projects2) SetHasDir

func (m *Projects2) SetHasDir(hasDir bool) *Projects2

func (*Projects2) SetProject

func (m *Projects2) SetProject(project *schema.Project) *Projects2

func (*Projects2) SetProjects

func (m *Projects2) SetProjects(projects []schema.Project) *Projects2

type Uploads

type Uploads struct {
	mock.Mock
}

func NewMUploads

func NewMUploads() *Uploads

func (*Uploads) ByID

func (m *Uploads) ByID(id string) (*schema.Upload, error)

func (*Uploads) Delete

func (m *Uploads) Delete(uploadID string) error

func (*Uploads) ForProject

func (m *Uploads) ForProject(projectID string) ([]schema.Upload, error)

func (*Uploads) ForUser

func (m *Uploads) ForUser(user string) ([]schema.Upload, error)

func (*Uploads) Insert

func (m *Uploads) Insert(upload *schema.Upload) (*schema.Upload, error)

func (*Uploads) Search

func (m *Uploads) Search(params dai.UploadSearch) (*schema.Upload, error)

func (*Uploads) Update

func (m *Uploads) Update(upload *schema.Upload) error

type Users

type Users struct {
	mock.Mock
}

func NewMUsers

func NewMUsers() *Users

func (*Users) ByAPIKey

func (m *Users) ByAPIKey(apikey string) (*schema.User, error)

Jump to

Keyboard shortcuts

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