Documentation
¶
Index ¶
- Variables
- func InitDB(ctx context.Context, db *sql.DB) error
- type OpStatus
- type PipeStore
- func (s *PipeStore) Delete(ctx context.Context, name integrity.NameDigest) error
- func (s *PipeStore) DeleteBatch(ctx context.Context, names []integrity.NameDigest) error
- func (s *PipeStore) Load(ctx context.Context, name integrity.NameDigest) (*api.Pipe, error)
- func (s *PipeStore) LoadBatch(ctx context.Context, names []integrity.NameDigest) iter.Seq2[*api.Pipe, error]
- func (s *PipeStore) Scan(ctx context.Context) iter.Seq2[*api.Pipe, error]
- func (s *PipeStore) ScanDependencies(ctx context.Context, pipe integrity.NameDigest) iter.Seq2[*api.Pipe, error]
- func (s *PipeStore) ScanNames(ctx context.Context) iter.Seq2[integrity.NameDigest, error]
- func (s *PipeStore) Store(ctx context.Context, pipe *api.Pipe) error
- func (s *PipeStore) StoreBatch(ctx context.Context, objects []*api.Pipe) error
- type PlanStore
- type ResourceStore
- func (s *ResourceStore) StorePipeResource(ctx context.Context, resource *api.Resource, pipe *api.Pipe) error
- func (s *ResourceStore) StoreRuleResource(ctx context.Context, resource *api.Resource, rule nuggit.Rule) error
- func (s *ResourceStore) StoreViewResource(ctx context.Context, resource *api.Resource, viewUUID string) error
- type ResultStore
- type RuleStore
- type Type
- type UUID
- type ViewStore
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStopScan = errors.New("stop scan")
Functions ¶
Types ¶
type PipeStore ¶
type PipeStore struct {
// contains filtered or unexported fields
}
func NewPipeStore ¶
func (*PipeStore) DeleteBatch ¶
func (*PipeStore) ScanDependencies ¶ added in v1.5.0
type PlanStore ¶ added in v1.5.0
type PlanStore struct {
// contains filtered or unexported fields
}
func NewPlanStore ¶ added in v1.5.0
type ResourceStore ¶ added in v1.8.0
type ResourceStore struct {
// contains filtered or unexported fields
}
func NewResourceStore ¶ added in v1.8.0
func NewResourceStore(db *sql.DB) *ResourceStore
func (*ResourceStore) StorePipeResource ¶ added in v1.8.0
func (*ResourceStore) StoreRuleResource ¶ added in v1.8.1
func (*ResourceStore) StoreViewResource ¶ added in v1.8.0
type ResultStore ¶ added in v1.2.0
type ResultStore struct {
// contains filtered or unexported fields
}
func NewResultStore ¶ added in v1.2.0
func NewResultStore(db *sql.DB) *ResultStore
func (*ResultStore) StoreResults ¶ added in v1.5.0
func (s *ResultStore) StoreResults(ctx context.Context, event *api.TriggerEvent, results []api.TriggerResult) error
type RuleStore ¶ added in v1.6.1
type RuleStore struct {
// contains filtered or unexported fields
}
func NewRuleStore ¶ added in v1.6.1
func (*RuleStore) DeleteRule ¶ added in v1.8.0
func (*RuleStore) ScanMatched ¶ added in v1.6.1
type ViewStore ¶ added in v1.5.0
type ViewStore struct {
// contains filtered or unexported fields
}
func NewViewStore ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.