Versions in this module Expand all Collapse all v0 v0.123.13 Mar 12, 2024 v0.123.12 Mar 12, 2024 v0.123.11 Mar 12, 2024 v0.123.10 Mar 12, 2024 Changes in this version + func CloneWithMetadataIfNeeded(m []map[string]any, r resource.Resource) resource.Resource + func Copy(r resource.Resource, targetPath string) resource.Resource + func NewErrorResource(err resource.ResourceError) resource.Resource + type AtomicStaler struct + func (s *AtomicStaler) IsStale() bool + func (s *AtomicStaler) MarkStale() + type GenericResourceTestInfo struct + Paths internal.ResourcePaths + func GetTestInfoForResource(r resource.Resource) GenericResourceTestInfo + type ImageCache struct + type PostBuildAssets struct + JSConfigBuilder *jsconfig.Builder + PostProcessResources map[string]postpub.PostPublishedResource + type ResourceCache struct + func (c *ResourceCache) Get(ctx context.Context, key string) (resource.Resource, bool) + func (c *ResourceCache) GetOrCreate(key string, f func() (resource.Resource, error)) (resource.Resource, error) + func (c *ResourceCache) GetOrCreateResources(key string, f func() (resource.Resources, error)) (resource.Resources, error) + type ResourceSourceDescriptor struct + BasePathRelPermalink string + BasePathTargetPath string + Data map[string]any + DependencyManager identity.Manager + GroupIdentity identity.Identity + LazyPublish bool + MediaType media.Type + NameNormalized string + NameOriginal string + OpenReadSeekCloser hugio.OpenReadSeekCloser + Path *paths.Path + TargetBasePaths []string + TargetPath string + type ResourceTransformation interface + Key func() internal.ResourceTransformationKey + Transform func(ctx *ResourceTransformationCtx) error + func NewFeatureNotAvailableTransformer(key string, elements ...any) ResourceTransformation + type ResourceTransformationCtx struct + Ctx context.Context + Data map[string]any + DependencyManager identity.Manager + From io.Reader + InMediaType media.Type + InPath string + OpenResourcePublisher func(relTargetPath string) (io.WriteCloser, error) + OutMediaType media.Type + OutPath string + SourcePath string + To io.Writer + func (ctx *ResourceTransformationCtx) AddOutPathIdentifier(identifier string) + func (ctx *ResourceTransformationCtx) PublishSourceMap(content string) error + func (ctx *ResourceTransformationCtx) ReplaceOutPathExtension(newExt string) + type ResourceTransformer interface + type Spec struct + ErrorSender herrors.ErrorSender + ExecHelper *hexec.Exec + ImageCache *ImageCache + Logger loggers.Logger + Permalinks page.PermalinkExpander + TextTemplates tpl.TemplateParseFinder + func NewSpec(s *helpers.PathSpec, common *SpecCommon, fileCaches filecache.Caches, ...) (*Spec, error) + func (r *Spec) BuildConfig() config.BuildConfig + func (r *Spec) MediaTypes() media.Types + func (r *Spec) NewResource(rd ResourceSourceDescriptor) (resource.Resource, error) + func (r *Spec) OutputFormats() output.Formats + func (s *Spec) String() string + func (spec *Spec) PostProcess(r resource.Resource) (postpub.PostPublishedResource, error) + type SpecCommon struct + FileCaches filecache.Caches + ResourceCache *ResourceCache + type StaleValue struct + IsStaleFunc func() bool + Value V + func (s *StaleValue[V]) IsStale() bool + type Transformer interface + Transform func(...ResourceTransformation) (ResourceTransformer, error) + TransformWithContext func(context.Context, ...ResourceTransformation) (ResourceTransformer, error)