Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attribute ¶
type Attribute struct { Dir string `json:"dir"` File string `json:"file"` Name string `json:"name"` Metadata map[string]string `json:"metadata"` }
Attribute defines a single check that is ready for execution
type AttributeSet ¶
type AttributeSet []Attribute
AttributeSet defines a group of Attributes
func NewSet ¶
func NewSet(relativeDirs []string) (AttributeSet, error)
NewSet returns a AttributeSet based on a provided list of directories
func (AttributeSet) Check ¶
func (as AttributeSet) Check() ResultSet
Check returns the Results from a AttributeSet by calling Execute on each Attribute
func (AttributeSet) String ¶
func (as AttributeSet) String() string
String returns the AttributeSet as a human-readable string
type LoadInput ¶
LoadInput defines the input passed to a plugin to load checks
func (LoadInput) Load ¶
func (l LoadInput) Load() AttributeSet
Load returns an AttributeSet for the provided directory/file
type Plugin ¶
type Plugin interface { GetConfigPointer() interface{} Load(LoadInput) AttributeSet Check(Attribute) Result Fix(Result) Result }
Plugin defines a Golang plugin object for prospectus request handling
type Result ¶
type Result struct { Actual string `json:"actual"` Expected string `json:"expected"` Matches bool `json:"matches"` Attribute Attribute `json:"attribute"` }
Result defines the results of executing a Attribute
func NewErrorResult ¶
NewErrorResult creates an error result from a given string
Click to show internal directories.
Click to hide internal directories.