Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudConfig ¶
type CloudConfig struct { InitServer Server `` /* 151-byte string literal not displayed */ AdminServer Server `` /* 153-byte string literal not displayed */ MisServer MisServer `` /* 262-byte string literal not displayed */ LogInfo log.Config `yaml:"logger" json:"logger"` Cache struct { ExpirationDuration time.Duration `yaml:"expirationDuration" json:"expirationDuration" default:"10m"` } `yaml:"cache" json:"cache"` Template struct { Path string `yaml:"path" json:"path" default:"/etc/baetyl/templates"` } `yaml:"template" json:"template"` Plugin struct { Pubsub string `yaml:"pubsub" json:"pubsub" default:"defaultpubsub"` PKI string `yaml:"pki" json:"pki" default:"defaultpki"` Auth string `yaml:"auth" json:"auth" default:"defaultauth"` License string `yaml:"license" json:"license" default:"defaultlicense"` Node string `yaml:"node" json:"node" default:"kube"` Shadow string `yaml:"shadow" json:"shadow" default:"database"` Namespace string `yaml:"namespace" json:"namespace" default:"kube"` Configuration string `yaml:"configuration" json:"configuration" default:"kube"` Secret string `yaml:"secret" json:"secret" default:"kube"` Application string `yaml:"application" json:"application" default:"kube"` Index string `yaml:"index" json:"index" default:"database"` Batch string `yaml:"batch" json:"batch" default:"databaseext"` Record string `yaml:"record" json:"record" default:"databaseext"` Callback string `yaml:"callback" json:"callback" default:"databaseext"` AppHistory string `yaml:"appHistory" json:"appHistory" default:"database"` Objects []string `yaml:"objects" json:"objects" default:"[]"` Functions []string `yaml:"functions" json:"functions" default:"[]"` Property string `yaml:"property" json:"property" default:"database"` SyncLinks []string `yaml:"synclinks" json:"synclinks" default:"[\"httplink\"]"` ModelStorage string `yaml:"modelStorage" json:"modelStorage" default:"kube"` DatabaseStorage string `yaml:"databaseStorage" json:"databaseStorage" default:"database"` } `yaml:"plugin" json:"plugin"` }
CloudConfig baetyl-cloud config
type MisServer ¶
type MisServer struct { Server `yaml:",inline" json:",inline"` AuthToken string `yaml:"authToken" json:"authToken" default:"baetyl-cloud-token"` TokenHeader string `yaml:"tokenHeader" json:"tokenHeader" default:"baetyl-cloud-token"` UserHeader string `yaml:"userHeader" json:"userHeader" default:"baetyl-cloud-user"` }
type Server ¶
type Server struct { Port string `yaml:"port" json:"port"` ReadTimeout time.Duration `yaml:"readTimeout" json:"readTimeout" default:"30s"` WriteTimeout time.Duration `yaml:"writeTimeout" json:"writeTimeout" default:"30s"` ShutdownTime time.Duration `yaml:"shutdownTime" json:"shutdownTime" default:"3s"` Certificate utils.Certificate `yaml:",inline" json:",inline"` }
Server server config
Click to show internal directories.
Click to hide internal directories.