remote

package
v0.0.0-...-a355528 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte, m *Modules) error

Decode parses and loads the file that contains the module definitions

func Encode

func Encode(m Modules) ([]byte, error)

Encode returns the encode bytes of the module

func NewModules

func NewModules(plugins func() discovery.Plugins, modules Modules, input io.Reader,
	options template.Options) (cli.Modules, error)

NewModules returns an implementation of Modules using a file at given URL. The file is in YAML format

Types

type Modules

type Modules map[Op]SourceURL

Modules is a mapping of operations and the source url that defines it

type Op

type Op string

Op is the name of the operation / sub-command

type SourceURL

type SourceURL string

SourceURL is the url of the module

Jump to

Keyboard shortcuts

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