dao

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backup added in v0.0.15

type Backup interface {
	Export(file afs.Path) error

	Import(file afs.Path) error
}

Backup [inject:"#wpm-database-backup-dao"]

type ExampleDAO

type ExampleDAO interface {
	Find(id dxo.ExampleID) (*entity.Example, error)

	ListAll() ([]*entity.Example, error)

	Insert(o *entity.Example) (*entity.Example, error)

	Update(id dxo.ExampleID, o *entity.Example) (*entity.Example, error)

	Remove(id dxo.ExampleID) error
}

ExampleDAO ...

type ExecutableDAO

type ExecutableDAO interface {
	Find(id dxo.ExecutableID) (*entity.Executable, error)
	FindByPath(path string) (*entity.Executable, error)
	FindByName(name string) (*entity.Executable, error)

	ListAll() ([]*entity.Executable, error)

	Insert(o *entity.Executable) (*entity.Executable, error)
	Update(id dxo.ExecutableID, o *entity.Executable) (*entity.Executable, error)
	Remove(id dxo.ExecutableID) error
}

ExecutableDAO ...

type IntentTemplateDAO

type IntentTemplateDAO interface {
	Find(id dxo.IntentTemplateID) (*entity.IntentTemplate, error)

	ListAll() ([]*entity.IntentTemplate, error)

	// find items by Action & Executable & Target
	ListByAET(o *entity.IntentTemplate) ([]*entity.IntentTemplate, error)

	Insert(o *entity.IntentTemplate) (*entity.IntentTemplate, error)

	Update(id dxo.IntentTemplateID, o *entity.IntentTemplate) (*entity.IntentTemplate, error)

	Remove(id dxo.IntentTemplateID) error
}

IntentTemplateDAO ...

type LocalRepositoryDAO

type LocalRepositoryDAO interface {
	Find(id dxo.LocalRepositoryID) (*entity.LocalRepository, error)
	FindByName(name string) (*entity.LocalRepository, error)
	FindByUUID(uuid dxo.UUID) (*entity.LocalRepository, error)

	FindByPath(path string) (*entity.LocalRepository, error)
	FindByDotGit(path string) (*entity.LocalRepository, error)
	FindByWorkingDir(path string) (*entity.LocalRepository, error)

	ListAll() ([]*entity.LocalRepository, error)
	ListByIds(ids []dxo.LocalRepositoryID) ([]*entity.LocalRepository, error)

	Insert(o *entity.LocalRepository) (*entity.LocalRepository, error)
	Update(id dxo.LocalRepositoryID, o *entity.LocalRepository) (*entity.LocalRepository, error)
	Remove(id dxo.LocalRepositoryID) error
}

LocalRepositoryDAO ...

type MediaDAO

type MediaDAO interface {
	Find(id dxo.MediaID) (*entity.Media, error)

	FindByPath(path string) (*entity.Media, error)

	ListByIDs(ids []dxo.MediaID) ([]*entity.Media, error)

	ListAll() ([]*entity.Media, error)

	Insert(o *entity.Media) (*entity.Media, error)

	Update(id dxo.MediaID, o *entity.Media) (*entity.Media, error)

	Remove(id dxo.MediaID) error
}

MediaDAO ...

type ProjectDAO

type ProjectDAO interface {
	Find(id dxo.ProjectID) (*entity.Project, error)
	FindByOwnerRepository(id dxo.LocalRepositoryID) ([]*entity.Project, error)

	ListAll() ([]*entity.Project, error)
	ListByIds(ids []dxo.ProjectID) ([]*entity.Project, error)

	Insert(o *entity.Project) (*entity.Project, error)
	Update(id dxo.ProjectID, o *entity.Project) (*entity.Project, error)
	Remove(id dxo.ProjectID) error
}

ProjectDAO ...

type ProjectTypeDAO added in v0.0.14

type ProjectTypeDAO interface {
	Find(id dxo.ProjectTypeID) (*entity.ProjectType, error)

	ListAll() ([]*entity.ProjectType, error)

	Insert(o *entity.ProjectType) (*entity.ProjectType, error)

	Update(id dxo.ProjectTypeID, o *entity.ProjectType) (*entity.ProjectType, error)

	Remove(id dxo.ProjectTypeID) error
}

ProjectTypeDAO ...

type RemoteRepositoryDAO

RemoteRepositoryDAO ...

type SettingDAO added in v0.0.14

type SettingDAO interface {
	Find(id dxo.SettingID) (*entity.Setting, error)

	FindByName(name string) (*entity.Setting, error)

	ListAll() ([]*entity.Setting, error)

	Insert(o *entity.Setting) (*entity.Setting, error)

	Update(id dxo.SettingID, o *entity.Setting) (*entity.Setting, error)

	Remove(id dxo.SettingID) error

	Put(name string, o *entity.Setting)

	Get(name string, def *entity.Setting) *entity.Setting
}

SettingDAO ...

type SystemConfig

type SystemConfig interface {
	Get(name string) (*entity.SystemConfig, error)
	Save(name string, cfg *entity.SystemConfig) error

	GetProperties(name string) (collection.Properties, error)
	SaveProperties(name string, cfg collection.Properties) error
}

type UserConfig

type UserConfig interface {
	Get(name string) (*entity.UserConfig, error)
	Save(name string, cfg *entity.UserConfig) error

	GetProperties(name string) (collection.Properties, error)
	SaveProperties(name string, cfg collection.Properties) error
}

Jump to

Keyboard shortcuts

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