Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Put(data *ale.JenkinsData, buildID string) error Get(buildID string) (*ale.JenkinsData, error) Has(buildID string) (bool, error) Remove(buildID string) error }
Database interface providing the contract that we expect
func NewDatastore ¶
func NewDatastore(ctx context.Context, cfg *config.Config, dsClient datastoreInterface) (Database, error)
NewDatastore creates a new Datastore database object
func NewFilestore ¶
NewFilestore creates a new Datastore database object
type Datastore ¶
type Datastore struct { Client datastoreInterface // contains filtered or unexported fields }
Datastore is a Google Cloud Datastore implementation of the Database interface
func (*Datastore) Get ¶
func (db *Datastore) Get(buildID string) (*ale.JenkinsData, error)
Get retrieves data from the database
type Filestore ¶
type Filestore struct {
// contains filtered or unexported fields
}
Filestore is a hacky filesystem "database". To be removed.
func (*Filestore) Get ¶
func (db *Filestore) Get(buildID string) (*ale.JenkinsData, error)
Get reads a file from the filesystem
Click to show internal directories.
Click to hide internal directories.