Documentation ¶
Index ¶
- Constants
- type API
- type APIDependency
- type APIGroup
- type APIGroupIdentifier
- type APIGroupVersion
- type ArrayType
- type BooleanType
- type Bundle
- type Definition
- type DefinitionMeta
- type FloatType
- type IntegerType
- type MapType
- type ObjectType
- type OptionalType
- type Property
- type PropertyMeta
- type ReferencePackage
- type ReferenceScope
- type ReferenceTarget
- type ReferenceType
- type ResourceMeta
- type ResourceType
- type StringType
- type Subresources
- type Type
- type TypeVariant
- type UnionType
- type UnknownType
Constants ¶
View Source
const ( ScopeCluster = "cluster" ScopeNamespace = "namespace" )
View Source
const APIVersion = "spec.kure.sh/v1alpha1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { APIVersion string `json:"apiVersion,omitempty"` Kind string `json:"kind,omitempty"` Name string `json:"name,omitempty"` Version string `json:"version,omitempty"` Dependencies []APIDependency `json:"dependencies"` Groups []APIGroupIdentifier `json:"groups"` }
type APIDependency ¶
type APIGroupIdentifier ¶
func (APIGroupIdentifier) Same ¶
func (i APIGroupIdentifier) Same(o APIGroupIdentifier) bool
type APIGroupVersion ¶
type APIGroupVersion struct { APIVersion string `json:"apiVersion,omitempty"` Kind string `json:"kind,omitempty"` API string `json:"api"` Group APIGroupIdentifier `json:"group"` Version string `json:"version"` Dependencies []APIDependency `json:"dependencies"` Definitions []Definition `json:"definitions"` }
type BooleanType ¶
type BooleanType struct{}
func (BooleanType) Variant ¶
func (t BooleanType) Variant() string
type Bundle ¶
type Bundle struct { API API `json:"api"` Groups []*APIGroup `json:"groups"` Versions []*APIGroupVersion `json:"versions"` }
func NewBundle ¶
func NewBundle(gvs []*APIGroupVersion) (*Bundle, error)
type Definition ¶
type Definition struct { DefinitionMeta Value Type `json:"value"` }
type DefinitionMeta ¶
type IntegerType ¶
type IntegerType struct {
Size int `json:"size,omitempty"`
}
func (IntegerType) Variant ¶
func (t IntegerType) Variant() string
type ObjectType ¶
type ObjectType struct { Inherit []Type `json:"inherit,omitempty"` Properties []Property `json:"properties"` }
func (ObjectType) Variant ¶
func (t ObjectType) Variant() string
type OptionalType ¶
type OptionalType struct {
Value Type `json:"value"`
}
func (OptionalType) Variant ¶
func (t OptionalType) Variant() string
type Property ¶
type Property struct { PropertyMeta Value Type `json:"value"` }
type PropertyMeta ¶
type PropertyMeta struct { DefinitionMeta Required bool `json:"required,omitempty"` }
type ReferencePackage ¶
type ReferenceScope ¶
type ReferenceScope struct { Package string `json:"package,omitempty"` Group APIGroupIdentifier `json:"group"` Version string `json:"version"` }
type ReferenceTarget ¶
type ReferenceTarget struct { Scope *ReferenceScope `json:"scope,omitempty"` Name string `json:"name"` }
type ReferenceType ¶
type ReferenceType struct {
Target ReferenceTarget `json:"target"`
}
func (ReferenceType) Variant ¶
func (t ReferenceType) Variant() string
type ResourceMeta ¶
type ResourceMeta struct { Name string `json:"name,omitempty"` SingularName string `json:"singularName,omitempty"` Kind string `json:"kind"` Scope string `json:"scope"` Subresources Subresources `json:"subresources,omitempty"` }
type ResourceType ¶
type ResourceType struct { Properties []Property `json:"properties"` Metadata ResourceMeta `json:"metadata"` }
func (ResourceType) Variant ¶
func (r ResourceType) Variant() string
type StringType ¶
type StringType struct { Enum []string `json:"enum,omitempty"` Format string `json:"format,omitempty"` }
func (StringType) Variant ¶
func (t StringType) Variant() string
type Subresources ¶
type Type ¶
type Type struct {
Variant TypeVariant
}
func (Type) MarshalJSON ¶
func (*Type) UnmarshalJSON ¶
type TypeVariant ¶
type UnknownType ¶
type UnknownType struct{}
func (UnknownType) Variant ¶
func (t UnknownType) Variant() string
Click to show internal directories.
Click to hide internal directories.