validator

package
v0.0.1-0...-a0864a0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComponent

func NewComponent() component.Base

NewComponent Return a new Base

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

Validator struct defines file type

func (*Validator) Decode

Decode Decodes an image reading only the necessary bytes to validate the image

func (*Validator) DecodeStream

func (d *Validator) DecodeStream(in payload.Stream, data payload.Data) (payload.DecodedImage, response.Response)

DecodeStream Decodes an image reading only the necessary bytes to validate the image

func (*Validator) Init

func (d *Validator) Init(config cfg.Config, logger zap.SugaredLogger) error

Init file validator

func (*Validator) Process

process will validate that the image is as configured. adding format and dimensions to payload.Dataa

func (*Validator) Start

func (d *Validator) Start() error

Start the validator plugin

func (*Validator) Stop

func (d *Validator) Stop() error

Stop the validator plugin

Jump to

Keyboard shortcuts

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