Documentation ¶
Index ¶
Constants ¶
View Source
const ( ParameterTypeUnknown = "unknown" ParameterTypeString = "string" ParameterTypeNumber = "number" ParameterTypeObject = "object" ParameterTypeList = "list" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Class ¶
type Class struct { Path string // the class path in the project structure Name string // the class name Description string // a description for the class (extracted from file header comments) Uses []string // a slice of classes from which this class inherits UsedBy []string // a slice of classes that inherit from this class Parameters []Parameter // the parameters of this class }
Class defines a class in a kapitan project.
func NewClasses ¶
NewClasses returns a slice of non empty classes from given parsed yaml files.
type PairedNodes ¶
type PairedNodes struct {
// contains filtered or unexported fields
}
PairedNodes wraps a pair of nodes (used to get key / value in the context of a MappingNode).
type Parameter ¶
type Parameter struct { Key string // the key in the yaml Kind ParameterType // the parameter kind Description string // a description for the parameter (extracted from parameter header comment in the class) DefaultValue string // the parameter default value (the value defined in the class) }
Parameter defines a kapitan parameter used in a class.
type Project ¶
type Project struct {
Classes []Class
}
Project describes a kapitan project.
func NewProject ¶
NewProject returns a newly instanciated project initialized from project directory path.
Click to show internal directories.
Click to hide internal directories.