Documentation
¶
Overview ¶
Package casecatalog owns the shareable filesystem case catalog. Built-in cases and executable-relative user cases use the same group/case layout.
Index ¶
- Variables
- func UserRootForExecutable(executablePath string) (string, error)
- type Case
- type Entry
- type Group
- type Options
- type Service
- func (service *Service) Count(ctx context.Context) (int, error)
- func (service *Service) Delete(ctx context.Context, id string, expectedRevision uint64) error
- func (service *Service) Entries(ctx context.Context) ([]Entry, error)
- func (service *Service) Find(ctx context.Context, id string) (Entry, error)
- func (service *Service) Save(ctx context.Context, group, directory string, raw []byte) error
- func (service *Service) SaveCase(ctx context.Context, group, directory string, testCase domain.TestCase) error
- func (service *Service) Snapshot(ctx context.Context) (Snapshot, error)
- type Snapshot
- type Source
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalid = errors.New("case catalog: invalid input") ErrCollision = errors.New("case catalog: duplicate case identity") )
Functions ¶
func UserRootForExecutable ¶
Types ¶
type Case ¶
type Case struct {
ID string `json:"id"`
Revision uint64 `json:"revision"`
Group string `json:"group"`
Directory string `json:"directory"`
Key string `json:"key"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
Dimension string `json:"dimension"`
Enabled bool `json:"enabled"`
Default bool `json:"default"`
Severity domain.CaseSeverity `json:"severity"`
ExecutionMode domain.CaseExecutionMode `json:"execution_mode"`
Source Source `json:"source"`
Definitions domain.ProtocolDefinitions `json:"definitions"`
}
Click to show internal directories.
Click to hide internal directories.