utils

package
v0.0.0-...-8f52349 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AsyncLogSuffix = "" /* 134-byte string literal not displayed */
)
View Source
const (
	EmptyNamespaceError = "no space targeted, use 'kf target --space SPACE' to target a space"
)

Variables

This section is empty.

Functions

func GetBuildConfig

func GetBuildConfig() build.BuildV1alpha1Interface

GetBuildConfig returns the build interface.

func GetServingConfig

func GetServingConfig() cserving.ServingV1alpha1Interface

GetServingConfig returns the serving interface.

func NewPrefixFilter

func NewPrefixFilter(prefixes map[string]io.Writer, defaultWriter io.Writer) io.Writer

func ValidateNamespace

func ValidateNamespace(p *config.KfParams) error

ValidateNamespace validate non-empty namespace param

Types

type Config

type Config struct {
	Namespace   string
	Args        []string
	AllArgs     []string
	Flags       map[string][]string
	SourceImage string
	Stdout      io.Writer
	Stderr      io.Writer
}

func InBuildParseConfig

func InBuildParseConfig() Config

InBuildParseConfig is used by container images that parse args and flags.

type KfParams

type KfParams struct {
	Output    io.Writer
	Namespace string
}

KfParams stores everything needed to interact with the user and Knative.

Jump to

Keyboard shortcuts

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