Documentation
¶
Index ¶
- Variables
- func GenerateLLMsTxt(website model.Website, pages map[string]model.Page, log *buildLog) ([]byte, error)
- func GenerateRobotsText(robots *model.WebsiteRobots, sitemapURL string) string
- func GenerateSitemap(seo *model.WebsiteSEO, pages map[string]model.Page, log *buildLog) ([]byte, error)
- func GenerateWebsiteStructuredDataBlocks(website model.Website) ([]model.JSONLDBlock, error)
- func NewReleaseID(now time.Time) (string, error)
- func ReadCurrentSymlinkTarget(envDir string) (string, bool, error)
- func SetCurrentSymlinkTarget(envDir, target string) error
- func SwitchCurrentSymlink(envDir, releaseID string) error
- type BuildResult
- type Builder
- type HashMismatchError
- type MissingReleaseDirError
- type NotFoundError
- type PromoteResult
- type RetentionOptions
- type RetentionResult
- type RollbackResult
- type UnsupportedSourceExportError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPromotionSourceTargetMatch = errors.New("source and target environments must be different") ErrPromotionSourceNoActive = errors.New("source environment has no active release") )
View Source
var ErrNoPreviousRelease = errors.New("no previous release available")
Functions ¶
func GenerateLLMsTxt ¶
func GenerateRobotsText ¶
func GenerateRobotsText(robots *model.WebsiteRobots, sitemapURL string) string
func GenerateSitemap ¶
func GenerateWebsiteStructuredDataBlocks ¶
func GenerateWebsiteStructuredDataBlocks(website model.Website) ([]model.JSONLDBlock, error)
func SetCurrentSymlinkTarget ¶
func SwitchCurrentSymlink ¶
Types ¶
type BuildResult ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
type HashMismatchError ¶
type HashMismatchError struct {
Reason string
}
func (*HashMismatchError) Error ¶
func (e *HashMismatchError) Error() string
type MissingReleaseDirError ¶
func (*MissingReleaseDirError) Error ¶
func (e *MissingReleaseDirError) Error() string
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type PromoteResult ¶
type RetentionOptions ¶
type RetentionResult ¶
type RetentionResult struct {
Website string
Environment string
EnvironmentID int64
Keep int
DryRun bool
BlobGC bool
ActiveReleaseID *string
RollbackReleaseID *string
PreviewPinnedReleaseIDs []string
RetainedReleaseIDs []string
PrunableReleaseIDs []string
PrunedReleaseIDs []string
MarkedBlobCount int
BlobDeleteCandidates []string
DeletedBlobHashes []string
Warnings []string
}
func RunRetention ¶
func RunRetention(ctx context.Context, db *sql.DB, blobs *blob.Store, websitesRoot, websiteName, envName string, opts RetentionOptions) (RetentionResult, error)
type RollbackResult ¶
type UnsupportedSourceExportError ¶
type UnsupportedSourceExportError struct {
// contains filtered or unexported fields
}
func (*UnsupportedSourceExportError) Error ¶
func (e *UnsupportedSourceExportError) Error() string
Click to show internal directories.
Click to hide internal directories.