Documentation ¶
Index ¶
- func Bool(b bool) *bool
- func Int64(i int64) *int64
- func String(s string) *string
- type Attachment
- type Case
- type CaseResult
- type CaseStatus
- type Change
- type Coll
- type ContextCloser
- type Entity
- type Id
- type LogLine
- type MsTime
- type Repo
- func (r *Repo) AllAttachments(ctx context.Context) ([]Attachment, error)
- func (r *Repo) Attachment(ctx context.Context, id Id) (Attachment, error)
- func (r *Repo) Case(ctx context.Context, id Id) (Case, error)
- func (r *Repo) CaseAttachments(ctx context.Context, caseId Id) ([]Attachment, error)
- func (r *Repo) CaseLogLines(ctx context.Context, caseId Id) ([]LogLine, error)
- func (r *Repo) Close() error
- func (r *Repo) DisconnectSuite(ctx context.Context, id Id, at MsTime) error
- func (r *Repo) FinishCase(ctx context.Context, id Id, res CaseResult, at MsTime) error
- func (r *Repo) FinishSuite(ctx context.Context, id Id, res SuiteResult, at MsTime) error
- func (r *Repo) InsertAttachment(ctx context.Context, a Attachment) (Id, error)
- func (r *Repo) InsertCase(ctx context.Context, c Case) (Id, error)
- func (r *Repo) InsertLogLine(ctx context.Context, ll LogLine) (Id, error)
- func (r *Repo) InsertSuite(ctx context.Context, s Suite) (Id, error)
- func (r *Repo) LogLine(ctx context.Context, id Id) (LogLine, error)
- func (r *Repo) Seed() error
- func (r *Repo) Suite(ctx context.Context, id Id) (Suite, error)
- func (r *Repo) SuiteAttachments(ctx context.Context, suiteId Id) ([]Attachment, error)
- func (r *Repo) SuiteCases(ctx context.Context, suiteId Id) ([]Case, error)
- func (r *Repo) SuitePage(ctx context.Context) (SuitePage, error)
- func (r *Repo) SuitePageAfter(ctx context.Context, cursor SuitePageCursor) (SuitePage, error)
- func (r *Repo) Watch(ctx context.Context) (<-chan Change, <-chan error)
- type Suite
- type SuitePage
- type SuitePageCursor
- func (c SuitePageCursor) MarshalBSONValue() (bsontype.Type, []byte, error)
- func (c SuitePageCursor) MarshalJSON() ([]byte, error)
- func (c SuitePageCursor) String() string
- func (c *SuitePageCursor) UnmarshalBSONValue(_ bsontype.Type, b []byte) error
- func (c *SuitePageCursor) UnmarshalJSON(b []byte) error
- type SuiteResult
- type SuiteStatus
- type VersionedEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attachment ¶
type Attachment struct { Entity `bson:",inline"` VersionedEntity `bson:",inline"` SuiteId *Id `json:"suiteId,omitempty" bson:"suite_id"` CaseId *Id `json:"caseId,omitempty" bson:"case_id"` Filename *string `json:"filename,omitempty"` ContentType *string `json:"contentType,omitempty" bson:"content_type"` Size *int64 `json:"size,omitempty"` Timestamp *MsTime `json:"timestamp,omitempty"` }
type Case ¶
type Case struct { Entity `bson:",inline"` VersionedEntity `bson:",inline"` SuiteId *Id `json:"suiteId,omitempty" bson:"suite_id"` Name *string `json:"name,omitempty" bson:",omitempty"` Description *string `json:"description,omitempty" bson:",omitempty"` Tags []string `json:"tags,omitempty" bson:",omitempty"` Idx *int64 `json:"idx,omitempty"` Status *CaseStatus `json:"status,omitempty"` Result *CaseResult `json:"result,omitempty" bson:",omitempty"` CreatedAt *MsTime `json:"createdAt,omitempty" bson:"created_at"` StartedAt *MsTime `json:"startedAt,omitempty" bson:"started_at,omitempty"` FinishedAt *MsTime `json:"finishedAt,omitempty" bson:"finished_at,omitempty"` }
type CaseResult ¶
type CaseResult string
const ( CaseResultPassed CaseResult = "passed" CaseResultFailed CaseResult = "failed" CaseResultSkipped CaseResult = "skipped" CaseResultAborted CaseResult = "aborted" CaseResultErrored CaseResult = "errored" )
type CaseStatus ¶
type CaseStatus string
const ( CaseStatusCreated CaseStatus = "created" CaseStatusStarted CaseStatus = "started" CaseStatusFinished CaseStatus = "finished" )
type Change ¶
type Change struct { Coll Coll Msg json.RawMessage }
type ContextCloser ¶
type MsTime ¶
func (MsTime) MarshalJSON ¶
func (*MsTime) UnmarshalBSONValue ¶
func (*MsTime) UnmarshalJSON ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) AllAttachments ¶
func (r *Repo) AllAttachments(ctx context.Context) ([]Attachment, error)
func (*Repo) Attachment ¶
func (*Repo) CaseAttachments ¶
func (*Repo) CaseLogLines ¶
func (*Repo) DisconnectSuite ¶
func (*Repo) FinishCase ¶
func (*Repo) FinishSuite ¶
func (*Repo) InsertAttachment ¶
func (*Repo) InsertLogLine ¶
func (*Repo) SuiteAttachments ¶
func (*Repo) SuiteCases ¶
func (*Repo) SuitePageAfter ¶
type Suite ¶
type Suite struct { Entity `bson:",inline"` VersionedEntity `bson:",inline"` Project *string `json:"project,omitempty" bson:",omitempty"` Tags []string `json:"tags,omitempty" bson:",omitempty"` PlannedCases *int64 `json:"plannedCases,omitempty" bson:"planned_cases,omitempty"` Status *SuiteStatus `json:"status,omitempty"` Result *SuiteResult `json:"result,omitempty" bson:",omitempty"` DisconnectedAt *MsTime `json:"disconnectedAt,omitempty" bson:"disconnected_at,omitempty"` StartedAt *MsTime `json:"startedAt,omitempty" bson:"started_at"` FinishedAt *MsTime `json:"finishedAt,omitempty" bson:"finished_at,omitempty"` }
type SuitePage ¶
type SuitePage struct { Next *SuitePageCursor `json:"next,omitempty"` Suites []Suite `json:"suites"` }
type SuitePageCursor ¶
func NewSuitePageCursor ¶
func NewSuitePageCursor(s string) (c SuitePageCursor, err error)
func (SuitePageCursor) MarshalBSONValue ¶
func (c SuitePageCursor) MarshalBSONValue() (bsontype.Type, []byte, error)
func (SuitePageCursor) MarshalJSON ¶
func (c SuitePageCursor) MarshalJSON() ([]byte, error)
func (SuitePageCursor) String ¶
func (c SuitePageCursor) String() string
func (*SuitePageCursor) UnmarshalBSONValue ¶
func (c *SuitePageCursor) UnmarshalBSONValue(_ bsontype.Type, b []byte) error
func (*SuitePageCursor) UnmarshalJSON ¶
func (c *SuitePageCursor) UnmarshalJSON(b []byte) error
type SuiteResult ¶
type SuiteResult string
const ( SuiteResultPassed SuiteResult = "passed" SuiteResultFailed SuiteResult = "failed" )
func (*SuiteResult) UnmarshalJSON ¶
func (r *SuiteResult) UnmarshalJSON(b []byte) error
type SuiteStatus ¶
type SuiteStatus string
const ( SuiteStatusStarted SuiteStatus = "started" SuiteStatusFinished SuiteStatus = "finished" SuiteStatusDisconnected SuiteStatus = "disconnected" )
type VersionedEntity ¶
type VersionedEntity struct {
Version *int64 `json:"version,omitempty"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.