v0.58.0 Latest Latest

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 2 Imported by: 0




This section is empty.


This section is empty.


func HashString added in v0.58.0

func HashString(elements ...interface{}) string

HashString returns a hash from the given elements. It will panic if the hash cannot be calculated.


type ResourceTransformationKey added in v0.58.0

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 added in v0.58.0

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 added in v0.58.0

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

Jump to

Keyboard shortcuts

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