Documentation ¶
Index ¶
- Variables
- func IsApiKeyNotFound(err error) bool
- func IsBuildNotFound(err error) bool
- func IsEnvironmentVariableNotFound(err error) bool
- func IsGitProviderNotFound(err error) bool
- func IsJobInProgress(err error) bool
- func IsJobNotFound(err error) bool
- func IsPrebuildNotFound(err error) bool
- func IsRunnerMetadataNotFound(err error) bool
- func IsRunnerNotFound(err error) bool
- func IsTargetConfigNotFound(err error) bool
- func IsTargetMetadataNotFound(err error) bool
- func IsTargetNotFound(err error) bool
- func IsWorkspaceMetadataNotFound(err error) bool
- func IsWorkspaceNotFound(err error) bool
- func IsWorkspaceTemplateNotFound(err error) bool
- func RecoverAndRollback(ctx context.Context, store IStore)
- type ApiKeyStore
- type BuildFilter
- type BuildStore
- type EnvironmentVariableStore
- type GitProviderConfigStore
- type IStore
- type JobFilter
- type JobStore
- type PrebuildFilter
- type RunnerMetadataStore
- type RunnerStore
- type TargetConfigStore
- type TargetFilter
- type TargetMetadataStore
- type TargetStore
- type TransactionKey
- type WorkspaceMetadataStore
- type WorkspaceStore
- type WorkspaceTemplateFilter
- type WorkspaceTemplateStore
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrJobNotFound = errors.New("job not found") ErrJobInProgress = errors.New("another job is in progress") )
View Source
var ( ErrTargetConfigNotFound = errors.New("target config not found") ErrTargetConfigAlreadyExists = errors.New("target config with the same name already exists") )
View Source
var ( ErrWorkspaceTemplateNotFound = errors.New("workspace template not found") ErrPrebuildNotFound = errors.New("prebuild not found") )
View Source
var (
ErrApiKeyNotFound = errors.New("api key not found")
)
View Source
var (
ErrBuildNotFound = errors.New("build not found")
)
View Source
var (
ErrEnvironmentVariableNotFound = errors.New("environment variable not found")
)
View Source
var (
ErrGitProviderConfigNotFound = errors.New("git provider config not found")
)
View Source
var (
ErrRunnerMetadataNotFound = errors.New("runner metadata not found")
)
View Source
var (
ErrRunnerNotFound = errors.New("runner not found")
)
View Source
var (
ErrTargetMetadataNotFound = errors.New("target metadata not found")
)
View Source
var (
ErrTargetNotFound = errors.New("target not found")
)
View Source
var (
ErrWorkspaceMetadataNotFound = errors.New("workspace metadata not found")
)
View Source
var (
ErrWorkspaceNotFound = errors.New("workspace not found")
)
Functions ¶
func IsApiKeyNotFound ¶
func IsBuildNotFound ¶
func IsGitProviderNotFound ¶
func IsJobInProgress ¶
func IsJobNotFound ¶
func IsPrebuildNotFound ¶
func IsRunnerNotFound ¶
func IsTargetConfigNotFound ¶
func IsTargetNotFound ¶
func IsWorkspaceNotFound ¶
func RecoverAndRollback ¶
Types ¶
type ApiKeyStore ¶
type ApiKeyStore interface { IStore List(ctx context.Context) ([]*models.ApiKey, error) Find(ctx context.Context, key string) (*models.ApiKey, error) FindByName(ctx context.Context, name string) (*models.ApiKey, error) Save(ctx context.Context, apiKey *models.ApiKey) error Delete(ctx context.Context, apiKey *models.ApiKey) error }
type BuildFilter ¶
type BuildFilter struct { Id *string PrebuildIds *[]string GetNewest *bool BuildConfig *models.BuildConfig RepositoryUrl *string Branch *string EnvVars *map[string]string }
func (*BuildFilter) PrebuildIdsToInterface ¶
func (f *BuildFilter) PrebuildIdsToInterface() []interface{}
type BuildStore ¶
type GitProviderConfigStore ¶
type GitProviderConfigStore interface { IStore List(ctx context.Context) ([]*models.GitProviderConfig, error) Find(ctx context.Context, id string) (*models.GitProviderConfig, error) Save(ctx context.Context, gpc *models.GitProviderConfig) error Delete(ctx context.Context, gpc *models.GitProviderConfig) error }
type IStore ¶
type IStore interface { BeginTransaction(ctx context.Context) (context.Context, error) CommitTransaction(ctx context.Context) error // If an error ocurrs while rolling back the transaction, the error should be wrapped and returned, // otherwise, the original error is returned RollbackTransaction(ctx context.Context, err error) error }
type JobFilter ¶
type JobFilter struct { Id *string ResourceId *string RunnerIdOrIsNil *string ResourceType *models.ResourceType States *[]models.JobState Actions *[]models.JobAction }
func (*JobFilter) ActionsToInterface ¶
func (f *JobFilter) ActionsToInterface() []interface{}
func (*JobFilter) StatesToInterface ¶
func (f *JobFilter) StatesToInterface() []interface{}
type PrebuildFilter ¶
type RunnerMetadataStore ¶
type RunnerMetadataStore interface { IStore List(ctx context.Context) ([]*models.RunnerMetadata, error) Find(ctx context.Context, runnerId string) (*models.RunnerMetadata, error) Save(ctx context.Context, metadata *models.RunnerMetadata) error Delete(ctx context.Context, metadata *models.RunnerMetadata) error }
type RunnerStore ¶
type TargetConfigStore ¶
type TargetFilter ¶
type TargetMetadataStore ¶
type TargetStore ¶
type TransactionKey ¶
type TransactionKey struct{}
type WorkspaceMetadataStore ¶
type WorkspaceStore ¶
type WorkspaceTemplateFilter ¶
type WorkspaceTemplateStore ¶
type WorkspaceTemplateStore interface { IStore List(ctx context.Context, filter *WorkspaceTemplateFilter) ([]*models.WorkspaceTemplate, error) Find(ctx context.Context, filter *WorkspaceTemplateFilter) (*models.WorkspaceTemplate, error) Save(ctx context.Context, workspaceTemplate *models.WorkspaceTemplate) error Delete(ctx context.Context, workspaceTemplate *models.WorkspaceTemplate) error }
Click to show internal directories.
Click to hide internal directories.