knative

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultWaitingTimeout = 60 * time.Second
)
View Source
const RemoveTimeout = 120 * time.Second

Variables

This section is empty.

Functions

func NewEventingClient

func NewEventingClient(namespace string) (clienteventingv1beta1.KnEventingClient, error)

func NewServingClient

func NewServingClient(namespace string) (clientservingv1.KnServingClient, error)

Types

type Deployer

type Deployer struct {
	// Namespace with which to override that set on the default configuration (such as the ~/.kube/config).
	// If left blank, deployment will commence to the configured namespace.
	Namespace string
	// Verbose logging enablement flag.
	Verbose bool
}

func NewDeployer

func NewDeployer(namespaceOverride string) (deployer *Deployer, err error)

func (*Deployer) Deploy

func (d *Deployer) Deploy(ctx context.Context, f fn.Function) (result fn.DeploymentResult, err error)

type Describer

type Describer struct {
	Verbose bool
	// contains filtered or unexported fields
}

func NewDescriber

func NewDescriber(namespaceOverride string) (describer *Describer, err error)

func (*Describer) Describe

func (d *Describer) Describe(ctx context.Context, name string) (description fn.Description, err error)

Describe by name. Note that the consuming API uses domain style notation, whereas Kubernetes restricts to label-syntax, which is thus escaped. Therefore as a knative (kube) implementation detal proper full names have to be escaped on the way in and unescaped on the way out. ex: www.example-site.com -> www-example--site-com

type Lister

type Lister struct {
	Verbose   bool
	Namespace string
}

func NewLister

func NewLister(namespaceOverride string) (l *Lister, err error)

func (*Lister) List

func (l *Lister) List(ctx context.Context) (items []fn.ListItem, err error)

type Remover

type Remover struct {
	Namespace string
	Verbose   bool
}

func NewRemover

func NewRemover(namespaceOverride string) (remover *Remover, err error)

func (*Remover) Remove

func (remover *Remover) Remove(ctx context.Context, name string) (err error)

Jump to

Keyboard shortcuts

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