Documentation
¶
Index ¶
- Constants
- func FetchSystemConfigHandler(c echo.Context) error
- func IsSystemSetupRequired() (bool, error)
- func StartBootstrapServer() error
- func SystemSetupHandler(c echo.Context) error
- func UpdateSystemConfigHandler(c echo.Context) error
- type AmqpConfig
- type HAProxyConfig
- type ImageRegistryConfig
- type ImageRegistryType
- type LetsEncryptConfig
- type NewAdminCredential
- type PubsubConfig
- type PubsubType
- type PvBackupConfig
- type RedisConfig
- type RemoteTaskQueueType
- type S3Config
- type SystemConfigurationPayload
- type TaskQueueConfig
- type TaskQueueQueueProtocol
- type TaskQueueType
- type UDPProxyConfig
Constants ¶
View Source
const ( LocalRegistry ImageRegistryType = "local" RemoteRegistry ImageRegistryType = "remote" LocalPubsub PubsubType = "local" RemotePubsub PubsubType = "remote" LocalTaskQueue TaskQueueType = "local" RemoteTaskQueue TaskQueueType = "remote" AMQP TaskQueueQueueProtocol = "amqp" AMQPS TaskQueueQueueProtocol = "amqps" AmqpQueue RemoteTaskQueueType = "amqp" RedisQueue RemoteTaskQueueType = "redis" NoneRemoteQueue RemoteTaskQueueType = "none" )
Variables ¶
This section is empty.
Functions ¶
func FetchSystemConfigHandler ¶
func FetchSystemConfigHandler(c echo.Context) error
FetchSystemConfigHandler : Fetch system configuration handler GET /config/system
func IsSystemSetupRequired ¶
func StartBootstrapServer ¶
func StartBootstrapServer() error
func SystemSetupHandler ¶
func SystemSetupHandler(c echo.Context) error
SystemSetupHandler : System setup handler POST /setup
func UpdateSystemConfigHandler ¶
func UpdateSystemConfigHandler(c echo.Context) error
UpdateSystemConfigHandler : Update system configuration handler PUT /config/system
Types ¶
type AmqpConfig ¶
type HAProxyConfig ¶
type ImageRegistryConfig ¶
type ImageRegistryConfig struct { Type ImageRegistryType `json:"type"` Endpoint string `json:"endpoint"` Namespace string `json:"namespace"` Username string `json:"username"` Password string `json:"password"` }
type ImageRegistryType ¶
type ImageRegistryType string
type LetsEncryptConfig ¶
type NewAdminCredential ¶
type PubsubConfig ¶
type PubsubConfig struct { Type PubsubType `json:"type"` BufferLength uint `json:"buffer_length"` RedisConfig RedisConfig `json:"redis_config"` }
type PubsubType ¶
type PubsubType string
type PvBackupConfig ¶
type PvBackupConfig struct {
S3Config S3Config `json:"s3_config"`
}
type RedisConfig ¶
type RemoteTaskQueueType ¶
type RemoteTaskQueueType string
type SystemConfigurationPayload ¶
type SystemConfigurationPayload struct { NetworkName string `json:"network_name"` ExtraRestrictedPorts string `json:"extra_restricted_ports"` JWTSecretKey string `json:"-"` SSHPrivateKey string `json:"-"` LetsEncrypt LetsEncryptConfig `json:"lets_encrypt"` ImageRegistry ImageRegistryConfig `json:"image_registry"` HAProxyConfig HAProxyConfig `json:"haproxy_config"` UDPProxyConfig UDPProxyConfig `json:"udpproxy_config"` PvBackupConfig PvBackupConfig `json:"pv_backup_config"` PubsubConfig PubsubConfig `json:"pubsub_config"` TaskQueueConfig TaskQueueConfig `json:"task_queue_config"` NewAdminCredential NewAdminCredential `json:"new_admin_credential"` }
type TaskQueueConfig ¶
type TaskQueueConfig struct { Type TaskQueueType `json:"type"` RemoteTaskQueueType RemoteTaskQueueType `json:"remote_task_queue_type" gorm:"default:'none'"` MaxOutstandingMessagesPerQueue uint `json:"max_outstanding_messages_per_queue"` NoOfWorkersPerQueue uint `json:"no_of_workers_per_queue"` AmqpConfig AmqpConfig `json:"amqp_config"` RedisConfig RedisConfig `json:"redis_config"` }
type TaskQueueQueueProtocol ¶
type TaskQueueQueueProtocol string
type TaskQueueType ¶
type TaskQueueType string
type UDPProxyConfig ¶
type UDPProxyConfig struct {
Image string `json:"image"`
}
Click to show internal directories.
Click to hide internal directories.