rsync

package
v0.0.0-...-d8a4e70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct{}

func NewApp

func NewApp() *App

func (*App) Create

func (s *App) Create(w http.ResponseWriter, r *http.Request)

func (*App) Delete

func (s *App) Delete(w http.ResponseWriter, r *http.Request)

func (*App) GetConfig

func (s *App) GetConfig(w http.ResponseWriter, r *http.Request)

func (*App) List

func (s *App) List(w http.ResponseWriter, r *http.Request)

func (*App) Route

func (s *App) Route(r chi.Router)

func (*App) Update

func (s *App) Update(w http.ResponseWriter, r *http.Request)

func (*App) UpdateConfig

func (s *App) UpdateConfig(w http.ResponseWriter, r *http.Request)

type Create

type Create struct {
	Name       string `form:"name" json:"name" validate:"required"`
	Path       string `form:"path" json:"path" validate:"required"`
	Comment    string `form:"comment" json:"comment"`
	AuthUser   string `form:"auth_user" json:"auth_user" validate:"required"`
	Secret     string `form:"secret" json:"secret" validate:"required"`
	HostsAllow string `form:"hosts_allow" json:"hosts_allow"`
}

type Delete

type Delete struct {
	Name string `form:"name" json:"name" validate:"required"`
}

type Module

type Module struct {
	Name       string `json:"name"`
	Path       string `json:"path"`
	Comment    string `json:"comment"`
	ReadOnly   bool   `json:"read_only"`
	AuthUser   string `json:"auth_user"`
	Secret     string `json:"secret"`
	HostsAllow string `json:"hosts_allow"`
}

type Update

type Update struct {
	Name       string `form:"name" json:"name" validate:"required"`
	Path       string `form:"path" json:"path" validate:"required"`
	Comment    string `form:"comment" json:"comment"`
	AuthUser   string `form:"auth_user" json:"auth_user" validate:"required"`
	Secret     string `form:"secret" json:"secret" validate:"required"`
	HostsAllow string `form:"hosts_allow" json:"hosts_allow"`
}

type UpdateConfig

type UpdateConfig struct {
	Config string `form:"config" json:"config" validate:"required"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL