Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface {
Listen(port int)
}
Server is a generic interface for web servers
func NewServer ¶
func NewServer(options ServerOptions) (Server, error)
NewServer creates a new Server instance
type ServerOptions ¶
type ServerOptions struct {
StorageBackend storage.Backend
ExternalCacheStore cache.Store
ChartURL string
TlsCert string
TlsKey string
Username string
Password string
ChartPostFormFieldName string
ProvPostFormFieldName string
ContextPath string
LogJSON bool
LogHealth bool
Debug bool
EnableAPI bool
UseStatefiles bool
AllowOverwrite bool
AllowForceOverwrite bool
EnableMetrics bool
AnonymousGet bool
GenIndex bool
MaxStorageObjects int
IndexLimit int
Depth int
MaxUploadSize int
BearerAuth bool
AuthRealm string
AuthService string
AuthCertPath string
}
ServerOptions are options for constructing a Server
Click to show internal directories.
Click to hide internal directories.