Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserAgentMiddleware ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) DeleteBackupHandler ¶ added in v1.1.0
func (*Server) ListBackupsHandler ¶
ListBackupsHandler implements the ACB /getbkp
func (*Server) SaveBackupHandler ¶
$post_fields = array(
'reason' => htmlspecialchars($reason), 'uid' => $uniqueID, 'file' => curl_file_create($tmpname, 'image/jpg', 'config.jpg'), 'userkey' => htmlspecialchars($userkey), 'sha256_hash' => $raw_config_sha256_hash, 'version' => $g['product_version'], 'hint' => $config['system']['acb']['hint'], 'manmax' => $manmax );
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(entry *log.Entry, config *ServiceConfig) (*Service, error)
type ServiceConfig ¶
type ServiceConfig struct { Store StoreType `yaml:"store" validate:"required" default:"directory"` Path string `yaml:"path" validate:"required"` Servers []config.Config `yaml:"servers"` *logging.Config `yaml:"logging"` }
func (*ServiceConfig) Check ¶
func (c *ServiceConfig) Check() error
Click to show internal directories.
Click to hide internal directories.