shared

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanDir

func CleanDir(outputDir string, extension string) error

func LoadEndpointFiles

func LoadEndpointFiles(InputDir string) (map[string]EndpointFile, error)

func ProcessDir

func ProcessDir(
	templatePath string,
	outputDir string,
	extension string,
	endpoints map[string]EndpointFile,
	filter func(endpoint EndpointDef) bool) error

func ProcessFile

func ProcessFile(
	templatePath string,
	outputFile string,
	endpoints map[string]EndpointFile,
	filter func(endpoint EndpointDef) bool) error

func Run

func Run(cmd *exec.Cmd) error

func RunWithCallback

func RunWithCallback(cmd *exec.Cmd, callback func() error) error

Types

type ClientDef

type ClientDef struct {
	CommonName string
}

ClientDef holds Client information

type EndpointDef

type EndpointDef struct {
	Version  string
	Domain   string
	URL      string
	Protocol string
	Aliases  []string
	Admin    string
	Port     int16
	Clients  []ClientDef
	KeyAuth  bool
}

EndpointDef holds the definition of the endpoint

type EndpointFile

type EndpointFile struct {
	Fullpath string
	Endpoint EndpointDef
	Name     string
}

EndpointFile holds information about a Endpoint and the file that contained that information

Jump to

Keyboard shortcuts

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