Documentation ¶
Index ¶
- func CheckAndResolveRefs(schema *openapi.Schema, doc *openapi.Document) (*openapi.Schema, error)
- func DCLSchemaKeyForGVK(gvk k8sschema.GroupVersionKind, smLoader dclmetadata.ServiceMetadataLoader) (string, error)
- func GetDCLSchemaForGVK(gvk k8sschema.GroupVersionKind, smLoader dclmetadata.ServiceMetadataLoader, ...) (*openapi.Schema, error)
- func ResolveSchemaForRef(schema *openapi.Schema, doc *openapi.Document) (*openapi.Schema, error)
- type DCLSchemaLoader
- type EmbedDCLSchemaLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndResolveRefs ¶
func CheckAndResolveRefs(schema *openapi.Schema, doc *openapi.Document) (*openapi.Schema, error)
func DCLSchemaKeyForGVK ¶
func DCLSchemaKeyForGVK(gvk k8sschema.GroupVersionKind, smLoader dclmetadata.ServiceMetadataLoader) (string, error)
func GetDCLSchemaForGVK ¶
func GetDCLSchemaForGVK(gvk k8sschema.GroupVersionKind, smLoader dclmetadata.ServiceMetadataLoader, schemaLoader DCLSchemaLoader) (*openapi.Schema, error)
func ResolveSchemaForRef ¶
func ResolveSchemaForRef(schema *openapi.Schema, doc *openapi.Document) (*openapi.Schema, error)
Types ¶
type DCLSchemaLoader ¶
type DCLSchemaLoader interface {
GetDCLSchema(stv dclunstruct.ServiceTypeVersion) (*openapi.Schema, error)
}
DCLSchemaLoader is the DCL schema loader interface.
type EmbedDCLSchemaLoader ¶
type EmbedDCLSchemaLoader struct {
// contains filtered or unexported fields
}
func New ¶
func New() (*EmbedDCLSchemaLoader, error)
func (*EmbedDCLSchemaLoader) GetDCLSchema ¶
func (l *EmbedDCLSchemaLoader) GetDCLSchema(stv dclunstruct.ServiceTypeVersion) (*openapi.Schema, error)
Click to show internal directories.
Click to hide internal directories.