store

package
v1.6.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Overview

Package store holds everything that has to do with persistence and manages stored data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActorExistenceChecker

func GetActorExistenceChecker() id.ActorExistenceChecker

GetActorExistenceChecker returns the implementation to use for ActorExistenceChecker

func InitializeDatabase

func InitializeDatabase()

InitializeDatabase initializes the database connection and makes sure the database schema is up to date

Types

type Cases

Cases defines the interfaces a store for test cases needs to fulfill

func GetCaseStore

func GetCaseStore() Cases

GetCaseStore returns a store for test cases

type Comments

type Comments interface {
	GetComment(commentId int64, project *project.Project) (*comment.Comment, error)
	UpdateComment(*comment.Comment) error
	InsertComment(comment *comment.Comment, testObject interface{}, user *user.User) error
	GetCommentsForTest(testObject interface{}, entities *handler.ContextEntities) ([]*comment.Comment, error)
	DeleteCommentsForTest(testObject interface{}) error
}

func GetCommentStore added in v1.7.0

func GetCommentStore() Comments

type Groups

Groups defines the interfaces a store for groups needs to fulfill

func GetGroupStore

func GetGroupStore() Groups

GetGroupStore returns a store for groups

type Projects

type Projects interface {
	ListForOwner(id.ActorID) ([]*project.Project, error)
	ListForMember(id.ActorID) ([]*project.Project, error)
	ListForActor(id.ActorID) ([]*project.Project, error)
	ListAll() ([]*project.Project, error)
	ListPublic() ([]*project.Project, error)
	ListInternal() ([]*project.Project, error)
	ListPrivate(id.ActorID) ([]*project.Project, error)
	middleware.ProjectStore
	id.ProjectExistenceChecker
	handler.ProjectAdder
	handler.ProjectDeleter
}

Projects defines the interfaces a store for projects needs to fulfill

func GetProjectStore

func GetProjectStore() Projects

GetProjectStore returns a store for projects

type Protocols added in v1.1.0

type Protocols interface {
	// AddCaseProtocol adds the given protocol to the store
	AddCaseProtocol(r *test.CaseExecutionProtocol, testCaseVersion test.CaseVersion) (err error)
	// AddSequenceProtocol adds the given protocol to the store
	AddSequenceProtocol(r *test.SequenceExecutionProtocol, testSequenceVersion test.SequenceVersion) (err error)
	// GetCaseExecutionProtocols gets the protocols for the testcase with given id,
	// which is part of the project with given id.
	GetCaseExecutionProtocols(testcaseID id.TestID) ([]test.CaseExecutionProtocol, error)
	// GetCaseExecutionProtocols gets the protocols for all testcases of the project with given id.
	GetCaseExecutionProtocolsForProject(project id.ProjectID) ([]test.CaseExecutionProtocol, error)
	// GetCaseExecutionProtocol gets the protocol with the given id for the testcase with given id,
	// which is part of the project with given id.
	GetCaseExecutionProtocol(protocolID id.ProtocolID) (test.CaseExecutionProtocol, error)
	// GetSequenceExecutionProtocols gets the protocols for the testsequence with given id,
	// which is part of the project with given id.
	GetSequenceExecutionProtocols(sequenceID id.TestID) ([]test.SequenceExecutionProtocol, error)
	//GetSequenceExecutionProtocolsForProject gets the protocols for all test sequences of the project with given id.
	GetSequenceExecutionProtocolsForProject(pID id.ProjectID) ([]test.SequenceExecutionProtocol, error)
	// GetSequenceExecutionProtocol gets the protocol with the given id for the testsequence with given id,
	// which is part of the project with given id.
	GetSequenceExecutionProtocol(protocolID id.ProtocolID) (test.SequenceExecutionProtocol, error)
	// GetTestVersionProtocols gets the protocols for the testVersion with given id
	GetTestVersionProtocols(testVersionID id.TestVersionID) ([]id.ProtocolID, error)
}

func GetProtocolStore added in v1.1.0

func GetProtocolStore() Protocols

GetProtocolStore returns a store for protocols

type Sequences

Sequences defines the interfaces a store for test sequences needs to fulfill

func GetSequenceStore

func GetSequenceStore() Sequences

GetSequenceStore returns a store for test sequences

type SystemSettings

type SystemSettings interface {
	GetSystemSettings() (*system.SystemSettings, error)
	UpdateSystemSettings(systemSettings *system.SystemSettings) error
	InsertSystemSettings(systemSettings *system.SystemSettings) error
}

func GetSystemSettingsStore added in v1.7.0

func GetSystemSettingsStore() SystemSettings

type Tasks

type Tasks interface {
	handler.TaskListAdder
	handler.TaskListGetter
}

Tasks defines the interfaces a store for tasks needs to fulfill

func GetTaskStore added in v1.7.0

func GetTaskStore() Tasks

GetTaskStore returns a store for Tasks

type Users

Users defines the interfaces a store for users needs to fulfill

func GetUserStore

func GetUserStore() Users

GetUserStore returns a store for users

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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