Documentation ¶
Index ¶
- func New() *repo.Container
- func NewAsset() repo.Asset
- func NewAuthRequest() repo.AuthRequest
- func NewConfig() repo.Config
- func NewDataset() repo.Dataset
- func NewDatasetSchema() repo.DatasetSchema
- func NewLayer() repo.Layer
- func NewLock() repo.Lock
- func NewPlugin() repo.Plugin
- func NewProject() repo.Project
- func NewProperty() repo.Property
- func NewPropertySchema() repo.PropertySchema
- func NewScene() repo.Scene
- func NewSceneLock() repo.SceneLock
- func NewTag() repo.Tag
- func NewTeam() repo.Team
- func NewUser() repo.User
- type Asset
- func (r *Asset) Filtered(f repo.TeamFilter) repo.Asset
- func (r *Asset) FindByID(ctx context.Context, id id.AssetID) (*asset.Asset, error)
- func (r *Asset) FindByIDs(ctx context.Context, ids id.AssetIDList) ([]*asset.Asset, error)
- func (r *Asset) FindByTeam(ctx context.Context, id id.TeamID, filter repo.AssetFilter) ([]*asset.Asset, *usecase.PageInfo, error)
- func (r *Asset) Remove(ctx context.Context, id id.AssetID) error
- func (r *Asset) Save(ctx context.Context, a *asset.Asset) error
- type AuthRequest
- func (r *AuthRequest) FindByCode(_ context.Context, s string) (*auth.Request, error)
- func (r *AuthRequest) FindByID(_ context.Context, id id.AuthRequestID) (*auth.Request, error)
- func (r *AuthRequest) FindBySubject(_ context.Context, s string) (*auth.Request, error)
- func (r *AuthRequest) Remove(_ context.Context, requestID id.AuthRequestID) error
- func (r *AuthRequest) Save(_ context.Context, request *auth.Request) error
- type Config
- type Dataset
- func (r *Dataset) CountBySchema(ctx context.Context, id id.DatasetSchemaID) (int, error)
- func (r *Dataset) Filtered(f repo.SceneFilter) repo.Dataset
- func (r *Dataset) FindByID(ctx context.Context, id id.DatasetID) (*dataset.Dataset, error)
- func (r *Dataset) FindByIDs(ctx context.Context, ids id.DatasetIDList) (dataset.List, error)
- func (r *Dataset) FindBySchema(ctx context.Context, id id.DatasetSchemaID, p *usecase.Pagination) (dataset.List, *usecase.PageInfo, error)
- func (r *Dataset) FindBySchemaAll(ctx context.Context, id id.DatasetSchemaID) (dataset.List, error)
- func (r *Dataset) FindGraph(ctx context.Context, i id.DatasetID, fields id.DatasetFieldIDList) (dataset.List, error)
- func (r *Dataset) Remove(ctx context.Context, id id.DatasetID) error
- func (r *Dataset) RemoveAll(ctx context.Context, ids id.DatasetIDList) error
- func (r *Dataset) RemoveByScene(ctx context.Context, sceneID id.SceneID) error
- func (r *Dataset) Save(ctx context.Context, d *dataset.Dataset) error
- func (r *Dataset) SaveAll(ctx context.Context, dl dataset.List) error
- type DatasetSchema
- func (r *DatasetSchema) Filtered(f repo.SceneFilter) repo.DatasetSchema
- func (r *DatasetSchema) FindAllDynamicByScene(ctx context.Context, s id.SceneID) (dataset.SchemaList, error)
- func (r *DatasetSchema) FindByID(ctx context.Context, id id.DatasetSchemaID) (*dataset.Schema, error)
- func (r *DatasetSchema) FindByIDs(ctx context.Context, ids id.DatasetSchemaIDList) (dataset.SchemaList, error)
- func (r *DatasetSchema) FindByScene(ctx context.Context, s id.SceneID, p *usecase.Pagination) (dataset.SchemaList, *usecase.PageInfo, error)
- func (r *DatasetSchema) FindBySceneAll(ctx context.Context, s id.SceneID) (dataset.SchemaList, error)
- func (r *DatasetSchema) FindBySceneAndSource(ctx context.Context, s id.SceneID, src string) (dataset.SchemaList, error)
- func (r *DatasetSchema) FindDynamicByID(ctx context.Context, id id.DatasetSchemaID) (*dataset.Schema, error)
- func (r *DatasetSchema) Remove(ctx context.Context, id id.DatasetSchemaID) error
- func (r *DatasetSchema) RemoveAll(ctx context.Context, ids id.DatasetSchemaIDList) error
- func (r *DatasetSchema) RemoveByScene(ctx context.Context, sceneID id.SceneID) error
- func (r *DatasetSchema) Save(ctx context.Context, d *dataset.Schema) error
- func (r *DatasetSchema) SaveAll(ctx context.Context, dl dataset.SchemaList) error
- type Layer
- func (r *Layer) Filtered(f repo.SceneFilter) repo.Layer
- func (r *Layer) FindAllByDatasetSchema(ctx context.Context, datasetSchemaID id.DatasetSchemaID) (layer.List, error)
- func (r *Layer) FindByID(ctx context.Context, id id.LayerID) (layer.Layer, error)
- func (r *Layer) FindByIDs(ctx context.Context, ids id.LayerIDList) (layer.List, error)
- func (r *Layer) FindByPluginAndExtension(_ context.Context, pid id.PluginID, eid *id.PluginExtensionID) (layer.List, error)
- func (r *Layer) FindByPluginAndExtensionOfBlocks(_ context.Context, pid id.PluginID, eid *id.PluginExtensionID) (layer.List, error)
- func (r *Layer) FindByProperty(ctx context.Context, id id.PropertyID) (layer.Layer, error)
- func (r *Layer) FindByScene(ctx context.Context, sceneID id.SceneID) (layer.List, error)
- func (r *Layer) FindByTag(ctx context.Context, tagID id.TagID) (layer.List, error)
- func (r *Layer) FindGroupByID(ctx context.Context, id id.LayerID) (*layer.Group, error)
- func (r *Layer) FindGroupByIDs(ctx context.Context, ids id.LayerIDList) (layer.GroupList, error)
- func (r *Layer) FindGroupBySceneAndLinkedDatasetSchema(ctx context.Context, s id.SceneID, ds id.DatasetSchemaID) (layer.GroupList, error)
- func (r *Layer) FindItemByID(ctx context.Context, id id.LayerID) (*layer.Item, error)
- func (r *Layer) FindItemByIDs(ctx context.Context, ids id.LayerIDList) (layer.ItemList, error)
- func (r *Layer) FindParentByID(ctx context.Context, id id.LayerID) (*layer.Group, error)
- func (r *Layer) FindParentsByIDs(_ context.Context, ids id.LayerIDList) (layer.GroupList, error)
- func (r *Layer) Remove(ctx context.Context, id id.LayerID) error
- func (r *Layer) RemoveAll(ctx context.Context, ids id.LayerIDList) error
- func (r *Layer) RemoveByScene(ctx context.Context, sceneID id.SceneID) error
- func (r *Layer) Save(ctx context.Context, l layer.Layer) error
- func (r *Layer) SaveAll(ctx context.Context, ll layer.List) error
- func (r *Layer) UpdatePlugin(ctx context.Context, old id.PluginID, new id.PluginID) error
- type Lock
- type Plugin
- func (r *Plugin) Filtered(f repo.SceneFilter) repo.Plugin
- func (r *Plugin) FindByID(ctx context.Context, id id.PluginID) (*plugin.Plugin, error)
- func (r *Plugin) FindByIDs(ctx context.Context, ids []id.PluginID) ([]*plugin.Plugin, error)
- func (r *Plugin) Remove(ctx context.Context, id id.PluginID) error
- func (r *Plugin) Save(ctx context.Context, p *plugin.Plugin) error
- type Project
- func (r *Project) CountByTeam(ctx context.Context, team id.TeamID) (c int, err error)
- func (r *Project) Filtered(f repo.TeamFilter) repo.Project
- func (r *Project) FindByID(ctx context.Context, id id.ProjectID) (*project.Project, error)
- func (r *Project) FindByIDs(ctx context.Context, ids id.ProjectIDList) ([]*project.Project, error)
- func (r *Project) FindByPublicName(ctx context.Context, name string) (*project.Project, error)
- func (r *Project) FindByTeam(ctx context.Context, id id.TeamID, p *usecase.Pagination) ([]*project.Project, *usecase.PageInfo, error)
- func (r *Project) Remove(ctx context.Context, id id.ProjectID) error
- func (r *Project) Save(ctx context.Context, p *project.Project) error
- type Property
- func (r *Property) Filtered(f repo.SceneFilter) repo.Property
- func (r *Property) FindByDataset(ctx context.Context, sid id.DatasetSchemaID, did id.DatasetID) (property.List, error)
- func (r *Property) FindByID(ctx context.Context, id id.PropertyID) (*property.Property, error)
- func (r *Property) FindByIDs(ctx context.Context, ids id.PropertyIDList) (property.List, error)
- func (r *Property) FindByPlugin(_ context.Context, plugin id.PluginID, scene id.SceneID) (property.List, error)
- func (r *Property) FindBySchema(_ context.Context, schemas []id.PropertySchemaID, scene id.SceneID) (property.List, error)
- func (r *Property) FindLinkedAll(ctx context.Context, s id.SceneID) (property.List, error)
- func (r *Property) Remove(ctx context.Context, id id.PropertyID) error
- func (r *Property) RemoveAll(ctx context.Context, ids id.PropertyIDList) error
- func (r *Property) RemoveByScene(ctx context.Context, sceneID id.SceneID) error
- func (r *Property) Save(ctx context.Context, p *property.Property) error
- func (r *Property) SaveAll(ctx context.Context, pl property.List) error
- func (r *Property) UpdateSchemaPlugin(ctx context.Context, old id.PluginID, new id.PluginID, scene id.SceneID) error
- type PropertySchema
- func (r *PropertySchema) Filtered(f repo.SceneFilter) repo.PropertySchema
- func (r *PropertySchema) FindByID(ctx context.Context, id id.PropertySchemaID) (*property.Schema, error)
- func (r *PropertySchema) FindByIDs(ctx context.Context, ids []id.PropertySchemaID) (property.SchemaList, error)
- func (r *PropertySchema) Remove(ctx context.Context, id id.PropertySchemaID) error
- func (r *PropertySchema) RemoveAll(ctx context.Context, ids []id.PropertySchemaID) error
- func (r *PropertySchema) Save(ctx context.Context, p *property.Schema) error
- func (r *PropertySchema) SaveAll(ctx context.Context, p property.SchemaList) error
- type Scene
- func (r *Scene) Filtered(f repo.TeamFilter) repo.Scene
- func (r *Scene) FindByID(ctx context.Context, id id.SceneID) (*scene.Scene, error)
- func (r *Scene) FindByIDs(ctx context.Context, ids id.SceneIDList) (scene.List, error)
- func (r *Scene) FindByProject(ctx context.Context, id id.ProjectID) (*scene.Scene, error)
- func (r *Scene) FindByTeam(ctx context.Context, teams ...id.TeamID) (scene.List, error)
- func (r *Scene) Remove(ctx context.Context, id id.SceneID) error
- func (r *Scene) Save(ctx context.Context, s *scene.Scene) error
- type Tag
- func (r *Tag) Filtered(f repo.SceneFilter) repo.Tag
- func (r *Tag) FindByID(ctx context.Context, tagID id.TagID) (tag.Tag, error)
- func (r *Tag) FindByIDs(ctx context.Context, tids id.TagIDList) ([]*tag.Tag, error)
- func (r *Tag) FindByScene(ctx context.Context, sceneID id.SceneID) ([]*tag.Tag, error)
- func (r *Tag) FindGroupByID(ctx context.Context, tagID id.TagID) (*tag.Group, error)
- func (r *Tag) FindGroupByIDs(ctx context.Context, tagIDs id.TagIDList) ([]*tag.Group, error)
- func (r *Tag) FindGroupByItem(ctx context.Context, tagID id.TagID) (*tag.Group, error)
- func (r *Tag) FindItemByID(ctx context.Context, tagID id.TagID) (*tag.Item, error)
- func (r *Tag) FindItemByIDs(ctx context.Context, tagIDs id.TagIDList) ([]*tag.Item, error)
- func (r *Tag) FindRootsByScene(ctx context.Context, sceneID id.SceneID) ([]*tag.Tag, error)
- func (r *Tag) Remove(ctx context.Context, id id.TagID) error
- func (r *Tag) RemoveAll(ctx context.Context, ids id.TagIDList) error
- func (r *Tag) RemoveByScene(ctx context.Context, sceneID id.SceneID) error
- func (r *Tag) Save(ctx context.Context, tag tag.Tag) error
- func (r *Tag) SaveAll(ctx context.Context, tags []*tag.Tag) error
- type Team
- func (r *Team) FindByID(ctx context.Context, id id.TeamID) (*user.Team, error)
- func (r *Team) FindByIDs(ctx context.Context, ids id.TeamIDList) (user.TeamList, error)
- func (r *Team) FindByUser(ctx context.Context, i id.UserID) (user.TeamList, error)
- func (r *Team) Remove(ctx context.Context, id id.TeamID) error
- func (r *Team) RemoveAll(ctx context.Context, ids id.TeamIDList) error
- func (r *Team) Save(ctx context.Context, t *user.Team) error
- func (r *Team) SaveAll(ctx context.Context, teams []*user.Team) error
- type Transaction
- type Tx
- type User
- func (r *User) FindByAuth0Sub(ctx context.Context, auth0sub string) (*user.User, error)
- func (r *User) FindByEmail(ctx context.Context, email string) (*user.User, error)
- func (r *User) FindByID(ctx context.Context, id id.UserID) (*user.User, error)
- func (r *User) FindByIDs(ctx context.Context, ids id.UserIDList) ([]*user.User, error)
- func (r *User) FindByName(ctx context.Context, name string) (*user.User, error)
- func (r *User) FindByNameOrEmail(ctx context.Context, nameOrEmail string) (*user.User, error)
- func (r *User) FindByPasswordResetRequest(ctx context.Context, token string) (*user.User, error)
- func (r *User) FindByVerification(ctx context.Context, code string) (*user.User, error)
- func (r *User) Remove(ctx context.Context, user id.UserID) error
- func (r *User) Save(ctx context.Context, u *user.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthRequest ¶ added in v0.6.0
func NewAuthRequest() repo.AuthRequest
func NewDataset ¶
func NewDatasetSchema ¶
func NewDatasetSchema() repo.DatasetSchema
func NewProject ¶
func NewProperty ¶
func NewPropertySchema ¶
func NewPropertySchema() repo.PropertySchema
func NewSceneLock ¶
Types ¶
type Asset ¶
type Asset struct {
// contains filtered or unexported fields
}
func (*Asset) FindByTeam ¶
type AuthRequest ¶ added in v0.6.0
type AuthRequest struct {
// contains filtered or unexported fields
}
func (*AuthRequest) FindByCode ¶ added in v0.6.0
func (*AuthRequest) FindByID ¶ added in v0.6.0
func (r *AuthRequest) FindByID(_ context.Context, id id.AuthRequestID) (*auth.Request, error)
func (*AuthRequest) FindBySubject ¶ added in v0.6.0
func (*AuthRequest) Remove ¶ added in v0.6.0
func (r *AuthRequest) Remove(_ context.Context, requestID id.AuthRequestID) error
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) LockAndLoad ¶ added in v0.3.0
func (*Config) SaveAndUnlock ¶ added in v0.3.0
type Dataset ¶
type Dataset struct {
// contains filtered or unexported fields
}
func (*Dataset) CountBySchema ¶ added in v0.8.0
func (*Dataset) Filtered ¶ added in v0.6.0
func (r *Dataset) Filtered(f repo.SceneFilter) repo.Dataset
func (*Dataset) FindBySchema ¶
func (*Dataset) FindBySchemaAll ¶
func (*Dataset) RemoveByScene ¶
type DatasetSchema ¶
type DatasetSchema struct {
// contains filtered or unexported fields
}
func (*DatasetSchema) Filtered ¶ added in v0.6.0
func (r *DatasetSchema) Filtered(f repo.SceneFilter) repo.DatasetSchema
func (*DatasetSchema) FindAllDynamicByScene ¶
func (r *DatasetSchema) FindAllDynamicByScene(ctx context.Context, s id.SceneID) (dataset.SchemaList, error)
func (*DatasetSchema) FindByID ¶
func (r *DatasetSchema) FindByID(ctx context.Context, id id.DatasetSchemaID) (*dataset.Schema, error)
func (*DatasetSchema) FindByIDs ¶
func (r *DatasetSchema) FindByIDs(ctx context.Context, ids id.DatasetSchemaIDList) (dataset.SchemaList, error)
func (*DatasetSchema) FindByScene ¶
func (r *DatasetSchema) FindByScene(ctx context.Context, s id.SceneID, p *usecase.Pagination) (dataset.SchemaList, *usecase.PageInfo, error)
func (*DatasetSchema) FindBySceneAll ¶
func (r *DatasetSchema) FindBySceneAll(ctx context.Context, s id.SceneID) (dataset.SchemaList, error)
func (*DatasetSchema) FindBySceneAndSource ¶
func (r *DatasetSchema) FindBySceneAndSource(ctx context.Context, s id.SceneID, src string) (dataset.SchemaList, error)
func (*DatasetSchema) FindDynamicByID ¶
func (r *DatasetSchema) FindDynamicByID(ctx context.Context, id id.DatasetSchemaID) (*dataset.Schema, error)
func (*DatasetSchema) Remove ¶
func (r *DatasetSchema) Remove(ctx context.Context, id id.DatasetSchemaID) error
func (*DatasetSchema) RemoveAll ¶
func (r *DatasetSchema) RemoveAll(ctx context.Context, ids id.DatasetSchemaIDList) error
func (*DatasetSchema) RemoveByScene ¶
func (*DatasetSchema) SaveAll ¶
func (r *DatasetSchema) SaveAll(ctx context.Context, dl dataset.SchemaList) error
type Layer ¶
type Layer struct {
// contains filtered or unexported fields
}
func (*Layer) FindAllByDatasetSchema ¶
func (*Layer) FindByPluginAndExtension ¶ added in v0.5.0
func (*Layer) FindByPluginAndExtensionOfBlocks ¶ added in v0.5.0
func (*Layer) FindByProperty ¶
func (*Layer) FindByScene ¶
func (*Layer) FindGroupByID ¶
func (*Layer) FindGroupByIDs ¶
func (*Layer) FindGroupBySceneAndLinkedDatasetSchema ¶
func (*Layer) FindItemByID ¶
func (*Layer) FindItemByIDs ¶
func (*Layer) FindParentByID ¶
func (*Layer) FindParentsByIDs ¶ added in v0.5.0
func (*Layer) RemoveByScene ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func (*Project) CountByTeam ¶
func (*Project) Filtered ¶ added in v0.6.0
func (r *Project) Filtered(f repo.TeamFilter) repo.Project
func (*Project) FindByPublicName ¶
func (*Project) FindByTeam ¶
type Property ¶
type Property struct {
// contains filtered or unexported fields
}
func (*Property) Filtered ¶ added in v0.6.0
func (r *Property) Filtered(f repo.SceneFilter) repo.Property
func (*Property) FindByDataset ¶
func (*Property) FindByPlugin ¶ added in v0.5.0
func (*Property) FindBySchema ¶ added in v0.5.0
func (*Property) FindLinkedAll ¶
func (*Property) RemoveByScene ¶
type PropertySchema ¶
type PropertySchema struct {
// contains filtered or unexported fields
}
func (*PropertySchema) Filtered ¶ added in v0.6.0
func (r *PropertySchema) Filtered(f repo.SceneFilter) repo.PropertySchema
func (*PropertySchema) FindByID ¶
func (r *PropertySchema) FindByID(ctx context.Context, id id.PropertySchemaID) (*property.Schema, error)
func (*PropertySchema) FindByIDs ¶
func (r *PropertySchema) FindByIDs(ctx context.Context, ids []id.PropertySchemaID) (property.SchemaList, error)
func (*PropertySchema) Remove ¶
func (r *PropertySchema) Remove(ctx context.Context, id id.PropertySchemaID) error
func (*PropertySchema) RemoveAll ¶
func (r *PropertySchema) RemoveAll(ctx context.Context, ids []id.PropertySchemaID) error
func (*PropertySchema) SaveAll ¶
func (r *PropertySchema) SaveAll(ctx context.Context, p property.SchemaList) error
type Scene ¶
type Scene struct {
// contains filtered or unexported fields
}
func (*Scene) FindByProject ¶
func (*Scene) FindByTeam ¶ added in v0.6.0
type Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
func (*Tag) FindByScene ¶
func (*Tag) FindGroupByID ¶
func (*Tag) FindGroupByIDs ¶
func (*Tag) FindGroupByItem ¶
func (*Tag) FindItemByID ¶
func (*Tag) FindItemByIDs ¶
func (*Tag) FindRootsByScene ¶ added in v0.3.0
func (*Tag) RemoveByScene ¶
type Team ¶
type Team struct {
// contains filtered or unexported fields
}
func (*Team) FindByUser ¶
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func NewTransaction ¶
func NewTransaction() *Transaction
func (*Transaction) Committed ¶ added in v0.8.0
func (t *Transaction) Committed() int
func (*Transaction) SetBeginError ¶ added in v0.8.0
func (t *Transaction) SetBeginError(err error)
func (*Transaction) SetEndError ¶ added in v0.8.0
func (t *Transaction) SetEndError(err error)
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
func (*Tx) IsCommitted ¶ added in v0.8.0
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) FindByAuth0Sub ¶
func (*User) FindByEmail ¶
func (*User) FindByName ¶ added in v0.6.0
func (*User) FindByNameOrEmail ¶
func (*User) FindByPasswordResetRequest ¶ added in v0.6.0
func (*User) FindByVerification ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.