Documentation ¶
Index ¶
- type DB
- func (db *DB) AddEvent(r storage.AddEventRequest) error
- func (db *DB) AddNamespace(r storage.AddNamespaceRequest) error
- func (db *DB) AddPipeline(r storage.AddPipelineRequest) error
- func (db *DB) AddRun(r storage.AddRunRequest) error
- func (db *DB) AddTaskRun(r storage.AddTaskRunRequest) error
- func (db *DB) AddToken(r storage.AddTokenRequest) error
- func (db *DB) DeleteEvent(r storage.DeleteEventRequest) error
- func (db *DB) DeleteToken(r storage.DeleteTokenRequest) error
- func (db *DB) GetAllEvents(r storage.GetAllEventsRequest) ([]models.Event, error)
- func (db *DB) GetAllNamespaces(r storage.GetAllNamespacesRequest) ([]*models.Namespace, error)
- func (db *DB) GetAllPipelines(r storage.GetAllPipelinesRequest) ([]*models.Pipeline, error)
- func (db *DB) GetAllRuns(r storage.GetAllRunsRequest) ([]*models.Run, error)
- func (db *DB) GetAllTaskRuns(r storage.GetAllTaskRunsRequest) ([]*models.TaskRun, error)
- func (db *DB) GetAllTokens(r storage.GetAllTokensRequest) ([]*models.Token, error)
- func (db *DB) GetEvent(r storage.GetEventRequest) (models.Event, error)
- func (db *DB) GetNamespace(r storage.GetNamespaceRequest) (*models.Namespace, error)
- func (db *DB) GetPipeline(r storage.GetPipelineRequest) (*models.Pipeline, error)
- func (db *DB) GetRun(r storage.GetRunRequest) (*models.Run, error)
- func (db *DB) GetTaskRun(r storage.GetTaskRunRequest) (*models.TaskRun, error)
- func (db *DB) GetToken(r storage.GetTokenRequest) (*models.Token, error)
- func (db *DB) UpdateNamespace(r storage.UpdateNamespaceRequest) error
- func (db *DB) UpdatePipeline(r storage.UpdatePipelineRequest) error
- func (db *DB) UpdateRun(r storage.UpdateRunRequest) error
- func (db *DB) UpdateTaskRun(r storage.UpdateTaskRunRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct { *storm.DB // contains filtered or unexported fields }
DB is a representation of the bolt datastore
func (*DB) AddNamespace ¶
func (db *DB) AddNamespace(r storage.AddNamespaceRequest) error
func (*DB) AddPipeline ¶
func (db *DB) AddPipeline(r storage.AddPipelineRequest) error
func (*DB) AddTaskRun ¶
func (db *DB) AddTaskRun(r storage.AddTaskRunRequest) error
func (*DB) DeleteEvent ¶ added in v0.1.0
func (db *DB) DeleteEvent(r storage.DeleteEventRequest) error
func (*DB) DeleteToken ¶
func (db *DB) DeleteToken(r storage.DeleteTokenRequest) error
func (*DB) GetAllEvents ¶ added in v0.1.0
func (*DB) GetAllNamespaces ¶
func (*DB) GetAllPipelines ¶
GetAllPipelines returns all pipelines with given parameters.
func (*DB) GetAllRuns ¶
func (*DB) GetAllTaskRuns ¶
func (*DB) GetAllTokens ¶
func (*DB) GetNamespace ¶
GetNamespace returns a single namespace by id.
func (*DB) GetPipeline ¶
GetPipeline returns a single pipeline by id.
func (*DB) GetTaskRun ¶
GetTaskRun returns a single TaskRun by id
func (*DB) UpdateNamespace ¶
func (db *DB) UpdateNamespace(r storage.UpdateNamespaceRequest) error
func (*DB) UpdatePipeline ¶
func (db *DB) UpdatePipeline(r storage.UpdatePipelineRequest) error
func (*DB) UpdateTaskRun ¶
func (db *DB) UpdateTaskRun(r storage.UpdateTaskRunRequest) error
Click to show internal directories.
Click to hide internal directories.