test

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomTransform

func RandomTransform() *imageTransform.Transform

Types

type CalculateTransformInput

type CalculateTransformInput struct {
	ContentAttributes *image.ContentAttributes
	Rendition         *image.Rendition
}

type CalculateTransformOutput

type CalculateTransformOutput struct {
	Transform *imageTransform.Transform
	Error     error
}

type TransformContentInput

type TransformContentInput struct {
	Reader    io.Reader
	Transform *imageTransform.Transform
}

type TransformContentOutput

type TransformContentOutput struct {
	Reader io.ReadCloser
	Error  error
}

type Transformer

type Transformer struct {
	CalculateTransformInvocations int
	CalculateTransformInputs      []CalculateTransformInput
	CalculateTransformStub        func(contentAttributes *image.ContentAttributes, rendition *image.Rendition) (*imageTransform.Transform, error)
	CalculateTransformOutputs     []CalculateTransformOutput
	CalculateTransformOutput      *CalculateTransformOutput
	TransformContentInvocations   int
	TransformContentInputs        []TransformContentInput
	TransformContentStub          func(reader io.Reader, transform *imageTransform.Transform) (io.ReadCloser, error)
	TransformContentOutputs       []TransformContentOutput
	TransformContentOutput        *TransformContentOutput
}

func NewTransformer

func NewTransformer() *Transformer

func (*Transformer) AssertOutputsEmpty

func (t *Transformer) AssertOutputsEmpty()

func (*Transformer) CalculateTransform

func (t *Transformer) CalculateTransform(contentAttributes *image.ContentAttributes, rendition *image.Rendition) (*imageTransform.Transform, error)

func (*Transformer) TransformContent

func (t *Transformer) TransformContent(reader io.Reader, transform *imageTransform.Transform) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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