Documentation ¶
Index ¶
- type Holder
- func (severityHolder Holder) JSONSchemaType() *jsonschema.Type
- func (severityHolder Holder) MarshalJSON() ([]byte, error)
- func (severityHolder Holder) MarshalYAML() (interface{}, error)
- func (severityHolder *Holder) UnmarshalJSON(data []byte) error
- func (severityHolder *Holder) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Severities
- func (severities Severities) MarshalJSON() ([]byte, error)
- func (severities *Severities) Set(values string) error
- func (severities Severities) String() string
- func (severities *Severities) UnmarshalJSON(data []byte) error
- func (severities *Severities) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Severity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Holder ¶
type Holder struct {
Severity Severity `mapping:"true"`
}
Holder holds a Severity type. Required for un/marshalling purposes
func (Holder) JSONSchemaType ¶
func (severityHolder Holder) JSONSchemaType() *jsonschema.Type
func (Holder) MarshalJSON ¶
func (Holder) MarshalYAML ¶
func (*Holder) UnmarshalJSON ¶
func (*Holder) UnmarshalYAML ¶
type Severities ¶
type Severities []Severity
Severities used by the goflags library for parsing an array of Severity types, passed as CLI arguments from the user
func GetSupportedSeverities ¶
func GetSupportedSeverities() Severities
func (Severities) MarshalJSON ¶
func (severities Severities) MarshalJSON() ([]byte, error)
func (*Severities) Set ¶
func (severities *Severities) Set(values string) error
func (Severities) String ¶
func (severities Severities) String() string
func (*Severities) UnmarshalJSON ¶
func (severities *Severities) UnmarshalJSON(data []byte) error
func (*Severities) UnmarshalYAML ¶
func (severities *Severities) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.