input

package
v4.2.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package input provides input configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

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

Input describes an input configuration.

func New

func New() *Input

New returns a default Input configuration.

func (*Input) As

func (i *Input) As(target interface{}) error

As unmarshals the data input to target.

func (*Input) ConfigFlags

func (i *Input) ConfigFlags(pf *pflag.FlagSet)

ConfigFlags sets input-related config flags on pf.

func (*Input) HasInput

func (i *Input) HasInput() bool

HasInput returns true if some input has been provided.

func (*Input) JSONData

func (i *Input) JSONData() (json.Marshaler, error)

JSONData converts the input data to JSON (I think).

func (*Input) RawData

func (i *Input) RawData() (io.ReadCloser, error)

RawData returns the raw input data (I think).

Jump to

Keyboard shortcuts

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