Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrCrdGenerateCode = "11088" ErrDefinitionCode = "11090" ErrGetSchemaCode = "11091" )
View Source
const ComponentMetaNameKey = "name"
Variables ¶
View Source
var Configs = []CuePathConfig{DefaultPathConfig, DefaultPathConfig2}
View Source
var DefaultPathConfig = CuePathConfig{
NamePath: "spec.names.kind",
IdentifierPath: "spec.names.kind",
VersionPath: "spec.versions[0].name",
GroupPath: "spec.group",
SpecPath: "spec.versions[0].schema.openAPIV3Schema.properties.spec",
}
View Source
var DefaultPathConfig2 = CuePathConfig{
NamePath: "spec.names.kind",
IdentifierPath: "spec.names.kind",
VersionPath: "spec.versions[0].name",
GroupPath: "spec.group",
SpecPath: "spec.validation.openAPIV3Schema.properties.spec",
}
Functions ¶
func ErrCrdGenerate ¶
func ErrGetDefinition ¶
func ErrGetSchema ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.