Documentation ¶
Index ¶
- func NewContainer(r *repo.Container, g *gateway.Container) interfaces.Container
- func NewOrganization(r *repo.Container) interfaces.Organization
- func NewPlugin(r *repo.Container, gr *gateway.Container) interfaces.Plugin
- func NewUser(r *repo.Container) interfaces.User
- type Organization
- type Plugin
- func (p *Plugin) Create(ctx context.Context, publisher *user.User, r io.Reader, core bool) (*plugin.VersionedPlugin, error)
- func (p *Plugin) CreateFromRepo(ctx context.Context, publisher *user.User, repo *string, core bool) (*plugin.VersionedPlugin, error)
- func (p *Plugin) Download(ctx context.Context, id id.PluginID, version string) (io.ReadCloser, error)
- func (p *Plugin) DownloadLatest(ctx context.Context, id id.PluginID) (io.ReadCloser, error)
- func (p *Plugin) FindByID(ctx context.Context, id id.PluginID, user *id.UserID) (*plugin.VersionedPlugin, error)
- func (i *Plugin) FindByIDs(ctx context.Context, uids []id.PluginID, user *id.UserID) ([]*plugin.VersionedPlugin, error)
- func (p *Plugin) FindByVersion(ctx context.Context, id id.PluginID, version string) (*plugin.VersionedPlugin, error)
- func (p *Plugin) ImageURL(ctx context.Context, name string) string
- func (p *Plugin) IncreaseDownloadCount(ctx context.Context, id id.PluginID, version string) error
- func (p *Plugin) Like(ctx context.Context, user *user.User, id id.PluginID) (_ *plugin.VersionedPlugin, err error)
- func (p *Plugin) Liked(ctx context.Context, user *user.User, id id.PluginID) (bool, error)
- func (p *Plugin) List(ctx context.Context, u *id.UserID, param interfaces.ListPluginParam) ([]*plugin.VersionedPlugin, *usecasex.PageInfo, error)
- func (p *Plugin) Parse(ctx context.Context, publisher *user.User, r io.Reader, core bool) (*plugin.VersionedPlugin, error)
- func (p *Plugin) ParseFromRepo(ctx context.Context, publisher *user.User, repo *string, core bool) (*plugin.VersionedPlugin, error)
- func (p *Plugin) Search(ctx context.Context, user *user.User, param interfaces.SearchPluginParam) ([]*plugin.VersionedPlugin, *usecasex.PageInfo, error)
- func (p *Plugin) Unlike(ctx context.Context, user *user.User, id id.PluginID) (*plugin.VersionedPlugin, error)
- func (p *Plugin) Update(ctx context.Context, param interfaces.UpdatePluginParam) (_ *plugin.VersionedPlugin, err error)
- func (p *Plugin) UpdateVersion(ctx context.Context, user *user.User, ...) (_ *plugin.VersionedPlugin, err error)
- func (p *Plugin) Versions(ctx context.Context, id id.PluginID) ([]*plugin.Version, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContainer ¶
func NewOrganization ¶
func NewOrganization(r *repo.Container) interfaces.Organization
Types ¶
type Organization ¶
type Organization struct {
// contains filtered or unexported fields
}
func (*Organization) Create ¶
func (o *Organization) Create(ctx context.Context, u *user.User, param *interfaces.CreateOrganizationParam) (_ *user.Organization, err error)
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) CreateFromRepo ¶
func (*Plugin) DownloadLatest ¶
func (*Plugin) FindByVersion ¶
func (*Plugin) IncreaseDownloadCount ¶
func (*Plugin) List ¶
func (p *Plugin) List(ctx context.Context, u *id.UserID, param interfaces.ListPluginParam) ([]*plugin.VersionedPlugin, *usecasex.PageInfo, error)
func (*Plugin) ParseFromRepo ¶
func (*Plugin) Search ¶
func (p *Plugin) Search(ctx context.Context, user *user.User, param interfaces.SearchPluginParam) ([]*plugin.VersionedPlugin, *usecasex.PageInfo, error)
func (*Plugin) Update ¶
func (p *Plugin) Update(ctx context.Context, param interfaces.UpdatePluginParam) (_ *plugin.VersionedPlugin, err error)
func (*Plugin) UpdateVersion ¶
func (p *Plugin) UpdateVersion(ctx context.Context, user *user.User, param interfaces.UpdatePluginVersionParam) (_ *plugin.VersionedPlugin, err error)
Click to show internal directories.
Click to hide internal directories.