genutil

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotExist

func IsNotExist(path string) bool

IsNotExist returns true if path does not exist on disk.

func IsPipeReader

func IsPipeReader() bool

IsPipeReader returns true if stdin is an open pipe, i.e. the caller can accept input from stdin.

func NewMultiManifestWriter

func NewMultiManifestWriter(w io.Writer) io.Writer

NewMultiManifestWriter returns a multi-part manifest writer. Use this writer if writing a package or bundle to stdout or a single file.

func PluginKeyToOperatorType

func PluginKeyToOperatorType(pluginKey string) projutil.OperatorType

PluginKeyToOperatorType converts a plugin key string to an operator project type. TODO(estroz): this can probably be made more robust by checking known plugin keys directly.

func ValidateVersion

func ValidateVersion(version string) error

ValidateVersion returns an error if version is not a strict semantic version.

func WriteObjects

func WriteObjects(w io.Writer, objs ...interface{}) error

WriteObjects writes each object in objs to w.

func WriteObjectsToFiles

func WriteObjectsToFiles(dir string, objs ...interface{}) error

WriteObjectsToFiles creates dir then writes each object in objs to a file in dir.

func WriteObjectsToFilesLegacy

func WriteObjectsToFilesLegacy(dir string, objs ...interface{}) error

WriteObjectsToFilesLegacy creates dir then writes each object in objs to a file in legacy format in dir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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