binary

package
v2.0.0-...-98cc131 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TYPE = "binary"

Variables

This section is empty.

Functions

func AddConfig

func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error

Types

type Spec

type Spec struct {
	inputs.InputSpecBase `json:",inline"`
	cpi.ProcessSpec      `json:",inline"`

	// Data is plain inline data as byte array
	Data runtime.Binary `json:"data,omitempty"` // json rejects to unmarshal some !string into []byte
}

func New

func New(data []byte, mediatype string, compress bool) *Spec

func (*Spec) GetBlob

func (*Spec) Validate

func (s *Spec) Validate(fldPath *field.Path, ctx inputs.Context, inputFilePath string) field.ErrorList

Jump to

Keyboard shortcuts

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