store

package
v1.3.0-rc Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2018 License: GPL-3.0 Imports: 28 Imported by: 8

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