chartmuseum

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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

Directories

Path Synopsis
server

Jump to

Keyboard shortcuts

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