ops

package
v0.0.0-...-f2087ef Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate

func CreateCertificate(ca bool, subject pkix.Name, years int) ([]byte, []byte, error)

CreateCertificate create certs

func WritePemFile

func WritePemFile(file, _type string, buf []byte, mode os.FileMode) error

WritePemFile wirte to a pem format file

Types

type Engine

type Engine struct {
	Logger *logging.Logger `inject:""`
}

Engine engine model

func (*Engine) Map

func (p *Engine) Map(*inject.Graph) error

Map map objects

func (*Engine) Mount

func (p *Engine) Mount(*gin.Engine)

Mount mount web point

func (*Engine) Shell

func (p *Engine) Shell() []cli.Command

Shell command options

func (*Engine) Worker

func (p *Engine) Worker()

Worker do background job

Jump to

Keyboard shortcuts

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