Documentation
¶
Overview ¶
Package storage provides file-based JSON storage for GitHub Actions data.
Index ¶
- type Store
- func (s *Store) IterJobs(workflowID int64) iter.Seq2[json.RawMessage, error]
- func (s *Store) IterRuns(workflowID int64) iter.Seq2[json.RawMessage, error]
- func (s *Store) JobExists(workflowID, runID int64) bool
- func (s *Store) JobPath(workflowID, runID int64) string
- func (s *Store) JobsDir(workflowID int64) string
- func (s *Store) ListStoredRunIDs(workflowID int64) ([]int64, error)
- func (s *Store) ListStoredRunIDsWithoutJobs(workflowID int64) ([]int64, error)
- func (s *Store) LoadJobs(workflowID, runID int64) (json.RawMessage, error)
- func (s *Store) LoadRun(workflowID, runID int64) (json.RawMessage, error)
- func (s *Store) RunExists(workflowID, runID int64) bool
- func (s *Store) RunPath(workflowID, runID int64) string
- func (s *Store) RunsDir(workflowID int64) string
- func (s *Store) SaveJobs(workflowID, runID int64, data json.RawMessage) error
- func (s *Store) SaveRun(workflowID, runID int64, data json.RawMessage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages file-based storage for workflow runs and jobs.
func NewStore ¶
NewStore creates a new Store with the given base directory. Returns an error if the directory doesn't exist or isn't a directory.
func (*Store) ListStoredRunIDs ¶
ListStoredRunIDs returns all run IDs stored for a workflow.
func (*Store) ListStoredRunIDsWithoutJobs ¶
ListStoredRunIDsWithoutJobs returns run IDs that don't have corresponding job files.
func (*Store) LoadJobs ¶
func (s *Store) LoadJobs(workflowID, runID int64) (json.RawMessage, error)
LoadJobs loads jobs for a single run from storage.
func (*Store) LoadRun ¶
func (s *Store) LoadRun(workflowID, runID int64) (json.RawMessage, error)
LoadRun loads a single run from storage.
Click to show internal directories.
Click to hide internal directories.