util

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HandshakeString is the string that the runner expects to receive via stdin prior to running.
	HandshakeString = "opensesame"
)

TODO: move constants somewhere more appropriate

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory added in v0.0.6

type Factory struct {
	// Deferred creation of clients
	client.ClientCreator

	// Deferred creation of controller-runtime clients
	client.RuntimeClientCreator

	// Function to attach to a pod's TTY
	attacher.AttachFunc

	// Function to get a pod's logs stream
	logstreamer.GetLogsFunc

	IOStreams

	Verbosity int
}

Factory pertaining to etok apps

func NewFactory added in v0.0.6

func NewFactory(out, errout io.Writer, in io.Reader) *Factory

func NewFakeFactory added in v0.0.6

func NewFakeFactory(out io.Writer, objs ...runtime.Object) *Factory

type IOStreams

type IOStreams struct {
	// In think, os.Stdin
	In io.Reader
	// Out think, os.Stdout
	Out io.Writer
	// ErrOut think, os.Stderr
	ErrOut io.Writer
}

IOStreams provides the standard names for iostreams. This is useful for embedding and for unit testing. Inconsistent and different names make it hard to read and review code

Jump to

Keyboard shortcuts

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