Documentation ¶
Index ¶
- Variables
- func CheckAliasPattern(alias string) bool
- type Builder
- func (b *Builder) Alias(alias string) *Builder
- func (b *Builder) BasicAuthPassword(basicAuthPassword string) *Builder
- func (b *Builder) BasicAuthUsername(basicAuthUsername string) *Builder
- func (b *Builder) Build() (*Project, error)
- func (b *Builder) Description(description string) *Builder
- func (b *Builder) ID(id ID) *Builder
- func (b *Builder) ImageURL(imageURL *url.URL) *Builder
- func (b *Builder) IsArchived(isArchived bool) *Builder
- func (b *Builder) IsBasicAuthActive(isBasicAuthActive bool) *Builder
- func (b *Builder) MustBuild() *Project
- func (b *Builder) Name(name string) *Builder
- func (b *Builder) NewID() *Builder
- func (b *Builder) PublicDescription(publicDescription string) *Builder
- func (b *Builder) PublicImage(publicImage string) *Builder
- func (b *Builder) PublicNoIndex(publicNoIndex bool) *Builder
- func (b *Builder) PublicTitle(publicTitle string) *Builder
- func (b *Builder) PublishedAt(publishedAt time.Time) *Builder
- func (b *Builder) PublishmentStatus(publishmentStatus PublishmentStatus) *Builder
- func (b *Builder) Team(team TeamID) *Builder
- func (b *Builder) UpdatedAt(updatedAt time.Time) *Builder
- func (b *Builder) Visualizer(visualizer visualizer.Visualizer) *Builder
- type ID
- type Project
- func (p *Project) Alias() string
- func (p *Project) BasicAuthPassword() string
- func (p *Project) BasicAuthUsername() string
- func (p *Project) CreatedAt() time.Time
- func (p *Project) Description() string
- func (p *Project) ID() ID
- func (p *Project) ImageURL() *url.URL
- func (p *Project) IsArchived() bool
- func (p *Project) IsBasicAuthActive() bool
- func (p *Project) MatchWithPublicName(name string) bool
- func (p *Project) Name() string
- func (p *Project) PublicDescription() string
- func (p *Project) PublicImage() string
- func (p *Project) PublicName() string
- func (p *Project) PublicNoIndex() bool
- func (p *Project) PublicTitle() string
- func (p *Project) PublishedAt() time.Time
- func (p *Project) PublishmentStatus() PublishmentStatus
- func (p *Project) SetArchived(isArchived bool)
- func (p *Project) SetBasicAuthPassword(basicAuthPassword string)
- func (p *Project) SetBasicAuthUsername(basicAuthUsername string)
- func (p *Project) SetImageURL(imageURL *url.URL)
- func (p *Project) SetIsBasicAuthActive(isBasicAuthActive bool)
- func (p *Project) SetPublishedAt(publishedAt time.Time)
- func (p *Project) SetUpdatedAt(updatedAt time.Time)
- func (p *Project) Team() TeamID
- func (p *Project) UpdateAlias(alias string) error
- func (p *Project) UpdateDescription(description string)
- func (p *Project) UpdateName(name string)
- func (p *Project) UpdatePublicDescription(publicDescription string)
- func (p *Project) UpdatePublicImage(publicImage string)
- func (p *Project) UpdatePublicNoIndex(publicNoIndex bool)
- func (p *Project) UpdatePublicTitle(publicTitle string)
- func (p *Project) UpdatePublishmentStatus(publishmentStatus PublishmentStatus)
- func (p *Project) UpdateTeam(team TeamID)
- func (p *Project) UpdateVisualizer(visualizer visualizer.Visualizer)
- func (p *Project) UpdatedAt() time.Time
- func (p *Project) Visualizer() visualizer.Visualizer
- type PublishmentStatus
- type TeamID
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidAlias error = errors.New("invalid alias")
)
View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var IDFrom = id.ProjectIDFrom
View Source
var IDFromRef = id.ProjectIDFromRef
View Source
var IDFromRefID = id.ProjectIDFromRefID
View Source
var MustID = id.MustProjectID
View Source
var MustTeamID = id.MustTeamID
View Source
var NewID = id.NewProjectID
View Source
var NewTeamID = id.NewTeamID
View Source
var TeamIDFrom = id.TeamIDFrom
View Source
var TeamIDFromRef = id.TeamIDFromRef
View Source
var TeamIDFromRefID = id.TeamIDFromRefID
Functions ¶
func CheckAliasPattern ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) BasicAuthPassword ¶
func (*Builder) BasicAuthUsername ¶
func (*Builder) Description ¶
func (*Builder) IsArchived ¶
func (*Builder) IsBasicAuthActive ¶
func (*Builder) PublicDescription ¶
func (*Builder) PublicImage ¶
func (*Builder) PublicNoIndex ¶
func (*Builder) PublicTitle ¶
func (*Builder) PublishmentStatus ¶
func (b *Builder) PublishmentStatus(publishmentStatus PublishmentStatus) *Builder
func (*Builder) Visualizer ¶
func (b *Builder) Visualizer(visualizer visualizer.Visualizer) *Builder
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func (*Project) BasicAuthPassword ¶
func (*Project) BasicAuthUsername ¶
func (*Project) Description ¶
func (*Project) IsArchived ¶
func (*Project) IsBasicAuthActive ¶
func (*Project) MatchWithPublicName ¶
func (*Project) PublicDescription ¶
func (*Project) PublicImage ¶
func (*Project) PublicName ¶
func (*Project) PublicNoIndex ¶
func (*Project) PublicTitle ¶
func (*Project) PublishedAt ¶
func (*Project) PublishmentStatus ¶
func (p *Project) PublishmentStatus() PublishmentStatus
func (*Project) SetArchived ¶
func (*Project) SetBasicAuthPassword ¶
func (*Project) SetBasicAuthUsername ¶
func (*Project) SetImageURL ¶
func (*Project) SetIsBasicAuthActive ¶
func (*Project) SetPublishedAt ¶
func (*Project) SetUpdatedAt ¶
func (*Project) UpdateAlias ¶
func (*Project) UpdateDescription ¶
func (*Project) UpdateName ¶
func (*Project) UpdatePublicDescription ¶
func (*Project) UpdatePublicImage ¶
func (*Project) UpdatePublicNoIndex ¶
func (*Project) UpdatePublicTitle ¶
func (*Project) UpdatePublishmentStatus ¶
func (p *Project) UpdatePublishmentStatus(publishmentStatus PublishmentStatus)
func (*Project) UpdateTeam ¶
func (*Project) UpdateVisualizer ¶
func (p *Project) UpdateVisualizer(visualizer visualizer.Visualizer)
func (*Project) Visualizer ¶
func (p *Project) Visualizer() visualizer.Visualizer
type PublishmentStatus ¶
type PublishmentStatus string
const ( PublishmentStatusPublic PublishmentStatus = "public" PublishmentStatusLimited PublishmentStatus = "limited" PublishmentStatusPrivate PublishmentStatus = "private" )
Click to show internal directories.
Click to hide internal directories.