Documentation ¶
Index ¶
- func AddChain(opts *output.Options, chain, add processing.ProcessChain) processing.ProcessChain
- func Chain(opts *output.Options, cf ClosureFunction) processing.ProcessChain
- func Closure(opts *output.Options, cf ClosureFunction, chain processing.ProcessChain) processing.ProcessChain
- func History(e interface{}) string
- func OutputChainFunction(cf ClosureFunction, chain processing.ProcessChain) output.ChainFunction
- func TableOutput(in *output.TableOutput, closure ...ClosureFunction) *output.TableOutput
- type ClosureFunction
- type Option
- func (o *Option) AddFlags(fs *pflag.FlagSet)
- func (o *Option) ApplyTransferOption(opts transferhandler.TransferOptions) error
- func (o *Option) Explode(e processing.ExplodeFunction) processing.ProcessChain
- func (o *Option) Headers(opts options.OptionSetProvider, cols []string) []string
- func (o *Option) IsTrue() bool
- func (o *Option) Mapper(opts options.OptionSetProvider, path func(interface{}) string, ...) processing.MappingFunction
- func (o *Option) Usage() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddChain ¶
func AddChain(opts *output.Options, chain, add processing.ProcessChain) processing.ProcessChain
func Chain ¶
func Chain(opts *output.Options, cf ClosureFunction) processing.ProcessChain
func Closure ¶
func Closure(opts *output.Options, cf ClosureFunction, chain processing.ProcessChain) processing.ProcessChain
func OutputChainFunction ¶
func OutputChainFunction(cf ClosureFunction, chain processing.ProcessChain) output.ChainFunction
OutputChainFunction provides an chain function that can be used to add an option based closure processing and an optional additional chain to an output chain.
func TableOutput ¶
func TableOutput(in *output.TableOutput, closure ...ClosureFunction) *output.TableOutput
Types ¶
type ClosureFunction ¶
func (ClosureFunction) Exploder ¶
func (c ClosureFunction) Exploder(opts *output.Options) processing.ExplodeFunction
type Option ¶
type Option struct { standard.TransferOptionsCreator ElementName string Closure bool ClosureField string AddReferencePath options.OptionSelector AdditionalFields []string FieldEnricher func(interface{}) []string // contains filtered or unexported fields }
func From ¶
func From(o options.OptionSetProvider) *Option
func (*Option) ApplyTransferOption ¶
func (o *Option) ApplyTransferOption(opts transferhandler.TransferOptions) error
func (*Option) Explode ¶
func (o *Option) Explode(e processing.ExplodeFunction) processing.ProcessChain
func (*Option) Headers ¶
func (o *Option) Headers(opts options.OptionSetProvider, cols []string) []string
func (*Option) Mapper ¶
func (o *Option) Mapper(opts options.OptionSetProvider, path func(interface{}) string, mapper processing.MappingFunction) processing.MappingFunction
Click to show internal directories.
Click to hide internal directories.