Documentation ¶
Index ¶
- func Migrate(db *sql.DB) error
- type JobStore
- func (s *JobStore) Find(ctx context.Context, filter []*v1.FilterExpression, ...) (slice []v1.JobStatus, total int, err error)
- func (s *JobStore) Get(ctx context.Context, name string) (*v1.JobStatus, error)
- func (s *JobStore) GetJobSpec(name string) ([]byte, error)
- func (s *JobStore) RegisterPrometheusMetrics(reg prometheus.Registerer)
- func (s *JobStore) Store(ctx context.Context, job v1.JobStatus) error
- func (s *JobStore) StoreJobSpec(name string, data []byte) error
- type NumberGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JobStore ¶
JobStore stores jobs in a Postgres database
func NewJobStore ¶
NewJobStore creates a new SQL job store
func (*JobStore) Find ¶
func (s *JobStore) Find(ctx context.Context, filter []*v1.FilterExpression, order []*v1.OrderExpression, start, limit int) (slice []v1.JobStatus, total int, err error)
Find searches for jobs based on their annotations. If filter is empty no filter is applied.
func (*JobStore) GetJobSpec ¶
GetJobSpec retrieves a particular job bassd on its name.
func (*JobStore) RegisterPrometheusMetrics ¶
func (s *JobStore) RegisterPrometheusMetrics(reg prometheus.Registerer)
RegisterPrometheusMetrics registers metrics on the registerer with MustRegister
type NumberGroup ¶
NumberGroup provides postgres backed number groups
func NewNumberGroup ¶
func NewNumberGroup(db *sql.DB) (*NumberGroup, error)
NewNumberGroup creates a new SQL number group store
Click to show internal directories.
Click to hide internal directories.