Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flag ¶
type Flag interface { // Add flags to the command. AddFlags(cmd *cobra.Command) // Validate values set to flags. Validate() error }
Flag is the interface that handles command line options.
type FlagSet ¶
type FlagSet struct {
// contains filtered or unexported fields
}
FlagSet is the collection of flags to be set to the command.
func (*FlagSet) AddAllFlags ¶
Add flags to the command.
type FramingFlags ¶ added in v0.1.2
type FramingFlags struct {
AcceptedFraming []string
}
func NewFramingFlags ¶ added in v0.1.2
func NewFramingFlags() *FramingFlags
Create a new FramingFlags with default values set.
func (*FramingFlags) AddFlags ¶ added in v0.1.2
func (f *FramingFlags) AddFlags(cmd *cobra.Command)
Add flags to the command.
func (*FramingFlags) ToProtoAcceptedFraming ¶ added in v0.1.2
func (f *FramingFlags) ToProtoAcceptedFraming() []v1.Framing
Return accepted framing
func (*FramingFlags) Validate ¶ added in v0.1.2
func (f *FramingFlags) Validate() error
Validate flag values.
type MinElevationFlags ¶
type MinElevationFlags struct {
MinElevation float64
}
func NewMinElevationFlags ¶
func NewMinElevationFlags() *MinElevationFlags
Create a new MinElevationFlags with default values set.
func (*MinElevationFlags) AddFlags ¶
func (f *MinElevationFlags) AddFlags(cmd *cobra.Command)
Add flags to the command.
func (*MinElevationFlags) Validate ¶
func (f *MinElevationFlags) Validate() error
Validate flag values.
type OutputFormatFlags ¶
type OutputFormatFlags struct {
Format string
}
func NewOutputFormatFlags ¶
func NewOutputFormatFlags() *OutputFormatFlags
Create a new OutputFormatFlags with default values set.
func (*OutputFormatFlags) AddFlags ¶
func (f *OutputFormatFlags) AddFlags(cmd *cobra.Command)
Add flags to the command.
func (*OutputFormatFlags) ToPrinter ¶
func (f *OutputFormatFlags) ToPrinter() printer.Printer
Return a Printer corresponding to the output format.
func (*OutputFormatFlags) Validate ¶
func (f *OutputFormatFlags) Validate() error
Validate flag values.
type PassRangeFlags ¶
type PassRangeFlags struct { AOSAfter time.Time AOSBefore time.Time DurationInDays uint8 // Maximum duration in days used in the validation. MaxDurationInDays uint8 // contains filtered or unexported fields }
func NewPassRangeFlags ¶
func NewPassRangeFlags() *PassRangeFlags
Create a new PassRangeFlags with default values set.
func (*PassRangeFlags) AddFlags ¶
func (f *PassRangeFlags) AddFlags(cmd *cobra.Command)
Add flags to the command.
type ProxyFlags ¶ added in v0.1.2
type ProxyFlags struct { ProxyProtocol string UDPListenHost string UDPListenPort uint16 UDPSendHost string UDPSendPort uint16 TCPListenHost string TCPListenPort uint16 }
func NewProxyFlags ¶ added in v0.1.2
func NewProxyFlags() *ProxyFlags
Create a new ProxyFlags with default values set.
func (*ProxyFlags) AddFlags ¶ added in v0.1.2
func (f *ProxyFlags) AddFlags(cmd *cobra.Command)
Add flags to the command.
func (*ProxyFlags) ToProxy ¶ added in v0.1.2
func (f *ProxyFlags) ToProxy() stream.Proxy
Return a Proxy corresponding to the protocol.
func (*ProxyFlags) Validate ¶ added in v0.1.2
func (f *ProxyFlags) Validate() error
Validate flag values.
type UWRangeFlags ¶
type UWRangeFlags struct { StartTime time.Time EndTime time.Time DurationInDays uint16 // Maximum duration in days used in the validation. MaxDurationInDays uint16 // contains filtered or unexported fields }
func NewUWRangeFlags ¶
func NewUWRangeFlags() *UWRangeFlags
Create a new UWRangeFlags with default values set.
func (*UWRangeFlags) AddFlags ¶
func (f *UWRangeFlags) AddFlags(cmd *cobra.Command)
Add flags to the command.
type VerboseFlags ¶ added in v0.1.2
type VerboseFlags struct {
IsVerbose bool
}
func NewVerboseFlags ¶ added in v0.1.2
func NewVerboseFlags() *VerboseFlags
Create a new VerboseFlags.
func (*VerboseFlags) AddFlags ¶ added in v0.1.2
func (f *VerboseFlags) AddFlags(cmd *cobra.Command)
Add flags to the command.
func (*VerboseFlags) Validate ¶ added in v0.1.2
func (f *VerboseFlags) Validate() error
Validate flag values.