db

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSQLiteConnection

func GetSQLiteConnection(dbPath string) *gorm.DB

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 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 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(workspace *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