Help us shape the future of Go! Take the 2026 Go Developer Survey

finalize

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: May 15, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MimeTypes = `` /* 2081-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func Run

func Run(sf *Finalizer) error

Types

type Finalizer

type Finalizer struct {
	Stager *libbuildpack.Stager
	Config Staticfile
	YAML   libbuildpack.YAML
}

func (*Finalizer) ConfigureNginx

func (sf *Finalizer) ConfigureNginx() error

func (*Finalizer) CopyFilesToPublic

func (sf *Finalizer) CopyFilesToPublic(appRootDir string) error

func (*Finalizer) GetAppRootDir

func (sf *Finalizer) GetAppRootDir() (string, error)

func (*Finalizer) LoadStaticfile

func (sf *Finalizer) LoadStaticfile() error

func (*Finalizer) WriteStartupFiles

func (sf *Finalizer) WriteStartupFiles() error

type Staticfile

type Staticfile struct {
	RootDir         string `yaml:"root"`
	HostDotFiles    bool   `yaml:"host_dot_files"`
	LocationInclude string `yaml:"location_include"`
	DirectoryIndex  bool   `yaml:"directory"`
	SSI             bool   `yaml:"ssi"`
	PushState       bool   `yaml:"pushstate"`
	HSTS            bool   `yaml:"http_strict_transport_security"`
	ForceHTTPS      bool   `yaml:"force_https"`
	BasicAuth       bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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