Documentation ¶
Index ¶
- func NewAsset(r *repo.Container, g *gateway.Container) interfaces.Asset
- func NewAuthStorage(ctx context.Context, cfg *StorageConfig, request repo.AuthRequest, ...) (op.Storage, error)
- 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, authSrcUIDomain string) interfaces.User
- type Asset
- func (i Asset) CanReadScene(t id.SceneID, op *usecase.Operator) error
- func (i Asset) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i Asset) CanWriteScene(t id.SceneID, 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, keyword *string, sort *asset.SortType, ...) ([]*asset.Asset, *usecase.PageInfo, 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 AuthDNConfig
- type AuthStorage
- func (s *AuthStorage) AuthRequestByCode(ctx context.Context, code string) (op.AuthRequest, error)
- func (s *AuthStorage) AuthRequestByID(ctx context.Context, requestID string) (op.AuthRequest, error)
- func (s *AuthStorage) AuthRequestBySubject(ctx context.Context, subject string) (op.AuthRequest, error)
- func (s *AuthStorage) AuthorizeClientIDSecret(_ context.Context, _ string, _ string) error
- func (s *AuthStorage) CompleteAuthRequest(ctx context.Context, requestId, sub string) error
- func (s *AuthStorage) CreateAccessAndRefreshTokens(_ context.Context, request op.TokenRequest, _ string) (accessTokenID string, newRefreshToken string, expiration time.Time, err error)
- func (s *AuthStorage) CreateAccessToken(_ context.Context, _ op.TokenRequest) (string, time.Time, error)
- func (s *AuthStorage) CreateAuthRequest(ctx context.Context, authReq *oidc.AuthRequest, _ string) (op.AuthRequest, error)
- func (s *AuthStorage) DeleteAuthRequest(_ context.Context, requestID string) error
- func (s *AuthStorage) GetClientByClientID(_ context.Context, clientID string) (op.Client, error)
- func (s *AuthStorage) GetKeyByIDAndUserID(_ context.Context, kid, _ string) (*jose.JSONWebKey, error)
- func (s *AuthStorage) GetKeySet(_ context.Context) (*jose.JSONWebKeySet, error)
- func (s *AuthStorage) GetPrivateClaimsFromScopes(_ context.Context, _, _ string, _ []string) (map[string]interface{}, error)
- func (s *AuthStorage) GetSigningKey(_ context.Context, keyCh chan<- jose.SigningKey)
- func (s *AuthStorage) Health(_ context.Context) error
- func (s *AuthStorage) RevokeToken(_ context.Context, _ string, _ string, _ string) *oidc.Error
- func (s *AuthStorage) SaveAuthCode(ctx context.Context, requestID, code string) error
- func (s *AuthStorage) SetIntrospectionFromToken(ctx context.Context, introspect oidc.IntrospectionResponse, ...) error
- func (s *AuthStorage) SetUserinfoFromScopes(ctx context.Context, userinfo oidc.UserInfoSetter, subject, _ string, ...) error
- func (s *AuthStorage) SetUserinfoFromToken(ctx context.Context, userinfo oidc.UserInfoSetter, _, _, _ string) error
- func (s *AuthStorage) TerminateSession(_ context.Context, _, _ string) error
- func (s *AuthStorage) TokenRequestByRefreshToken(ctx context.Context, refreshToken string) (op.RefreshTokenRequest, error)
- func (s *AuthStorage) ValidateJWTProfileScopes(_ context.Context, _ string, scope []string) ([]string, 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(t id.SceneID, op *usecase.Operator) error
- func (i Dataset) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i Dataset) CanWriteScene(t id.SceneID, op *usecase.Operator) error
- func (i Dataset) CanWriteTeam(t id.TeamID, 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 (Dataset) OnlyOperator(op *usecase.Operator) 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(t id.SceneID, op *usecase.Operator) error
- func (i Layer) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i Layer) CanWriteScene(t id.SceneID, op *usecase.Operator) error
- func (i Layer) CanWriteTeam(t id.TeamID, 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 (l *Layer) Export(ctx context.Context, lid id.LayerID, ext string) (io.Reader, string, error)
- func (i *Layer) Fetch(ctx context.Context, ids []id.LayerID, operator *usecase.Operator) (layer.List, error)
- func (i *Layer) FetchByProperty(ctx context.Context, pid id.PropertyID, operator *usecase.Operator) (layer.Layer, error)
- func (i *Layer) FetchByTag(ctx context.Context, tag id.TagID, operator *usecase.Operator) (layer.List, 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 (Layer) OnlyOperator(op *usecase.Operator) 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 OpenIDConfiguration
- type Plugin
- func (i Plugin) CanReadScene(t id.SceneID, op *usecase.Operator) error
- func (i Plugin) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i Plugin) CanWriteScene(t id.SceneID, op *usecase.Operator) error
- func (i Plugin) CanWriteTeam(t id.TeamID, op *usecase.Operator) 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 (Plugin) OnlyOperator(op *usecase.Operator) 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(t id.SceneID, op *usecase.Operator) error
- func (i Project) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i Project) CanWriteScene(t id.SceneID, op *usecase.Operator) error
- func (i Project) CanWriteTeam(t id.TeamID, 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 (Project) OnlyOperator(op *usecase.Operator) 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(t id.SceneID, op *usecase.Operator) error
- func (i Property) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i Property) CanWriteScene(t id.SceneID, op *usecase.Operator) error
- func (i Property) CanWriteTeam(t id.TeamID, 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 (Property) OnlyOperator(op *usecase.Operator) 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) AddCluster(ctx context.Context, sceneID id.SceneID, name string, ...) (*scene.Scene, *scene.Cluster, error)
- 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(t id.SceneID, op *usecase.Operator) error
- func (i Scene) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i Scene) CanWriteScene(t id.SceneID, op *usecase.Operator) error
- func (i Scene) CanWriteTeam(t id.TeamID, 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 (Scene) OnlyOperator(op *usecase.Operator) error
- func (i Scene) ReleaseSceneLock(ctx context.Context, s id.SceneID)
- func (i *Scene) RemoveCluster(ctx context.Context, sceneID id.SceneID, clusterID id.ClusterID, ...) (*scene.Scene, error)
- 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) UpdateCluster(ctx context.Context, param interfaces.UpdateClusterParam, ...) (*scene.Scene, *scene.Cluster, 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 StorageConfig
- type Tag
- func (i *Tag) AttachItemToGroup(ctx context.Context, inp interfaces.AttachItemToGroupParam, ...) (*tag.Group, error)
- func (i Tag) CanReadScene(t id.SceneID, op *usecase.Operator) error
- func (i Tag) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i Tag) CanWriteScene(t id.SceneID, op *usecase.Operator) error
- func (i Tag) CanWriteTeam(t id.TeamID, 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, *tag.Group, 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) FetchItem(ctx context.Context, ids []id.TagID, operator *usecase.Operator) ([]*tag.Item, error)
- func (Tag) OnlyOperator(op *usecase.Operator) error
- func (i *Tag) Remove(ctx context.Context, tagID id.TagID, operator *usecase.Operator) (*id.TagID, layer.List, 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) CanReadScene(t id.SceneID, op *usecase.Operator) error
- func (i Team) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i Team) CanWriteScene(t id.SceneID, 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 (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) CanReadScene(t id.SceneID, op *usecase.Operator) error
- func (i User) CanReadTeam(t id.TeamID, op *usecase.Operator) error
- func (i User) CanWriteScene(t id.SceneID, op *usecase.Operator) error
- func (i User) CanWriteTeam(t id.TeamID, op *usecase.Operator) error
- func (i *User) CreateVerification(ctx context.Context, email string) 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) GetUserByCredentials(ctx context.Context, inp interfaces.GetUserByCredentials) (u *user.User, err error)
- func (i *User) GetUserBySubject(ctx context.Context, sub string) (u *user.User, err error)
- func (User) OnlyOperator(op *usecase.Operator) error
- func (i *User) PasswordReset(ctx context.Context, password, token string) 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) (*user.User, *user.Team, error)
- func (i *User) SignupOIDC(ctx context.Context, inp interfaces.SignupOIDCParam) (u *user.User, _ *user.Team, err error)
- func (i *User) StartPasswordReset(ctx context.Context, email string) error
- func (i *User) UpdateMe(ctx context.Context, p interfaces.UpdateMeParam, operator *usecase.Operator) (u *user.User, err error)
- func (i *User) VerifyUser(ctx context.Context, code string) (*user.User, error)
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthStorage ¶ added in v0.6.0
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) CanReadScene ¶ added in v0.6.0
func (Asset) CanWriteScene ¶ added in v0.6.0
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 AuthDNConfig ¶ added in v0.6.0
type AuthStorage ¶ added in v0.6.0
type AuthStorage struct {
// contains filtered or unexported fields
}
func (*AuthStorage) AuthRequestByCode ¶ added in v0.6.0
func (s *AuthStorage) AuthRequestByCode(ctx context.Context, code string) (op.AuthRequest, error)
func (*AuthStorage) AuthRequestByID ¶ added in v0.6.0
func (s *AuthStorage) AuthRequestByID(ctx context.Context, requestID string) (op.AuthRequest, error)
func (*AuthStorage) AuthRequestBySubject ¶ added in v0.6.0
func (s *AuthStorage) AuthRequestBySubject(ctx context.Context, subject string) (op.AuthRequest, error)
func (*AuthStorage) AuthorizeClientIDSecret ¶ added in v0.6.0
func (*AuthStorage) CompleteAuthRequest ¶ added in v0.6.0
func (s *AuthStorage) CompleteAuthRequest(ctx context.Context, requestId, sub string) error
func (*AuthStorage) CreateAccessAndRefreshTokens ¶ added in v0.6.0
func (*AuthStorage) CreateAccessToken ¶ added in v0.6.0
func (s *AuthStorage) CreateAccessToken(_ context.Context, _ op.TokenRequest) (string, time.Time, error)
func (*AuthStorage) CreateAuthRequest ¶ added in v0.6.0
func (s *AuthStorage) CreateAuthRequest(ctx context.Context, authReq *oidc.AuthRequest, _ string) (op.AuthRequest, error)
func (*AuthStorage) DeleteAuthRequest ¶ added in v0.6.0
func (s *AuthStorage) DeleteAuthRequest(_ context.Context, requestID string) error
func (*AuthStorage) GetClientByClientID ¶ added in v0.6.0
func (*AuthStorage) GetKeyByIDAndUserID ¶ added in v0.6.0
func (s *AuthStorage) GetKeyByIDAndUserID(_ context.Context, kid, _ string) (*jose.JSONWebKey, error)
func (*AuthStorage) GetKeySet ¶ added in v0.6.0
func (s *AuthStorage) GetKeySet(_ context.Context) (*jose.JSONWebKeySet, error)
func (*AuthStorage) GetPrivateClaimsFromScopes ¶ added in v0.6.0
func (*AuthStorage) GetSigningKey ¶ added in v0.6.0
func (s *AuthStorage) GetSigningKey(_ context.Context, keyCh chan<- jose.SigningKey)
func (*AuthStorage) RevokeToken ¶ added in v0.6.0
func (*AuthStorage) SaveAuthCode ¶ added in v0.6.0
func (s *AuthStorage) SaveAuthCode(ctx context.Context, requestID, code string) error
func (*AuthStorage) SetIntrospectionFromToken ¶ added in v0.6.0
func (s *AuthStorage) SetIntrospectionFromToken(ctx context.Context, introspect oidc.IntrospectionResponse, _, subject, clientID string) error
func (*AuthStorage) SetUserinfoFromScopes ¶ added in v0.6.0
func (s *AuthStorage) SetUserinfoFromScopes(ctx context.Context, userinfo oidc.UserInfoSetter, subject, _ string, _ []string) error
func (*AuthStorage) SetUserinfoFromToken ¶ added in v0.6.0
func (s *AuthStorage) SetUserinfoFromToken(ctx context.Context, userinfo oidc.UserInfoSetter, _, _, _ string) error
func (*AuthStorage) TerminateSession ¶ added in v0.6.0
func (s *AuthStorage) TerminateSession(_ context.Context, _, _ string) error
func (*AuthStorage) TokenRequestByRefreshToken ¶ added in v0.6.0
func (s *AuthStorage) TokenRequestByRefreshToken(ctx context.Context, refreshToken string) (op.RefreshTokenRequest, error)
func (*AuthStorage) ValidateJWTProfileScopes ¶ added in v0.6.0
type ContainerConfig ¶
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) CanReadTeam ¶ added in v0.6.0
func (Dataset) CanWriteScene ¶
func (Dataset) CanWriteTeam ¶ added in v0.6.0
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) OnlyOperator ¶ added in v0.6.0
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) CanReadTeam ¶ added in v0.6.0
func (Layer) CanWriteTeam ¶ added in v0.6.0
func (Layer) CheckSceneLock ¶
func (*Layer) CreateInfobox ¶
func (*Layer) FetchByProperty ¶
func (*Layer) FetchByTag ¶ added in v0.3.0
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) OnlyOperator ¶ added in v0.6.0
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 OpenIDConfiguration ¶ added in v0.6.0
type OpenIDConfiguration struct {
UserinfoEndpoint string `json:"userinfo_endpoint"`
}
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (Plugin) CanWriteScene ¶
func (*Plugin) FetchPluginMetadata ¶
func (Plugin) OnlyOperator ¶
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func (Project) CanReadScene ¶
func (Project) CanReadTeam ¶ added in v0.6.0
func (Project) CanWriteScene ¶
func (Project) CanWriteTeam ¶ added in v0.6.0
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) OnlyOperator ¶ added in v0.6.0
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) CanReadTeam ¶ added in v0.6.0
func (Property) CanWriteScene ¶
func (Property) CanWriteTeam ¶ added in v0.6.0
func (Property) CheckSceneLock ¶
func (*Property) FetchMerged ¶
func (*Property) FetchSchema ¶
func (Property) OnlyOperator ¶ added in v0.6.0
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) AddCluster ¶ added in v0.3.0
func (Scene) CanReadTeam ¶ added in v0.6.0
func (Scene) CanWriteTeam ¶ added in v0.6.0
func (Scene) CheckSceneLock ¶
func (*Scene) FindByProject ¶
func (*Scene) InstallPlugin ¶
func (Scene) OnlyOperator ¶ added in v0.6.0
func (*Scene) RemoveCluster ¶ added in v0.3.0
func (*Scene) RemoveWidget ¶
func (*Scene) UninstallPlugin ¶
func (*Scene) UpdateCluster ¶ added in v0.3.0
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 StorageConfig ¶ added in v0.6.0
type StorageConfig struct { Domain string `default:"http://localhost:8080"` ClientDomain string `default:"http://localhost:8080"` Debug bool DN *AuthDNConfig }
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) CanReadTeam ¶ added in v0.6.0
func (Tag) CanWriteTeam ¶ added in v0.6.0
func (*Tag) CreateGroup ¶
func (i *Tag) CreateGroup(ctx context.Context, inp interfaces.CreateTagGroupParam, operator *usecase.Operator) (*tag.Group, error)
func (*Tag) CreateItem ¶
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) OnlyOperator ¶ added in v0.6.0
type Team ¶
type Team struct {
// contains filtered or unexported fields
}
func (Team) CanReadScene ¶ added in v0.6.0
func (Team) CanWriteScene ¶ added in v0.6.0
func (*Team) FindByUser ¶
func (Team) OnlyOperator ¶
func (*Team) RemoveMember ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (User) CanReadScene ¶ added in v0.6.0
func (User) CanWriteScene ¶ added in v0.6.0
func (*User) CreateVerification ¶ added in v0.6.0
func (*User) GetUserByCredentials ¶ added in v0.6.0
func (i *User) GetUserByCredentials(ctx context.Context, inp interfaces.GetUserByCredentials) (u *user.User, err error)
func (*User) GetUserBySubject ¶ added in v0.6.0
func (User) OnlyOperator ¶
func (*User) PasswordReset ¶ added in v0.6.0
func (*User) RemoveMyAuth ¶
func (*User) SearchUser ¶
func (*User) Signup ¶
func (i *User) Signup(ctx context.Context, inp interfaces.SignupParam) (*user.User, *user.Team, error)
func (*User) SignupOIDC ¶ added in v0.6.0
func (i *User) SignupOIDC(ctx context.Context, inp interfaces.SignupOIDCParam) (u *user.User, _ *user.Team, err error)
func (*User) StartPasswordReset ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.