upstream

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interactive added in v0.2.7

Interactive - create/update upstream interactively

func ParseFile added in v0.2.7

func ParseFile(filename string) (*v1.Upstream, error)

ParseFile parse a given file into an upstream If the filename is '-' it reads the standard input

func PrintTable

func PrintTable(list []*v1.Upstream, w io.Writer)

PrintTable prints upstreams in table format to the io.Writer

func PrintTemplate

func PrintTemplate(list []*v1.Upstream, tmpl string, w io.Writer) error

PrintTemplate prints upstreams using provided Go template to io.Writer

func SelectInteractive added in v0.2.7

func SelectInteractive(sc storage.Interface) (*v1.Upstream, error)

func Validate added in v0.2.7

Validate - verifies if given upstream is defined correctly. It returns false if it isn't and returns the reason. If it is valid but its dependencies missing, it returns true with information about missing dependencies. If everything is valid it returns true with no message

Types

type Options

type Options struct {
	Filename    string
	Output      string
	Template    string
	Interactive bool
}

Options - represents CLI parameters related to upstream

Jump to

Keyboard shortcuts

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