Documentation ¶
Index ¶
- func NewAsset(r *repo.Container, gr *gateway.Container) interfaces.Asset
- func NewContainer(r *repo.Container, g *gateway.Container, config ContainerConfig) interfaces.Container
- func NewDataset(r *repo.Container, gr *gateway.Container) interfaces.Dataset
- func NewLayer(r *repo.Container) interfaces.Layer
- func NewPlugin(r *repo.Container, gr *gateway.Container) interfaces.Plugin
- func NewProject(r *repo.Container, gr *gateway.Container) interfaces.Project
- func NewProperty(r *repo.Container, gr *gateway.Container) interfaces.Property
- func NewPublished(project repo.Project, file gateway.File, indexHTML string) interfaces.Published
- func NewPublishedWithURL(project repo.Project, file gateway.File, indexHTMLURL *url.URL) interfaces.Published
- func NewScene(r *repo.Container, g *gateway.Container) interfaces.Scene
- func NewTag(r *repo.Container) interfaces.Tag
- func NewTeam(r *repo.Container) interfaces.Team
- func NewUser(r *repo.Container, g *gateway.Container, signupSecret string) interfaces.User
- type Asset
- func (i Asset) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i Asset) CanWriteTeam(t id.TeamID, op *usecase.Operator) error
- func (i *Asset) Create(ctx context.Context, inp interfaces.CreateAssetParam, ...) (result *asset.Asset, err error)
- func (i *Asset) Fetch(ctx context.Context, assets []id.AssetID, operator *usecase.Operator) ([]*asset.Asset, error)
- func (i *Asset) FindByTeam(ctx context.Context, tid id.TeamID, p *usecase.Pagination, ...) ([]*asset.Asset, *usecase.PageInfo, error)
- func (i Asset) IsMe(u id.UserID, op *usecase.Operator) error
- func (Asset) OnlyOperator(op *usecase.Operator) error
- func (i *Asset) Remove(ctx context.Context, aid id.AssetID, operator *usecase.Operator) (result id.AssetID, err error)
- type ContainerConfig
- type Dataset
- func (i *Dataset) AddDatasetSchema(ctx context.Context, inp interfaces.AddDatasetSchemaParam, ...) (ds *dataset.Schema, err error)
- func (i *Dataset) AddDynamicDataset(ctx context.Context, inp interfaces.AddDynamicDatasetParam) (_ *dataset.Schema, _ *dataset.Dataset, err error)
- func (i *Dataset) AddDynamicDatasetSchema(ctx context.Context, inp interfaces.AddDynamicDatasetSchemaParam) (_ *dataset.Schema, err error)
- func (i Dataset) CanReadScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i Dataset) CanWriteScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i Dataset) CheckSceneLock(ctx context.Context, s id.SceneID) error
- func (i *Dataset) DynamicSchemaFields() []*dataset.SchemaField
- func (i *Dataset) Fetch(ctx context.Context, ids []id.DatasetID, operator *usecase.Operator) (dataset.List, error)
- func (i *Dataset) FetchSchema(ctx context.Context, ids []id.DatasetSchemaID, operator *usecase.Operator) (dataset.SchemaList, error)
- func (i *Dataset) FindBySchema(ctx context.Context, ds id.DatasetSchemaID, p *usecase.Pagination, ...) (dataset.List, *usecase.PageInfo, error)
- func (i *Dataset) FindDynamicSchemaByScene(ctx context.Context, sid id.SceneID) (dataset.SchemaList, error)
- func (i *Dataset) FindSchemaByScene(ctx context.Context, sid id.SceneID, p *usecase.Pagination, ...) (dataset.SchemaList, *usecase.PageInfo, error)
- func (i *Dataset) GraphFetch(ctx context.Context, id id.DatasetID, depth int, operator *usecase.Operator) (dataset.List, error)
- func (i *Dataset) GraphFetchSchema(ctx context.Context, id id.DatasetSchemaID, depth int, ...) (dataset.SchemaList, error)
- func (i *Dataset) ImportDataset(ctx context.Context, inp interfaces.ImportDatasetParam, ...) (_ *dataset.Schema, err error)
- func (i *Dataset) ImportDatasetFromGoogleSheet(ctx context.Context, inp interfaces.ImportDatasetFromGoogleSheetParam, ...) (_ *dataset.Schema, err error)
- func (i Dataset) OnlyReadableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i Dataset) OnlyWritableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i Dataset) ReleaseSceneLock(ctx context.Context, s id.SceneID)
- func (i *Dataset) RemoveDatasetSchema(ctx context.Context, inp interfaces.RemoveDatasetSchemaParam, ...) (_ id.DatasetSchemaID, err error)
- func (i *Dataset) Sync(ctx context.Context, sceneID id.SceneID, url string, ...) (dss dataset.SchemaList, ds dataset.List, err error)
- func (i *Dataset) UpdateDatasetSchema(ctx context.Context, inp interfaces.UpdateDatasetSchemaParam, ...) (_ *dataset.Schema, err error)
- func (i Dataset) UpdateSceneLock(ctx context.Context, s id.SceneID, before, after scene.LockMode) error
- type Layer
- func (i *Layer) AddGroup(ctx context.Context, inp interfaces.AddLayerGroupInput, ...) (_ *layer.Group, _ *layer.Group, err error)
- func (i *Layer) AddInfoboxField(ctx context.Context, inp interfaces.AddInfoboxFieldParam, ...) (_ *layer.InfoboxField, _ layer.Layer, err error)
- func (i *Layer) AddItem(ctx context.Context, inp interfaces.AddLayerItemInput, ...) (_ *layer.Item, _ *layer.Group, err error)
- func (i *Layer) AttachTag(ctx context.Context, layerID id.LayerID, tagID id.TagID, ...) (layer.Layer, error)
- func (i Layer) CanReadScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i Layer) CanWriteScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i Layer) CheckSceneLock(ctx context.Context, s id.SceneID) error
- func (i *Layer) CreateInfobox(ctx context.Context, lid id.LayerID, operator *usecase.Operator) (_ layer.Layer, err error)
- func (i *Layer) DetachTag(ctx context.Context, layerID id.LayerID, tagID id.TagID, ...) (layer.Layer, error)
- func (i *Layer) Fetch(ctx context.Context, ids []id.LayerID, operator *usecase.Operator) ([]*layer.Layer, error)
- func (i *Layer) FetchByProperty(ctx context.Context, pid id.PropertyID, operator *usecase.Operator) (layer.Layer, error)
- func (i *Layer) FetchGroup(ctx context.Context, ids []id.LayerID, operator *usecase.Operator) ([]*layer.Group, error)
- func (i *Layer) FetchItem(ctx context.Context, ids []id.LayerID, operator *usecase.Operator) ([]*layer.Item, error)
- func (i *Layer) FetchMerged(ctx context.Context, org id.LayerID, parent *id.LayerID, ...) (*layer.Merged, error)
- func (i *Layer) FetchParent(ctx context.Context, pid id.LayerID, operator *usecase.Operator) (*layer.Group, error)
- func (i *Layer) FetchParentAndMerged(ctx context.Context, org id.LayerID, operator *usecase.Operator) (*layer.Merged, error)
- func (i *Layer) ImportLayer(ctx context.Context, inp interfaces.ImportLayerParam, ...) (_ layer.List, _ *layer.Group, err error)
- func (i *Layer) Move(ctx context.Context, inp interfaces.MoveLayerInput, operator *usecase.Operator) (_ id.LayerID, _ *layer.Group, _ *layer.Group, _ int, err error)
- func (i *Layer) MoveInfoboxField(ctx context.Context, inp interfaces.MoveInfoboxFieldParam, ...) (_ id.InfoboxFieldID, _ layer.Layer, _ int, err error)
- func (i Layer) OnlyReadableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i Layer) OnlyWritableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i Layer) ReleaseSceneLock(ctx context.Context, s id.SceneID)
- func (i *Layer) Remove(ctx context.Context, lid id.LayerID, operator *usecase.Operator) (_ id.LayerID, _ *layer.Group, err error)
- func (i *Layer) RemoveInfobox(ctx context.Context, layerID id.LayerID, operator *usecase.Operator) (_ layer.Layer, err error)
- func (i *Layer) RemoveInfoboxField(ctx context.Context, inp interfaces.RemoveInfoboxFieldParam, ...) (_ id.InfoboxFieldID, _ layer.Layer, err error)
- func (i *Layer) Update(ctx context.Context, inp interfaces.UpdateLayerInput, ...) (_ layer.Layer, err error)
- func (i Layer) UpdateSceneLock(ctx context.Context, s id.SceneID, before, after scene.LockMode) error
- type Plugin
- func (i Plugin) CanReadScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i Plugin) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i Plugin) CanWriteScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i Plugin) CanWriteTeam(t id.TeamID, op *usecase.Operator) error
- func (i *Plugin) Delete(ctx context.Context, pid id.PluginID, operator *usecase.Operator) (err error)
- func (i *Plugin) Fetch(ctx context.Context, ids []id.PluginID, operator *usecase.Operator) ([]*plugin.Plugin, error)
- func (i *Plugin) FetchPluginMetadata(ctx context.Context, operator *usecase.Operator) ([]*plugin.Metadata, error)
- func (i Plugin) IsMe(u id.UserID, op *usecase.Operator) error
- func (Plugin) OnlyOperator(op *usecase.Operator) error
- func (i Plugin) OnlyReadableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i Plugin) OnlyWritableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i *Plugin) Upload(ctx context.Context, r io.Reader, sid id.SceneID, operator *usecase.Operator) (_ *plugin.Plugin, _ *scene.Scene, err error)
- func (i *Plugin) UploadFromRemote(ctx context.Context, u *url.URL, sid id.SceneID, operator *usecase.Operator) (_ *plugin.Plugin, _ *scene.Scene, err error)
- type Project
- func (i Project) CanReadScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i Project) CanWriteScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i *Project) CheckAlias(ctx context.Context, alias string) (bool, error)
- func (i Project) CheckSceneLock(ctx context.Context, s id.SceneID) error
- func (i *Project) Create(ctx context.Context, p interfaces.CreateProjectParam, ...) (_ *project.Project, err error)
- func (i *Project) Delete(ctx context.Context, projectID id.ProjectID, operator *usecase.Operator) (err error)
- func (i *Project) Fetch(ctx context.Context, ids []id.ProjectID, operator *usecase.Operator) ([]*project.Project, error)
- func (i *Project) FindByTeam(ctx context.Context, id id.TeamID, p *usecase.Pagination, ...) ([]*project.Project, *usecase.PageInfo, error)
- func (i Project) OnlyReadableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i Project) OnlyWritableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i *Project) Publish(ctx context.Context, params interfaces.PublishProjectParam, ...) (_ *project.Project, err error)
- func (i Project) ReleaseSceneLock(ctx context.Context, s id.SceneID)
- func (i *Project) Update(ctx context.Context, p interfaces.UpdateProjectParam, ...) (_ *project.Project, err error)
- func (i Project) UpdateSceneLock(ctx context.Context, s id.SceneID, before, after scene.LockMode) error
- type ProjectDeleter
- type Property
- func (i *Property) AddItem(ctx context.Context, inp interfaces.AddPropertyItemParam, ...) (p *property.Property, _ *property.GroupList, pg *property.Group, err error)
- func (i Property) CanReadScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i Property) CanWriteScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i Property) CheckSceneLock(ctx context.Context, s id.SceneID) error
- func (i *Property) Fetch(ctx context.Context, ids []id.PropertyID, operator *usecase.Operator) ([]*property.Property, error)
- func (i *Property) FetchMerged(ctx context.Context, org, parent *id.PropertyID, linked *id.DatasetID, ...) (*property.Merged, error)
- func (i *Property) FetchSchema(ctx context.Context, ids []id.PropertySchemaID, operator *usecase.Operator) ([]*property.Schema, error)
- func (i *Property) LinkValue(ctx context.Context, inp interfaces.LinkPropertyValueParam, ...) (p *property.Property, pgl *property.GroupList, pg *property.Group, ...)
- func (i *Property) MoveItem(ctx context.Context, inp interfaces.MovePropertyItemParam, ...) (p *property.Property, _ *property.GroupList, _ *property.Group, err error)
- func (i Property) OnlyReadableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i Property) OnlyWritableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i Property) ReleaseSceneLock(ctx context.Context, s id.SceneID)
- func (i *Property) RemoveField(ctx context.Context, inp interfaces.RemovePropertyFieldParam, ...) (p *property.Property, err error)
- func (i *Property) RemoveItem(ctx context.Context, inp interfaces.RemovePropertyItemParam, ...) (p *property.Property, err error)
- func (i *Property) UnlinkValue(ctx context.Context, inp interfaces.UnlinkPropertyValueParam, ...) (p *property.Property, pgl *property.GroupList, pg *property.Group, ...)
- func (i *Property) UpdateItems(ctx context.Context, inp interfaces.UpdatePropertyItemsParam, ...) (*property.Property, error)
- func (i Property) UpdateSceneLock(ctx context.Context, s id.SceneID, before, after scene.LockMode) error
- func (i *Property) UpdateValue(ctx context.Context, inp interfaces.UpdatePropertyValueParam, ...) (p *property.Property, _ *property.GroupList, _ *property.Group, ...)
- func (i *Property) UploadFile(ctx context.Context, inp interfaces.UploadFileParam, ...) (p *property.Property, pgl *property.GroupList, pg *property.Group, ...)
- type Published
- type Scene
- func (i *Scene) AddWidget(ctx context.Context, sid id.SceneID, pid id.PluginID, eid id.PluginExtensionID, ...) (_ *scene.Scene, widget *scene.Widget, err error)
- func (i Scene) CanReadScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i Scene) CanWriteScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i Scene) CheckSceneLock(ctx context.Context, s id.SceneID) error
- func (i *Scene) Create(ctx context.Context, pid id.ProjectID, operator *usecase.Operator) (_ *scene.Scene, err error)
- func (i *Scene) Fetch(ctx context.Context, ids []id.SceneID, operator *usecase.Operator) ([]*scene.Scene, error)
- func (s *Scene) FetchLock(ctx context.Context, ids []id.SceneID, operator *usecase.Operator) ([]scene.LockMode, error)
- func (i *Scene) FindByProject(ctx context.Context, id id.ProjectID, operator *usecase.Operator) (*scene.Scene, error)
- func (i *Scene) InstallPlugin(ctx context.Context, sid id.SceneID, pid id.PluginID, ...) (_ *scene.Scene, _ id.PluginID, _ *id.PropertyID, err error)
- func (i Scene) OnlyReadableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i Scene) OnlyWritableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i Scene) ReleaseSceneLock(ctx context.Context, s id.SceneID)
- func (i *Scene) RemoveWidget(ctx context.Context, id id.SceneID, wid id.WidgetID, ...) (_ *scene.Scene, err error)
- func (i *Scene) UninstallPlugin(ctx context.Context, sid id.SceneID, pid id.PluginID, ...) (_ *scene.Scene, err error)
- func (i Scene) UpdateSceneLock(ctx context.Context, s id.SceneID, before, after scene.LockMode) error
- func (i *Scene) UpdateWidget(ctx context.Context, param interfaces.UpdateWidgetParam, ...) (_ *scene.Scene, _ *scene.Widget, err error)
- func (i *Scene) UpdateWidgetAlignSystem(ctx context.Context, param interfaces.UpdateWidgetAlignSystemParam, ...) (_ *scene.Scene, err error)
- func (i *Scene) UpgradePlugin(ctx context.Context, sid id.SceneID, oldPluginID, newPluginID id.PluginID, ...) (_ *scene.Scene, err error)
- type SceneDeleter
- type Tag
- func (i *Tag) AttachItemToGroup(ctx context.Context, inp interfaces.AttachItemToGroupParam, ...) (*tag.Group, error)
- func (i Tag) CanReadScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i Tag) CanWriteScene(ctx context.Context, s id.SceneID, op *usecase.Operator) error
- func (i *Tag) CreateGroup(ctx context.Context, inp interfaces.CreateTagGroupParam, ...) (*tag.Group, error)
- func (i *Tag) CreateItem(ctx context.Context, inp interfaces.CreateTagItemParam, ...) (*tag.Item, error)
- func (i *Tag) DetachItemFromGroup(ctx context.Context, inp interfaces.DetachItemToGroupParam, ...) (*tag.Group, error)
- func (i *Tag) Fetch(ctx context.Context, ids []id.TagID, operator *usecase.Operator) ([]*tag.Tag, error)
- func (i *Tag) FetchByScene(ctx context.Context, sid id.SceneID, operator *usecase.Operator) ([]*tag.Tag, error)
- func (i *Tag) FetchGroup(ctx context.Context, ids []id.TagID, operator *usecase.Operator) ([]*tag.Group, error)
- func (i *Tag) FetchGroupsByLayer(ctx context.Context, lid id.LayerID, operator *usecase.Operator) ([]*tag.Group, error)
- func (i *Tag) FetchGroupsByScene(ctx context.Context, sid id.SceneID, operator *usecase.Operator) ([]*tag.Group, error)
- func (i *Tag) FetchItem(ctx context.Context, ids []id.TagID, operator *usecase.Operator) ([]*tag.Item, error)
- func (i *Tag) FetchItemsByLayer(ctx context.Context, lid id.LayerID, operator *usecase.Operator) ([]*tag.Item, error)
- func (i *Tag) FetchItemsByScene(ctx context.Context, sid id.SceneID, operator *usecase.Operator) ([]*tag.Item, error)
- func (i Tag) OnlyReadableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i Tag) OnlyWritableScenes(ctx context.Context, op *usecase.Operator) ([]id.SceneID, error)
- func (i *Tag) Remove(ctx context.Context, tagID id.TagID, operator *usecase.Operator) (*id.TagID, error)
- func (i *Tag) UpdateTag(ctx context.Context, inp interfaces.UpdateTagParam, operator *usecase.Operator) (*tag.Tag, error)
- type Team
- func (i *Team) AddMember(ctx context.Context, id id.TeamID, u id.UserID, role user.Role, ...) (_ *user.Team, err error)
- func (i Team) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i Team) CanWriteTeam(t id.TeamID, op *usecase.Operator) error
- func (i *Team) Create(ctx context.Context, name string, firstUser id.UserID) (_ *user.Team, err error)
- func (i *Team) Fetch(ctx context.Context, ids []id.TeamID, operator *usecase.Operator) ([]*user.Team, error)
- func (i *Team) FindByUser(ctx context.Context, id id.UserID, operator *usecase.Operator) ([]*user.Team, error)
- func (i Team) IsMe(u id.UserID, op *usecase.Operator) error
- func (Team) OnlyOperator(op *usecase.Operator) error
- func (i *Team) Remove(ctx context.Context, id id.TeamID, operator *usecase.Operator) (err error)
- func (i *Team) RemoveMember(ctx context.Context, id id.TeamID, u id.UserID, operator *usecase.Operator) (_ *user.Team, err error)
- func (i *Team) Update(ctx context.Context, id id.TeamID, name string, operator *usecase.Operator) (_ *user.Team, err error)
- func (i *Team) UpdateMember(ctx context.Context, id id.TeamID, u id.UserID, role user.Role, ...) (_ *user.Team, err error)
- type User
- func (i User) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i User) CanWriteTeam(t id.TeamID, op *usecase.Operator) error
- func (i *User) DeleteMe(ctx context.Context, userID id.UserID, operator *usecase.Operator) (err error)
- func (i *User) Fetch(ctx context.Context, ids []id.UserID, operator *usecase.Operator) ([]*user.User, error)
- func (i User) IsMe(u id.UserID, op *usecase.Operator) error
- func (User) OnlyOperator(op *usecase.Operator) error
- func (i *User) RemoveMyAuth(ctx context.Context, authProvider string, operator *usecase.Operator) (u *user.User, err error)
- func (i *User) SearchUser(ctx context.Context, nameOrEmail string, operator *usecase.Operator) (u *user.User, err error)
- func (i *User) Signup(ctx context.Context, inp interfaces.SignupParam) (u *user.User, _ *user.Team, err error)
- func (i *User) UpdateMe(ctx context.Context, p interfaces.UpdateMeParam, operator *usecase.Operator) (u *user.User, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContainer ¶
func NewContainer(r *repo.Container, g *gateway.Container, config ContainerConfig) interfaces.Container
func NewDataset ¶
func NewProject ¶
func NewProperty ¶
func NewPublished ¶
func NewPublishedWithURL ¶
Types ¶
type Asset ¶
type Asset struct {
// contains filtered or unexported fields
}
func (*Asset) Create ¶
func (i *Asset) Create(ctx context.Context, inp interfaces.CreateAssetParam, operator *usecase.Operator) (result *asset.Asset, err error)
func (*Asset) FindByTeam ¶
func (Asset) OnlyOperator ¶
type ContainerConfig ¶
type ContainerConfig struct {
SignupSecret string
}
type Dataset ¶
type Dataset struct {
// contains filtered or unexported fields
}
func (*Dataset) AddDatasetSchema ¶
func (i *Dataset) AddDatasetSchema(ctx context.Context, inp interfaces.AddDatasetSchemaParam, operator *usecase.Operator) (ds *dataset.Schema, err error)
func (*Dataset) AddDynamicDataset ¶
func (i *Dataset) AddDynamicDataset(ctx context.Context, inp interfaces.AddDynamicDatasetParam) (_ *dataset.Schema, _ *dataset.Dataset, err error)
func (*Dataset) AddDynamicDatasetSchema ¶
func (i *Dataset) AddDynamicDatasetSchema(ctx context.Context, inp interfaces.AddDynamicDatasetSchemaParam) (_ *dataset.Schema, err error)
func (Dataset) CanReadScene ¶
func (Dataset) CanWriteScene ¶
func (Dataset) CheckSceneLock ¶
func (*Dataset) DynamicSchemaFields ¶
func (i *Dataset) DynamicSchemaFields() []*dataset.SchemaField
func (*Dataset) FetchSchema ¶
func (i *Dataset) FetchSchema(ctx context.Context, ids []id.DatasetSchemaID, operator *usecase.Operator) (dataset.SchemaList, error)
func (*Dataset) FindBySchema ¶
func (*Dataset) FindDynamicSchemaByScene ¶
func (*Dataset) FindSchemaByScene ¶
func (*Dataset) GraphFetch ¶
func (*Dataset) GraphFetchSchema ¶
func (*Dataset) ImportDataset ¶
func (i *Dataset) ImportDataset(ctx context.Context, inp interfaces.ImportDatasetParam, operator *usecase.Operator) (_ *dataset.Schema, err error)
func (*Dataset) ImportDatasetFromGoogleSheet ¶
func (i *Dataset) ImportDatasetFromGoogleSheet(ctx context.Context, inp interfaces.ImportDatasetFromGoogleSheetParam, operator *usecase.Operator) (_ *dataset.Schema, err error)
func (Dataset) OnlyReadableScenes ¶
func (Dataset) OnlyWritableScenes ¶
func (Dataset) ReleaseSceneLock ¶
func (*Dataset) RemoveDatasetSchema ¶
func (i *Dataset) RemoveDatasetSchema(ctx context.Context, inp interfaces.RemoveDatasetSchemaParam, operator *usecase.Operator) (_ id.DatasetSchemaID, err error)
func (*Dataset) UpdateDatasetSchema ¶
func (i *Dataset) UpdateDatasetSchema(ctx context.Context, inp interfaces.UpdateDatasetSchemaParam, operator *usecase.Operator) (_ *dataset.Schema, err error)
type Layer ¶
type Layer struct {
// contains filtered or unexported fields
}
func (*Layer) AddInfoboxField ¶
func (i *Layer) AddInfoboxField(ctx context.Context, inp interfaces.AddInfoboxFieldParam, operator *usecase.Operator) (_ *layer.InfoboxField, _ layer.Layer, err error)
func (Layer) CanReadScene ¶
func (Layer) CanWriteScene ¶
func (Layer) CheckSceneLock ¶
func (*Layer) CreateInfobox ¶
func (*Layer) FetchByProperty ¶
func (*Layer) FetchGroup ¶
func (*Layer) FetchMerged ¶
func (*Layer) FetchParent ¶
func (*Layer) FetchParentAndMerged ¶
func (*Layer) ImportLayer ¶
func (*Layer) MoveInfoboxField ¶
func (i *Layer) MoveInfoboxField(ctx context.Context, inp interfaces.MoveInfoboxFieldParam, operator *usecase.Operator) (_ id.InfoboxFieldID, _ layer.Layer, _ int, err error)
func (Layer) OnlyReadableScenes ¶
func (Layer) OnlyWritableScenes ¶
func (*Layer) RemoveInfobox ¶
func (*Layer) RemoveInfoboxField ¶
func (i *Layer) RemoveInfoboxField(ctx context.Context, inp interfaces.RemoveInfoboxFieldParam, operator *usecase.Operator) (_ id.InfoboxFieldID, _ layer.Layer, err error)
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (Plugin) CanReadScene ¶
func (Plugin) CanWriteScene ¶
func (*Plugin) FetchPluginMetadata ¶
func (Plugin) OnlyOperator ¶
func (Plugin) OnlyReadableScenes ¶
func (Plugin) OnlyWritableScenes ¶
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func (Project) CanReadScene ¶
func (Project) CanWriteScene ¶
func (*Project) CheckAlias ¶
func (Project) CheckSceneLock ¶
func (*Project) Create ¶
func (i *Project) Create(ctx context.Context, p interfaces.CreateProjectParam, operator *usecase.Operator) (_ *project.Project, err error)
func (*Project) FindByTeam ¶
func (Project) OnlyReadableScenes ¶
func (Project) OnlyWritableScenes ¶
func (*Project) Publish ¶
func (i *Project) Publish(ctx context.Context, params interfaces.PublishProjectParam, operator *usecase.Operator) (_ *project.Project, err error)
func (Project) ReleaseSceneLock ¶
type ProjectDeleter ¶
type ProjectDeleter struct { SceneDeleter File gateway.File Project repo.Project }
type Property ¶
type Property struct {
// contains filtered or unexported fields
}
func (Property) CanReadScene ¶
func (Property) CanWriteScene ¶
func (Property) CheckSceneLock ¶
func (*Property) FetchMerged ¶
func (*Property) FetchSchema ¶
func (Property) OnlyReadableScenes ¶
func (Property) OnlyWritableScenes ¶
func (Property) ReleaseSceneLock ¶
func (*Property) RemoveField ¶
func (i *Property) RemoveField(ctx context.Context, inp interfaces.RemovePropertyFieldParam, operator *usecase.Operator) (p *property.Property, err error)
func (*Property) RemoveItem ¶
func (i *Property) RemoveItem(ctx context.Context, inp interfaces.RemovePropertyItemParam, operator *usecase.Operator) (p *property.Property, err error)
func (*Property) UnlinkValue ¶
func (*Property) UpdateItems ¶
func (i *Property) UpdateItems(ctx context.Context, inp interfaces.UpdatePropertyItemsParam, operator *usecase.Operator) (*property.Property, error)
func (Property) UpdateSceneLock ¶
func (*Property) UpdateValue ¶
type Published ¶
type Published struct {
// contains filtered or unexported fields
}
func (*Published) Metadata ¶
func (i *Published) Metadata(ctx context.Context, name string) (interfaces.ProjectPublishedMetadata, error)
type Scene ¶
type Scene struct {
// contains filtered or unexported fields
}
func (Scene) CanReadScene ¶
func (Scene) CanWriteScene ¶
func (Scene) CheckSceneLock ¶
func (*Scene) FindByProject ¶
func (*Scene) InstallPlugin ¶
func (Scene) OnlyReadableScenes ¶
func (Scene) OnlyWritableScenes ¶
func (*Scene) RemoveWidget ¶
func (*Scene) UninstallPlugin ¶
func (Scene) UpdateSceneLock ¶
func (*Scene) UpdateWidget ¶
func (*Scene) UpdateWidgetAlignSystem ¶
func (i *Scene) UpdateWidgetAlignSystem(ctx context.Context, param interfaces.UpdateWidgetAlignSystemParam, operator *usecase.Operator) (_ *scene.Scene, err error)
type SceneDeleter ¶
type Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
func (*Tag) AttachItemToGroup ¶
func (i *Tag) AttachItemToGroup(ctx context.Context, inp interfaces.AttachItemToGroupParam, operator *usecase.Operator) (*tag.Group, error)
func (Tag) CanReadScene ¶
func (Tag) CanWriteScene ¶
func (*Tag) CreateGroup ¶
func (i *Tag) CreateGroup(ctx context.Context, inp interfaces.CreateTagGroupParam, operator *usecase.Operator) (*tag.Group, error)
func (*Tag) CreateItem ¶
func (i *Tag) CreateItem(ctx context.Context, inp interfaces.CreateTagItemParam, operator *usecase.Operator) (*tag.Item, error)
func (*Tag) DetachItemFromGroup ¶
func (i *Tag) DetachItemFromGroup(ctx context.Context, inp interfaces.DetachItemToGroupParam, operator *usecase.Operator) (*tag.Group, error)
func (*Tag) FetchByScene ¶
func (*Tag) FetchGroup ¶
func (*Tag) FetchGroupsByLayer ¶
func (*Tag) FetchGroupsByScene ¶
func (*Tag) FetchItemsByLayer ¶
func (*Tag) FetchItemsByScene ¶
func (Tag) OnlyReadableScenes ¶
func (Tag) OnlyWritableScenes ¶
type Team ¶
type Team struct {
// contains filtered or unexported fields
}
func (*Team) FindByUser ¶
func (Team) OnlyOperator ¶
func (*Team) RemoveMember ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (User) OnlyOperator ¶
func (*User) RemoveMyAuth ¶
func (*User) SearchUser ¶
Click to show internal directories.
Click to hide internal directories.