Documentation ¶
Index ¶
- Variables
- func GenerateOpenApiValidationSchemas(project *model.Project, options *ValidationSchemaOptions, ...) error
- func NewCueGenerator(importsCollector collector.Collector, absoluteRoot string) *cueGenerator
- func NewProtocGenerator(importsCollector collector.Collector, absoluteRoot string) *protocGenerator
- type CrdWriter
- type JsonSchemaGenerator
- type OpenApiSchemas
- type ValidationSchemaOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApiVersionMismatch = func(expected, actual string) error { return eris.Errorf("Expected ApiVersion [%s] but found [%s]", expected, actual) } )
Functions ¶
func NewCueGenerator ¶
func NewProtocGenerator ¶
Types ¶
type CrdWriter ¶
type CrdWriter struct {
// contains filtered or unexported fields
}
func NewCrdWriter ¶
func (*CrdWriter) ApplyValidationSchemaToCRD ¶
func (c *CrdWriter) ApplyValidationSchemaToCRD(crd apiextv1beta1.CustomResourceDefinition, validationSchema *apiextv1beta1.CustomResourceValidation) error
type JsonSchemaGenerator ¶
type JsonSchemaGenerator interface {
GetJsonSchemaForProject(project *model.Project) (map[schema.GroupVersionKind]*apiextv1beta1.JSONSchemaProps, error)
}
type OpenApiSchemas ¶
type OpenApiSchemas map[string]*openapi.OrderedMap
Mapping from protobuf message name to OpenApi schema
type ValidationSchemaOptions ¶
Click to show internal directories.
Click to hide internal directories.