Documentation ¶
Index ¶
- func Interactive(sc storage.Interface, si dependencies.SecretStorage, u *v1.Upstream) error
- func ParseFile(filename string) (*v1.Upstream, error)
- func PrintTable(list []*v1.Upstream, w io.Writer)
- func PrintTemplate(list []*v1.Upstream, tmpl string, w io.Writer) error
- func SelectInteractive(sc storage.Interface) (*v1.Upstream, error)
- func Validate(sc storage.Interface, si dependencies.SecretStorage, u *v1.Upstream) (bool, string)
- type Options
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
ParseFile parse a given file into an upstream If the filename is '-' it reads the standard input
func PrintTable ¶
PrintTable prints upstreams in table format to the io.Writer
func PrintTemplate ¶
PrintTemplate prints upstreams using provided Go template to io.Writer
func SelectInteractive ¶ added in v0.2.7
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 ¶
Click to show internal directories.
Click to hide internal directories.