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: ? 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

This section is empty.

Functions

func Interactive added in v0.2.7

func Interactive(sc storage.Interface, si dependencies.SecretStorage, u *v1.Upstream) error

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

func Validate(sc storage.Interface, si dependencies.SecretStorage, u *v1.Upstream) (bool, string)

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