Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilteredString ¶
FilteredString is a wrapper around string values that can be null/default or an actual value. Use IsSet to check if the value is provided, instead of checking against the empty string.
func (FilteredString) MarshalJSON ¶
func (n FilteredString) MarshalJSON() ([]byte, error)
MarshalJSON marshals the value field if IsSet is true, otherwise returns an null.
func (*FilteredString) ParseValue ¶
func (n *FilteredString) ParseValue(val string)
ParseValue is used to parse a user provided flag argument.
func (FilteredString) String ¶
func (n FilteredString) String() string
func (*FilteredString) UnmarshalJSON ¶
func (n *FilteredString) UnmarshalJSON(rawJSON []byte) error
type FilteredStrings ¶
type FilteredStrings []FilteredString
func (FilteredStrings) String ¶
func (n FilteredStrings) String() string
type NullByteSizeInMb ¶
NullByteSizeInMb represents size in a byte format in megabytes.
func (*NullByteSizeInMb) ParseStringValue ¶
func (b *NullByteSizeInMb) ParseStringValue(value string) error
func (*NullByteSizeInMb) ParseUint64Value ¶
func (b *NullByteSizeInMb) ParseUint64Value(val *uint64)
ParseUint64Value is used to parse a user provided *uint64 argument.
func (NullByteSizeInMb) String ¶
func (b NullByteSizeInMb) String() string
func (*NullByteSizeInMb) UnmarshalJSON ¶
func (b *NullByteSizeInMb) UnmarshalJSON(rawJSON []byte) error
type NullInt ¶
NullInt is a wrapper around integer values that can be null or an integer. Use IsSet to check if the value is provided, instead of checking against 0.
func (NullInt) MarshalJSON ¶
func (*NullInt) ParseIntValue ¶
ParseIntValue is used to parse a user provided *int argument.
func (*NullInt) ParseStringValue ¶
ParseStringValue is used to parse a user provided flag argument.
func (*NullInt) UnmarshalJSON ¶
type NullUint64 ¶
NullUint64 is a wrapper around uint64 values that can be null or an unint64. Use IsSet to check if the value is provided, instead of checking against 0.
func (*NullUint64) ParseStringValue ¶
func (n *NullUint64) ParseStringValue(val string) error
ParseStringValue is used to parse a user provided flag argument.
func (*NullUint64) UnmarshalJSON ¶
func (n *NullUint64) UnmarshalJSON(rawJSON []byte) error