Documentation
¶
Index ¶
- Variables
- func NormalizeData(schemaType SchemaType, data map[string]interface{}) (map[string]interface{}, error)
- func ToInternalStack(data map[string]interface{}) (*v1beta1.InternalStack, error)
- func ToPretty(schemaType SchemaType, data map[string]interface{}) (map[string]interface{}, error)
- type SchemaType
- type Stack
- type TemplateMeta
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StackType = SchemaType("stack") ServiceType = SchemaType("service") VolumeType = SchemaType("volume") )
View Source
var ( Version = types.APIVersion{ Version: "v1beta1", Group: "export.cattle.io", Path: "/v1beta1-export", } Schemas = newSchemas(). Init(health). Init(storage). Init(services). Init(config). Init(volume). Init(route). Init(kubernetes). AddMapperForType(&Version, Stack{}, pm.RouteSet{Field: "routes"}, ). MustImport(&Version, Stack{}) )
Functions ¶
func NormalizeData ¶
func NormalizeData(schemaType SchemaType, data map[string]interface{}) (map[string]interface{}, error)
func ToInternalStack ¶
func ToInternalStack(data map[string]interface{}) (*v1beta1.InternalStack, error)
Types ¶
type SchemaType ¶
type SchemaType string
type Stack ¶
type Stack struct { Meta TemplateMeta `json:"meta,omitempty"` Services map[string]client.Service `json:"services,omitempty"` Configs map[string]client.Config `json:"configs,omitempty"` Volumes map[string]client.Volume `json:"volumes,omitempty"` Routes map[string]client.RouteSet `json:"routes,omitempty"` Questions []v3.Question `json:"questions,omitempty"` Kubernetes client.Kubernetes `json:"kubernetes,omitempty"` }
func ToNormalizedStack ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.