serve

package
v0.0.0-...-ec4fbf5 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2015 License: BSD-2-Clause Imports: 25 Imported by: 0

README

Compiling and serviving static files using esc

go install github.com/mjibson/esc

# Compile changes to static files 
cd $GOPATH/src/github.com/cloudflare/cfssl
esc -pkg serve -prefix cli/serve/static cli/serve/static > cli/serve/static.go

# Build and run CFSSL
go build ./cmd/cfssl/...
./cfssl serve # -uselocal # Optionally use updating files on local filesystem

Documentation

Overview

Package serve implements the serve command for CFSSL's API.

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{UsageText: serverUsageText, Flags: serverFlags, Main: serverMain}

CLIServer assembles the definition of Command 'serve'

Functions

func FS

func FS(useLocal bool) http.FileSystem

FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.

func FSByte

func FSByte(useLocal bool, name string) ([]byte, error)

FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.

func FSMustByte

func FSMustByte(useLocal bool, name string) []byte

FSMustByte is the same as FSByte, but panics if name is not present.

func FSMustString

func FSMustString(useLocal bool, name string) string

FSMustString is the string version of FSMustByte.

func FSString

func FSString(useLocal bool, name string) (string, error)

FSString is the string version of FSByte.

Types

This section is empty.

Jump to

Keyboard shortcuts

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