devise

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2017 License: MPL-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Tag is set at build time.
	Tag string
	// SHA is set at build time.
	SHA string
	// Built is set at build time.
	Built string
)

Functions

func Implement

func Implement(opts *ImplementOptions) (err error)

Implement executes the plan.

func PrintLongVersion

func PrintLongVersion()

PrintLongVersion prints verbose version information.

func PrintShortVersion

func PrintShortVersion()

PrintShortVersion prints the tag and sha.

func Start

func Start(opts *ServeOptions)

Start starts the server.

Types

type ImplementOptions

type ImplementOptions struct {
	Address    string
	Plan       string
	VaultToken string
}

ImplementOptions is used to configure the client.

type Plan

type Plan struct {
	Templates map[string]*Template `yaml:"templates"`
	Script    *string              `yaml:"script,omitempty"`
}

Plan represents a plan.

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

Renderer implements echo.Renderer

func (*Renderer) Render

func (t *Renderer) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Render implements echo.Renderer

type ServeOptions

type ServeOptions struct {
	Storage      string
	BackendPort  string
	UIPort       string
	VaultAddress string
	Discoverers  []string
}

ServeOptions is used to configure the server.

type Server

type Server struct {
	Storage datastore.Datastore
}

Server represents the Devise server.

type Template

type Template struct {
	Destination string      `yaml:"destination"`
	Permissions os.FileMode `yaml:"permissions"`
}

Template represents a template.

type Version

type Version struct {
	Tag       string
	SHA       string
	Built     string
	GoVersion string
	Os        string
	Arch      string
}

Version contains verbose version information.

Directories

Path Synopsis
env

Jump to

Keyboard shortcuts

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