project

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidAlias error = errors.New("invalid alias")
)
View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var IDFromRef = id.ProjectIDFromRef
View Source
var IDFromRefID = id.ProjectIDFromRefID
View Source
var MustTeamID = id.MustTeamID
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

func CheckAliasPattern(alias string) bool

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func New

func New() *Builder

func (*Builder) Alias

func (b *Builder) Alias(alias string) *Builder

func (*Builder) BasicAuthPassword

func (b *Builder) BasicAuthPassword(basicAuthPassword string) *Builder

func (*Builder) BasicAuthUsername

func (b *Builder) BasicAuthUsername(basicAuthUsername string) *Builder

func (*Builder) Build

func (b *Builder) Build() (*Project, error)

func (*Builder) Description

func (b *Builder) Description(description string) *Builder

func (*Builder) ID

func (b *Builder) ID(id ID) *Builder

func (*Builder) ImageURL

func (b *Builder) ImageURL(imageURL *url.URL) *Builder

func (*Builder) IsArchived

func (b *Builder) IsArchived(isArchived bool) *Builder

func (*Builder) IsBasicAuthActive

func (b *Builder) IsBasicAuthActive(isBasicAuthActive bool) *Builder

func (*Builder) MustBuild

func (b *Builder) MustBuild() *Project

func (*Builder) Name

func (b *Builder) Name(name string) *Builder

func (*Builder) NewID

func (b *Builder) NewID() *Builder

func (*Builder) PublicDescription

func (b *Builder) PublicDescription(publicDescription string) *Builder

func (*Builder) PublicImage

func (b *Builder) PublicImage(publicImage string) *Builder

func (*Builder) PublicNoIndex

func (b *Builder) PublicNoIndex(publicNoIndex bool) *Builder

func (*Builder) PublicTitle

func (b *Builder) PublicTitle(publicTitle string) *Builder

func (*Builder) PublishedAt

func (b *Builder) PublishedAt(publishedAt time.Time) *Builder

func (*Builder) PublishmentStatus

func (b *Builder) PublishmentStatus(publishmentStatus PublishmentStatus) *Builder

func (*Builder) Team

func (b *Builder) Team(team TeamID) *Builder

func (*Builder) UpdatedAt

func (b *Builder) UpdatedAt(updatedAt time.Time) *Builder

func (*Builder) Visualizer

func (b *Builder) Visualizer(visualizer visualizer.Visualizer) *Builder

type ID added in v0.4.0

type ID = id.ProjectID

type Project

type Project struct {
	// contains filtered or unexported fields
}

func (*Project) Alias

func (p *Project) Alias() string

func (*Project) BasicAuthPassword

func (p *Project) BasicAuthPassword() string

func (*Project) BasicAuthUsername

func (p *Project) BasicAuthUsername() string

func (*Project) CreatedAt

func (p *Project) CreatedAt() time.Time

func (*Project) Description

func (p *Project) Description() string

func (*Project) ID

func (p *Project) ID() ID

func (*Project) ImageURL

func (p *Project) ImageURL() *url.URL

func (*Project) IsArchived

func (p *Project) IsArchived() bool

func (*Project) IsBasicAuthActive

func (p *Project) IsBasicAuthActive() bool

func (*Project) MatchWithPublicName

func (p *Project) MatchWithPublicName(name string) bool

func (*Project) Name

func (p *Project) Name() string

func (*Project) PublicDescription

func (p *Project) PublicDescription() string

func (*Project) PublicImage

func (p *Project) PublicImage() string

func (*Project) PublicName

func (p *Project) PublicName() string

func (*Project) PublicNoIndex

func (p *Project) PublicNoIndex() bool

func (*Project) PublicTitle

func (p *Project) PublicTitle() string

func (*Project) PublishedAt

func (p *Project) PublishedAt() time.Time

func (*Project) PublishmentStatus

func (p *Project) PublishmentStatus() PublishmentStatus

func (*Project) SetArchived

func (p *Project) SetArchived(isArchived bool)

func (*Project) SetBasicAuthPassword

func (p *Project) SetBasicAuthPassword(basicAuthPassword string)

func (*Project) SetBasicAuthUsername

func (p *Project) SetBasicAuthUsername(basicAuthUsername string)

func (*Project) SetImageURL

func (p *Project) SetImageURL(imageURL *url.URL)

func (*Project) SetIsBasicAuthActive

func (p *Project) SetIsBasicAuthActive(isBasicAuthActive bool)

func (*Project) SetPublishedAt

func (p *Project) SetPublishedAt(publishedAt time.Time)

func (*Project) SetUpdatedAt

func (p *Project) SetUpdatedAt(updatedAt time.Time)

func (*Project) Team

func (p *Project) Team() TeamID

func (*Project) UpdateAlias

func (p *Project) UpdateAlias(alias string) error

func (*Project) UpdateDescription

func (p *Project) UpdateDescription(description string)

func (*Project) UpdateName

func (p *Project) UpdateName(name string)

func (*Project) UpdatePublicDescription

func (p *Project) UpdatePublicDescription(publicDescription string)

func (*Project) UpdatePublicImage

func (p *Project) UpdatePublicImage(publicImage string)

func (*Project) UpdatePublicNoIndex

func (p *Project) UpdatePublicNoIndex(publicNoIndex bool)

func (*Project) UpdatePublicTitle

func (p *Project) UpdatePublicTitle(publicTitle string)

func (*Project) UpdatePublishmentStatus

func (p *Project) UpdatePublishmentStatus(publishmentStatus PublishmentStatus)

func (*Project) UpdateTeam

func (p *Project) UpdateTeam(team TeamID)

func (*Project) UpdateVisualizer

func (p *Project) UpdateVisualizer(visualizer visualizer.Visualizer)

func (*Project) UpdatedAt

func (p *Project) UpdatedAt() time.Time

func (*Project) Visualizer

func (p *Project) Visualizer() visualizer.Visualizer

type PublishmentStatus

type PublishmentStatus string
const (
	PublishmentStatusPublic PublishmentStatus = "public"

	PublishmentStatusLimited PublishmentStatus = "limited"

	PublishmentStatusPrivate PublishmentStatus = "private"
)

type TeamID added in v0.4.0

type TeamID = id.TeamID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL