db

package
v0.29.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSQLiteConnection

func GetSQLiteConnection(dbPath string) *gorm.DB

func IsRecordNotFound added in v0.18.0

func IsRecordNotFound(err error) bool

Types

type ApiKeyStore

type ApiKeyStore struct {
	// contains filtered or unexported fields
}

func NewApiKeyStore

func NewApiKeyStore(db *gorm.DB) (*ApiKeyStore, error)

func (*ApiKeyStore) Delete

func (a *ApiKeyStore) Delete(apiKey *apikey.ApiKey) error

func (*ApiKeyStore) Find

func (a *ApiKeyStore) Find(key string) (*apikey.ApiKey, error)

func (*ApiKeyStore) FindByName

func (a *ApiKeyStore) FindByName(name string) (*apikey.ApiKey, error)

func (*ApiKeyStore) List

func (a *ApiKeyStore) List() ([]*apikey.ApiKey, error)

func (*ApiKeyStore) Save

func (a *ApiKeyStore) Save(apiKey *apikey.ApiKey) error

type BuildStore added in v0.25.0

type BuildStore struct {
	Lock sync.Mutex
	// contains filtered or unexported fields
}

func NewBuildStore added in v0.25.0

func NewBuildStore(db *gorm.DB) (*BuildStore, error)

func (*BuildStore) Delete added in v0.25.0

func (b *BuildStore) Delete(id string) error

func (*BuildStore) Find added in v0.25.0

func (b *BuildStore) Find(filter *build.Filter) (*build.Build, error)

func (*BuildStore) List added in v0.25.0

func (b *BuildStore) List(filter *build.Filter) ([]*build.Build, error)

func (*BuildStore) Save added in v0.25.0

func (b *BuildStore) Save(build *build.Build) error

type ContainerRegistryStore added in v0.13.0

type ContainerRegistryStore struct {
	// contains filtered or unexported fields
}

func NewContainerRegistryStore added in v0.13.0

func NewContainerRegistryStore(db *gorm.DB) (*ContainerRegistryStore, error)

func (*ContainerRegistryStore) Delete added in v0.13.0

func (*ContainerRegistryStore) Find added in v0.13.0

func (*ContainerRegistryStore) List added in v0.13.0

func (*ContainerRegistryStore) Save added in v0.13.0

type GitProviderConfigStore

type GitProviderConfigStore struct {
	// contains filtered or unexported fields
}

func NewGitProviderConfigStore

func NewGitProviderConfigStore(db *gorm.DB) (*GitProviderConfigStore, error)

func (*GitProviderConfigStore) Delete

func (*GitProviderConfigStore) Find

func (*GitProviderConfigStore) List

func (*GitProviderConfigStore) Save

type ProfileDataStore added in v0.15.0

type ProfileDataStore struct {
	// contains filtered or unexported fields
}

func NewProfileDataStore added in v0.15.0

func NewProfileDataStore(db *gorm.DB) (*ProfileDataStore, error)

func (*ProfileDataStore) Delete added in v0.15.0

func (p *ProfileDataStore) Delete() error

func (*ProfileDataStore) Get added in v0.15.0

func (*ProfileDataStore) Save added in v0.15.0

func (p *ProfileDataStore) Save(profileData *profiledata.ProfileData) error

type ProjectConfigStore added in v0.24.0

type ProjectConfigStore struct {
	// contains filtered or unexported fields
}

func NewProjectConfigStore added in v0.24.0

func NewProjectConfigStore(db *gorm.DB) (*ProjectConfigStore, error)

func (*ProjectConfigStore) Delete added in v0.24.0

func (s *ProjectConfigStore) Delete(projectConfig *config.ProjectConfig) error

func (*ProjectConfigStore) Find added in v0.24.0

func (*ProjectConfigStore) List added in v0.24.0

func (*ProjectConfigStore) Save added in v0.24.0

func (s *ProjectConfigStore) Save(projectConfig *config.ProjectConfig) error

type ProviderTargetStore

type ProviderTargetStore struct {
	// contains filtered or unexported fields
}

func NewProviderTargetStore

func NewProviderTargetStore(db *gorm.DB) (*ProviderTargetStore, error)

func (*ProviderTargetStore) Delete

func (s *ProviderTargetStore) Delete(target *provider.ProviderTarget) error

func (*ProviderTargetStore) Find

func (s *ProviderTargetStore) Find(targetName string) (*provider.ProviderTarget, error)

func (*ProviderTargetStore) List

func (*ProviderTargetStore) Save

type WorkspaceStore

type WorkspaceStore struct {
	// contains filtered or unexported fields
}

func NewWorkspaceStore

func NewWorkspaceStore(db *gorm.DB) (*WorkspaceStore, error)

func (*WorkspaceStore) Delete

func (w *WorkspaceStore) Delete(ws *workspace.Workspace) error

func (*WorkspaceStore) Find

func (w *WorkspaceStore) Find(idOrName string) (*workspace.Workspace, error)

func (*WorkspaceStore) List

func (w *WorkspaceStore) List() ([]*workspace.Workspace, error)

func (*WorkspaceStore) Save

func (w *WorkspaceStore) Save(workspace *workspace.Workspace) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL