Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct { Name string `yaml:"name" json:"name" validate:"nonzero"` Label string `yaml:"label" json:"label" validate:"nonzero"` Value string `yaml:"value" json:"value"` Desc string `yaml:"description" json:"description"` }
Attribute field to be filled
type Config ¶
type Config struct { Engine EngineConfig `yaml:"engine" json:"engine"` Sync SyncConfig `yaml:"sync" json:"sync"` Store StoreConfig `yaml:"store" json:"store"` Init InitConfig `yaml:"init" json:"init"` Server http.ServerConfig `yaml:"server" json:"server"` Logger log.Config `yaml:"logger" json:"logger"` }
Config the core config
type EngineConfig ¶
type EngineConfig struct { Kind string `yaml:"kind" json:"kind" default:"kubernetes"` Kubernetes KubernetesConfig `yaml:"kubernetes" json:"kubernetes"` Report struct { Interval time.Duration `yaml:"interval" json:"interval" default:"10s"` } `yaml:"report" json:"report"` }
type Fingerprint ¶
type Fingerprint struct { Proof Proof `yaml:"proof" json:"proof"` Value string `yaml:"value" json:"value"` }
Fingerprint type to be collected
type InitConfig ¶
type InitConfig struct { Batch struct { Name string `yaml:"name" json:"name"` Namespace string `yaml:"namespace" json:"namespace"` SecurityType string `yaml:"securityType" json:"securityType"` SecurityKey string `yaml:"securityKey" json:"securityKey"` } `yaml:"batch" json:"batch"` Cloud struct { HTTP http.ClientConfig `yaml:"http" json:"http"` Active struct { URL string `yaml:"url" json:"url" default:"/v1/active"` Interval time.Duration `yaml:"interval" json:"interval" default:"45s"` } `yaml:"active" json:"active"` } `yaml:"cloud" json:"cloud"` Edge struct { DownloadPath string `yaml:"downloadPath" json:"downloadPath" default:"var/lib/baetyl/download"` } `yaml:"edge" json:"edge"` ActivateConfig struct { Fingerprints []Fingerprint `yaml:"fingerprints" json:"fingerprints"` Attributes []Attribute `yaml:"attributes" json:"attributes"` Server Server `yaml:"server" json:"server"` } `yaml:"active" json:"active"` }
type KubernetesConfig ¶
type KubernetesConfig struct { InCluster bool `yaml:"inCluster" json:"inCluster" default:"false"` ConfigPath string `yaml:"configPath" json:"configPath"` LogConfig KubernetesLogConfig `yaml:"logConfig" json:"logConfig"` }
type KubernetesLogConfig ¶
type Server ¶
type Server struct { Listen string `yaml:"listen" json:"listen"` Pages string `yaml:"pages" json:"pages" default:"etc/baetyl/pages"` }
Server manually activated server configuration
type StoreConfig ¶
type StoreConfig struct {
Path string `yaml:"path" json:"path" default:"var/lib/baetyl/store/core.db"`
}
type SyncConfig ¶
type SyncConfig struct { Cloud struct { HTTP http.ClientConfig `yaml:"http" json:"http"` Report struct { URL string `yaml:"url" json:"url" default:"v1/sync/report"` Interval time.Duration `yaml:"interval" json:"interval" default:"20s"` } `yaml:"report" json:"report"` Desire struct { URL string `yaml:"url" json:"url" default:"v1/sync/desire"` } `yaml:"desire" json:"desire"` } `yaml:"cloud" json:"cloud"` Edge struct { DownloadPath string `yaml:"downloadPath" json:"downloadPath" default:"var/lib/baetyl/download"` } `yaml:"edge" json:"edge"` }
Click to show internal directories.
Click to hide internal directories.