Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definitions ¶
func (Definitions) Filter ¶
func (ds Definitions) Filter(f func(k string, v Schema) bool) Definitions
func (Definitions) Sub ¶
func (ds Definitions) Sub(exp string) Definitions
type Loader ¶
type Loader interface {
Load([]byte) (Definitions, error)
}
type Schema ¶
type Schema struct { // general Type Type `json:"type"` Desc string `json:"description"` // type: object Props map[string]*Schema `json:"properties"` // type: array Items *Schema `json:"items"` // incomplete: reference DollarRef *string `json:"$ref"` ResolvedRef string // Cluster or Namespaced scope, ignored if unset Scope *string // vendor extensions XGvk []XGvk `json:"x-kubernetes-group-version-kind"` }
Schema is a general object definition
func (Schema) GroupVersionKind ¶
type SwaggerLoader ¶
type SwaggerLoader struct { Definitions Definitions `json:"definitions"` // contains filtered or unexported fields }
func (*SwaggerLoader) Load ¶
func (s *SwaggerLoader) Load(data []byte) (Definitions, error)
Click to show internal directories.
Click to hide internal directories.