Documentation
¶
Overview ¶
Package journal provides an append-only JSONL activity ledger. Every GitLab operation performed through ggvalet is recorded here so the operator can generate time-boxed manager reports without touching the API again.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity string
Entity describes the GitLab resource type.
const ( EntityIssue Entity = "issue" EntityEpic Entity = "epic" EntityMilestone Entity = "milestone" EntityWorkItem Entity = "workitem" EntityMR Entity = "mr" EntityLabel Entity = "label" EntityNote Entity = "note" EntityPipeline Entity = "pipeline" EntityJob Entity = "job" EntityArtifact Entity = "artifact" )
type Entry ¶
type Entry struct {
ID string `json:"id"`
Timestamp time.Time `json:"ts"`
Host string `json:"host"` // e.g. "gitlab.thalesdigital.io"
Op Op `json:"op"`
Entity Entity `json:"entity"`
Project string `json:"project,omitempty"`
Group string `json:"group,omitempty"`
EntityID int `json:"entity_id,omitempty"`
IID int `json:"iid,omitempty"`
Title string `json:"title,omitempty"`
URL string `json:"url,omitempty"`
Outcome Outcome `json:"outcome"`
Detail string `json:"detail,omitempty"`
Tags []string `json:"tags,omitempty"`
}
Entry is one immutable journal record.
type Filter ¶
type Filter struct {
Since time.Time
Until time.Time
Host string // empty = all hosts
Ops []Op
Entities []Entity
Project string
Group string
Outcome Outcome // empty = all
}
Filter controls which entries are returned by Query.
type Journal ¶
type Journal struct {
// contains filtered or unexported fields
}
Journal is the append-only ledger backed by a JSONL file.
Click to show internal directories.
Click to hide internal directories.