Documentation
¶
Index ¶
- Variables
- type Builder
- func (b *Builder) Active(active bool) *Builder
- func (b *Builder) Build() (*Plugin, error)
- func (b *Builder) CreatedAt(createdAt time.Time) *Builder
- func (b *Builder) Downloads(downloads int64) *Builder
- func (b *Builder) ID(id ID) *Builder
- func (b *Builder) Images(images []string) *Builder
- func (b *Builder) LatestVersion(latestVersion *PartialVersion) *Builder
- func (b *Builder) Like(like int64) *Builder
- func (b *Builder) MustBuild() *Plugin
- func (b *Builder) NewID(id string) *Builder
- func (b *Builder) Tags(tags []string) *Builder
- func (b *Builder) Type(pluginType string) *Builder
- func (b *Builder) UpdatedAt(updatedAt time.Time) *Builder
- type ID
- type List
- type Loader
- type Map
- type PartialVersion
- func (v *PartialVersion) Author() string
- func (v *PartialVersion) Checksum() string
- func (v *PartialVersion) CreatedAt() time.Time
- func (v *PartialVersion) Description() string
- func (v *PartialVersion) Icon() string
- func (v *PartialVersion) Name() string
- func (v *PartialVersion) PublishedAt() time.Time
- func (v *PartialVersion) Readme() string
- func (v *PartialVersion) Repository() string
- func (v *PartialVersion) SetDescription(description string) (changed bool)
- func (v *PartialVersion) SetUpdatedAt(updatedAt time.Time)
- func (v *PartialVersion) UpdatedAt() time.Time
- func (v *PartialVersion) Version() semver.Version
- type PartialVersionBuilder
- func (b *PartialVersionBuilder) Author(author string) *PartialVersionBuilder
- func (b *PartialVersionBuilder) Build() (*PartialVersion, error)
- func (b *PartialVersionBuilder) Checksum(checksum string) *PartialVersionBuilder
- func (b *PartialVersionBuilder) CreatedAt(createdAt time.Time) *PartialVersionBuilder
- func (b *PartialVersionBuilder) Description(description string) *PartialVersionBuilder
- func (b *PartialVersionBuilder) Icon(icon string) *PartialVersionBuilder
- func (b *PartialVersionBuilder) Name(name string) *PartialVersionBuilder
- func (b *PartialVersionBuilder) PublishedAt(publishedAt time.Time) *PartialVersionBuilder
- func (b *PartialVersionBuilder) Readme(readme string) *PartialVersionBuilder
- func (b *PartialVersionBuilder) Repository(repository string) *PartialVersionBuilder
- func (b *PartialVersionBuilder) UpdatedAt(updatedAt time.Time) *PartialVersionBuilder
- func (b *PartialVersionBuilder) Version(version string) *PartialVersionBuilder
- type Plugin
- func (p *Plugin) Active() bool
- func (p *Plugin) AddDownloads(add int64)
- func (p *Plugin) AddLike(add int64)
- func (p *Plugin) CreatedAt() time.Time
- func (p *Plugin) Downloads() int64
- func (p *Plugin) ID() ID
- func (p *Plugin) Images() []string
- func (p *Plugin) LatestVersion() *PartialVersion
- func (p *Plugin) Like() int64
- func (p *Plugin) Name() string
- func (p *Plugin) PublisherID() id.UserID
- func (p *Plugin) SetActive(active bool) (changed bool)
- func (p *Plugin) SetImages(images []string)
- func (p *Plugin) SetLatestVersion(latestVersion *PartialVersion)
- func (p *Plugin) SetTags(tags []string)
- func (p *Plugin) SetUpdatedAt(updatedAt time.Time)
- func (p *Plugin) Tags() []string
- func (p *Plugin) Type() string
- func (p *Plugin) UpdatedAt() time.Time
- type Publisher
- type PublisherID
- type Version
- type VersionBuilder
- type VersionID
- type VersionedBuilder
- func (b *VersionedBuilder) Active(active bool) *VersionedBuilder
- func (b *VersionedBuilder) Author(author string) *VersionedBuilder
- func (b *VersionedBuilder) Build() (*VersionedPlugin, error)
- func (b *VersionedBuilder) Checksum(checksum string) *VersionedBuilder
- func (b *VersionedBuilder) CreatedAt(createdAt time.Time) *VersionedBuilder
- func (b *VersionedBuilder) Description(description string) *VersionedBuilder
- func (b *VersionedBuilder) Downloads(downloads int64) *VersionedBuilder
- func (b *VersionedBuilder) Icon(icon string) *VersionedBuilder
- func (b *VersionedBuilder) Name(name string) *VersionedBuilder
- func (b *VersionedBuilder) PublishedAt(publishedAt time.Time) *VersionedBuilder
- func (b *VersionedBuilder) Readme(readme string) *VersionedBuilder
- func (b *VersionedBuilder) Repository(repository string) *VersionedBuilder
- func (b *VersionedBuilder) UpdatedAt(updatedAt time.Time) *VersionedBuilder
- func (b *VersionedBuilder) Version(version string) *VersionedBuilder
- type VersionedPlugin
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var IDFrom = id.PluginIDFrom
View Source
var IDFromRef = id.PluginIDFromRef
View Source
var MustID = id.MustPluginID
View Source
var NewID = id.NewPluginID
View Source
var NewVersionID = id.NewVersionID
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) LatestVersion ¶
func (b *Builder) LatestVersion(latestVersion *PartialVersion) *Builder
type PartialVersion ¶
type PartialVersion struct {
// contains filtered or unexported fields
}
PartialVersion is a subset type of Version for de-normalization.
func (*PartialVersion) Author ¶
func (v *PartialVersion) Author() string
func (*PartialVersion) Checksum ¶
func (v *PartialVersion) Checksum() string
func (*PartialVersion) CreatedAt ¶
func (v *PartialVersion) CreatedAt() time.Time
func (*PartialVersion) Description ¶
func (v *PartialVersion) Description() string
func (*PartialVersion) Icon ¶
func (v *PartialVersion) Icon() string
func (*PartialVersion) Name ¶
func (v *PartialVersion) Name() string
func (*PartialVersion) PublishedAt ¶
func (v *PartialVersion) PublishedAt() time.Time
func (*PartialVersion) Readme ¶
func (v *PartialVersion) Readme() string
func (*PartialVersion) Repository ¶
func (v *PartialVersion) Repository() string
func (*PartialVersion) SetDescription ¶
func (v *PartialVersion) SetDescription(description string) (changed bool)
func (*PartialVersion) SetUpdatedAt ¶
func (v *PartialVersion) SetUpdatedAt(updatedAt time.Time)
func (*PartialVersion) UpdatedAt ¶
func (v *PartialVersion) UpdatedAt() time.Time
func (*PartialVersion) Version ¶
func (v *PartialVersion) Version() semver.Version
type PartialVersionBuilder ¶
type PartialVersionBuilder struct {
// contains filtered or unexported fields
}
func NewPartialVersion ¶
func NewPartialVersion() *PartialVersionBuilder
func (*PartialVersionBuilder) Author ¶
func (b *PartialVersionBuilder) Author(author string) *PartialVersionBuilder
func (*PartialVersionBuilder) Build ¶
func (b *PartialVersionBuilder) Build() (*PartialVersion, error)
func (*PartialVersionBuilder) Checksum ¶
func (b *PartialVersionBuilder) Checksum(checksum string) *PartialVersionBuilder
func (*PartialVersionBuilder) CreatedAt ¶
func (b *PartialVersionBuilder) CreatedAt(createdAt time.Time) *PartialVersionBuilder
func (*PartialVersionBuilder) Description ¶
func (b *PartialVersionBuilder) Description(description string) *PartialVersionBuilder
func (*PartialVersionBuilder) Icon ¶
func (b *PartialVersionBuilder) Icon(icon string) *PartialVersionBuilder
func (*PartialVersionBuilder) Name ¶
func (b *PartialVersionBuilder) Name(name string) *PartialVersionBuilder
func (*PartialVersionBuilder) PublishedAt ¶
func (b *PartialVersionBuilder) PublishedAt(publishedAt time.Time) *PartialVersionBuilder
func (*PartialVersionBuilder) Readme ¶
func (b *PartialVersionBuilder) Readme(readme string) *PartialVersionBuilder
func (*PartialVersionBuilder) Repository ¶
func (b *PartialVersionBuilder) Repository(repository string) *PartialVersionBuilder
func (*PartialVersionBuilder) UpdatedAt ¶
func (b *PartialVersionBuilder) UpdatedAt(updatedAt time.Time) *PartialVersionBuilder
func (*PartialVersionBuilder) Version ¶
func (b *PartialVersionBuilder) Version(version string) *PartialVersionBuilder
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) AddDownloads ¶
func (*Plugin) LatestVersion ¶
func (p *Plugin) LatestVersion() *PartialVersion
func (*Plugin) PublisherID ¶
func (*Plugin) SetLatestVersion ¶
func (p *Plugin) SetLatestVersion(latestVersion *PartialVersion)
func (*Plugin) SetUpdatedAt ¶
type PublisherID ¶
type Version ¶
type Version struct { PartialVersion // contains filtered or unexported fields }
func (*Version) AddDownloads ¶
type VersionBuilder ¶
type VersionBuilder struct {
// contains filtered or unexported fields
}
func NewVersion ¶
func NewVersion(pv *PartialVersion) *VersionBuilder
func (*VersionBuilder) Active ¶
func (b *VersionBuilder) Active(active bool) *VersionBuilder
func (*VersionBuilder) Build ¶
func (b *VersionBuilder) Build() *Version
func (*VersionBuilder) Downloads ¶
func (b *VersionBuilder) Downloads(downloads int64) *VersionBuilder
func (*VersionBuilder) ID ¶
func (b *VersionBuilder) ID(id VersionID) *VersionBuilder
type VersionedBuilder ¶
type VersionedBuilder struct {
// contains filtered or unexported fields
}
func Versioned ¶
func Versioned(plugin *Plugin) *VersionedBuilder
func (*VersionedBuilder) Active ¶
func (b *VersionedBuilder) Active(active bool) *VersionedBuilder
func (*VersionedBuilder) Author ¶
func (b *VersionedBuilder) Author(author string) *VersionedBuilder
func (*VersionedBuilder) Build ¶
func (b *VersionedBuilder) Build() (*VersionedPlugin, error)
func (*VersionedBuilder) Checksum ¶
func (b *VersionedBuilder) Checksum(checksum string) *VersionedBuilder
func (*VersionedBuilder) CreatedAt ¶
func (b *VersionedBuilder) CreatedAt(createdAt time.Time) *VersionedBuilder
func (*VersionedBuilder) Description ¶
func (b *VersionedBuilder) Description(description string) *VersionedBuilder
func (*VersionedBuilder) Downloads ¶
func (b *VersionedBuilder) Downloads(downloads int64) *VersionedBuilder
func (*VersionedBuilder) Icon ¶
func (b *VersionedBuilder) Icon(icon string) *VersionedBuilder
func (*VersionedBuilder) Name ¶
func (b *VersionedBuilder) Name(name string) *VersionedBuilder
func (*VersionedBuilder) PublishedAt ¶
func (b *VersionedBuilder) PublishedAt(publishedAt time.Time) *VersionedBuilder
func (*VersionedBuilder) Readme ¶
func (b *VersionedBuilder) Readme(readme string) *VersionedBuilder
func (*VersionedBuilder) Repository ¶
func (b *VersionedBuilder) Repository(repository string) *VersionedBuilder
func (*VersionedBuilder) UpdatedAt ¶
func (b *VersionedBuilder) UpdatedAt(updatedAt time.Time) *VersionedBuilder
func (*VersionedBuilder) Version ¶
func (b *VersionedBuilder) Version(version string) *VersionedBuilder
type VersionedPlugin ¶
type VersionedPlugin struct {
// contains filtered or unexported fields
}
func (*VersionedPlugin) Plugin ¶
func (v *VersionedPlugin) Plugin() *Plugin
func (*VersionedPlugin) Version ¶
func (v *VersionedPlugin) Version() *Version
Click to show internal directories.
Click to hide internal directories.