package internal

import "github.com/gohugoio/hugo/resources/internal"

Index

Types

type ResourceTransformationKey

type ResourceTransformationKey struct {
	Name string
	// contains filtered or unexported fields
}

ResourceTransformationKey are provided by the different transformation implementations. It identifies the transformation (name) and its configuration (elements). We combine this in a chain with the rest of the transformations with the target filename and a content hash of the origin to use as cache key.

func NewResourceTransformationKey

func NewResourceTransformationKey(name string, elements ...interface{}) ResourceTransformationKey

NewResourceTransformationKey creates a new ResourceTransformationKey from the transformation name and elements. We will create a 64 bit FNV hash from the elements, which when combined with the other key elements should be unique for all practical applications.

func (ResourceTransformationKey) Value

Value returns the Key as a string. Do not change this without good reasons.

Source Files

key.go

Version
v0.68.3
Published
Mar 24, 2020
Platform
linux/amd64
Imports
1 packages
Last checked
3 hours ago

Tools for package owners.