Documentation ¶
Index ¶
- Variables
- type AddDockerRegistryAuthRequest
- type AddNamespaceRequest
- type AddPipelineRequest
- type AddRunRequest
- type AddTaskRunRequest
- type AddTokenRequest
- type AddTriggerEventRequest
- type DeleteRunRequest
- type DeleteTokenRequest
- type Engine
- type EngineType
- type GetAllDockerRegistryAuthsRequest
- type GetAllNamespacesRequest
- type GetAllPipelinesRequest
- type GetAllRunRegistrationsRequest
- type GetAllRunsRequest
- type GetAllTaskRunsRequest
- type GetAllTokensRequest
- type GetAllTriggerEventsRequest
- type GetDockerRegistryAuthRequest
- type GetNamespaceRequest
- type GetPipelineRequest
- type GetRunRequest
- type GetTaskRunRequest
- type GetTokenRequest
- type GetTriggerEventRequest
- type RegisterRunRequest
- type RegistrationExistsRequest
- type RemoveDockerRegistryAuthRequest
- type RunRegistryKey
- type UnregisterRunRequest
- type UpdateNamespaceRequest
- type UpdatePipelineRequest
- type UpdateRunRequest
- type UpdateTaskRunRequest
- type UpdateTriggerEventRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEntityNotFound is returned when a certain entity could not be located. ErrEntityNotFound = errors.New("storage: entity not found") // ErrEntityExists is returned when a certain entity was located but not meant to be. ErrEntityExists = errors.New("storage: entity already exists") // ErrPreconditionFailure is returned when there was a validation error with the parameters passed. ErrPreconditionFailure = errors.New("storage: parameters did not pass validation") )
Functions ¶
This section is empty.
Types ¶
type AddDockerRegistryAuthRequest ¶
type AddDockerRegistryAuthRequest struct {
DockerRegistryAuth *models.DockerRegistryAuth
}
type AddNamespaceRequest ¶
type AddPipelineRequest ¶
type AddRunRequest ¶
type AddTaskRunRequest ¶
type AddTokenRequest ¶
type AddTriggerEventRequest ¶
type AddTriggerEventRequest struct {
Event *models.TriggerEvent
}
type DeleteRunRequest ¶
type DeleteTokenRequest ¶
type DeleteTokenRequest struct {
Hash string
}
type Engine ¶
type Engine interface { GetAllNamespaces(r GetAllNamespacesRequest) ([]*models.Namespace, error) AddNamespace(r AddNamespaceRequest) error GetNamespace(r GetNamespaceRequest) (*models.Namespace, error) UpdateNamespace(r UpdateNamespaceRequest) error GetAllTokens(r GetAllTokensRequest) ([]*models.Token, error) AddToken(r AddTokenRequest) error GetToken(r GetTokenRequest) (*models.Token, error) DeleteToken(r DeleteTokenRequest) error GetAllPipelines(r GetAllPipelinesRequest) ([]*models.Pipeline, error) GetPipeline(r GetPipelineRequest) (*models.Pipeline, error) AddPipeline(r AddPipelineRequest) error UpdatePipeline(r UpdatePipelineRequest) error GetAllRuns(r GetAllRunsRequest) ([]*models.Run, error) GetRun(r GetRunRequest) (*models.Run, error) AddRun(r AddRunRequest) error UpdateRun(r UpdateRunRequest) error GetAllTaskRuns(r GetAllTaskRunsRequest) ([]*models.TaskRun, error) GetTaskRun(r GetTaskRunRequest) (*models.TaskRun, error) AddTaskRun(r AddTaskRunRequest) error UpdateTaskRun(r UpdateTaskRunRequest) error GetAllTriggerEvents(r GetAllTriggerEventsRequest) ([]*models.TriggerEvent, error) GetTriggerEvent(r GetTriggerEventRequest) (*models.TriggerEvent, error) AddTriggerEvent(r AddTriggerEventRequest) error UpdateTriggerEvent(r UpdateTriggerEventRequest) error GetAllRunRegistrations(r GetAllRunRegistrationsRequest) (map[RunRegistryKey]struct{}, error) RegisterRun(r RegisterRunRequest) error UnregisterRun(r UnregisterRunRequest) error RegistrationExists(r RegistrationExistsRequest) bool GetAllDockerRegistryAuths(r GetAllDockerRegistryAuthsRequest) ([]*models.DockerRegistryAuth, error) GetDockerRegistryAuth(r GetDockerRegistryAuthRequest) (*models.DockerRegistryAuth, error) AddDockerRegistryAuth(r AddDockerRegistryAuthRequest) error RemoveDockerRegistryAuth(r RemoveDockerRegistryAuthRequest) error }
Engine represents backend storage implementations where items can be persisted.
type EngineType ¶
type EngineType string
EngineType type represents the different possible storage engines available
const ( // StorageEngineBoltDB represents a boltDB storage engine. // A file based key-value store.(https://pkg.go.dev/go.etcd.io/bbolt) used through (https://github.com/asdine/storm) StorageEngineBoltDB EngineType = "bolt" )
type GetAllDockerRegistryAuthsRequest ¶
type GetAllDockerRegistryAuthsRequest struct{}
type GetAllNamespacesRequest ¶
type GetAllPipelinesRequest ¶
type GetAllRunRegistrationsRequest ¶
type GetAllRunRegistrationsRequest struct{}
type GetAllRunsRequest ¶
type GetAllTaskRunsRequest ¶
type GetAllTokensRequest ¶
type GetDockerRegistryAuthRequest ¶
type GetDockerRegistryAuthRequest struct {
Registry string
}
type GetNamespaceRequest ¶
type GetNamespaceRequest struct {
ID string
}
type GetPipelineRequest ¶
type GetRunRequest ¶
type GetTaskRunRequest ¶
type GetTokenRequest ¶
type GetTokenRequest struct {
Hash string
}
type GetTriggerEventRequest ¶
type RegisterRunRequest ¶
type RemoveDockerRegistryAuthRequest ¶
type RemoveDockerRegistryAuthRequest struct {
Registry string
}
type RunRegistryKey ¶
type UnregisterRunRequest ¶
type UpdateNamespaceRequest ¶
type UpdatePipelineRequest ¶
type UpdateRunRequest ¶
type UpdateTaskRunRequest ¶
type UpdateTriggerEventRequest ¶
type UpdateTriggerEventRequest struct {
Event *models.TriggerEvent
}
Click to show internal directories.
Click to hide internal directories.