Documentation ¶
Index ¶
- func CloneTransform(datum *imageTransform.Transform) *imageTransform.Transform
- func RandomTransform() *imageTransform.Transform
- type CalculateTransformInput
- type CalculateTransformOutput
- type TransformContentInput
- type TransformContentOutput
- type Transformer
- func (t *Transformer) AssertOutputsEmpty()
- func (t *Transformer) CalculateTransform(contentAttributes *image.ContentAttributes, rendition *image.Rendition) (*imageTransform.Transform, error)
- func (t *Transformer) TransformContent(reader io.Reader, transform *imageTransform.Transform) (io.ReadCloser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneTransform ¶
func CloneTransform(datum *imageTransform.Transform) *imageTransform.Transform
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)
Click to show internal directories.
Click to hide internal directories.