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
TimestampTolerance time.Duration
ChartURL string
TlsCert string
TlsKey string
TlsCACert string
Username string
Password string
ChartPostFormFieldName string
ProvPostFormFieldName string
ContextPath string
LogJSON bool
LogHealth bool
LogLatencyInteger bool
Debug bool
EnableAPI bool
UseStatefiles bool
AllowOverwrite bool
DisableDelete 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
DepthDynamic bool
CORSAllowOrigin string
ReadTimeout int
WriteTimeout int
// EnforceSemver2 represents if the museum server always accept the Chart with [valid semantic version 2](https://semver.org/)
// More refers to : https://github.com/helm/chartmuseum/issues/320
EnforceSemver2 bool
CacheInterval time.Duration
Host string
Version string
}
ServerOptions are options for constructing a Server
Click to show internal directories.
Click to hide internal directories.