Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Rules []rule = []rule{
checkStructure,
checkValidity,
}
Rules contains all of the validation rules.
Functions ¶
func NewContext ¶
func NewContext(content []byte) context
NewContext creates a context from the provided data. It strips out all carriage returns and moves to the first line (if available).
Types ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry represents a single generic item in the report.
func (Entry) MarshalJSON ¶
MarshalJSON satisfies the json.Marshaler interface, returning the entry encoded as a JSON object.
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
Report represents the list of entries resulting from validation.
func Validate ¶
Validate runs a series of validation tests against the given userdata and returns a report detailing all of the issues. Presently, only cloud-configs can be validated.
Click to show internal directories.
Click to hide internal directories.