Documentation
¶
Index ¶
- Variables
- func NormalizeData(schemaType SchemaType, data map[string]interface{}) (map[string]interface{}, error)
- func ToInternalStack(data map[string]interface{}) (*v1.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: "v1", Group: "export.cattle.io", Path: "/v1-export", } Schemas = newSchemas(). Init(health). Init(storage). Init(services). Init(config). Init(volume). Init(route). Init(kubernetes). AddMapperForType(&Version, Stack{}, pm.RouteSet{Field: "routes"}, pm.RevisionMapper{Field: "services"}, ). 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{}) (*v1.InternalStack, error)
func ToPretty ¶
func ToPretty(schemaType SchemaType, data map[string]interface{}) (map[string]interface{}, error)
Types ¶
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"`
}
Source Files
¶
- config.go
- health.go
- kubernetes.go
- public.go
- route.go
- schema.go
- service.go
- storage.go
- volume.go
Click to show internal directories.
Click to hide internal directories.