Documentation
¶
Overview ¶
Package resource provides facilities to convert CRDs and XRDs to HCL schemas.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Schemas ¶
type Schemas struct {
// contains filtered or unexported fields
}
Schemas maintains attribute schemas for a set of K8s types.
func ToSchemas ¶
ToSchemas converts CRDs and XRDs present in the supplied objects into a Schemas instance.
func (*Schemas) FilterScope ¶
FilterScope returns schemas filtered by scope.
type Scope ¶
type Scope string
Scope is the scope for which CRDs are loaded. This can be "cluster", "namespaced" or "both".
type ScopedAttributeSchema ¶
type ScopedAttributeSchema struct {
schema.AttributeSchema
Scope Scope
}
ScopedAttributeSchema wraps an attribute schema and also tracks the scope for the top-level objects.
Click to show internal directories.
Click to hide internal directories.