kube

package
v0.0.0-...-2f10389 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeconfigPath

func GetKubeconfigPath(platformConfiguration interface{}) string

func IsInCluster

func IsInCluster() bool

func UpdateFunctioncrWithOptions

func UpdateFunctioncrWithOptions(deployOptions *platform.DeployOptions,
	functioncrInstance *functioncr.Function) error

Types

type Configuration

type Configuration struct {
	KubeconfigPath string
}

type DeployOptions

type DeployOptions struct {
}

type Platform

type Platform struct {
	*platform.AbstractPlatform
	// contains filtered or unexported fields
}

func NewPlatform

func NewPlatform(parentLogger nuclio.Logger, kubeconfigPath string) (*Platform, error)

NewPlatform instantiates a new kubernetes platform

func (*Platform) DeleteFunction

func (p *Platform) DeleteFunction(deleteOptions *platform.DeleteOptions) error

DeleteFunction will delete a previously deployed function

func (*Platform) DeployFunction

func (p *Platform) DeployFunction(deployOptions *platform.DeployOptions) (*platform.DeployResult, error)

Deploy will deploy a processor image to the platform (optionally building it, if source is provided)

func (*Platform) GetFunctions

func (p *Platform) GetFunctions(getOptions *platform.GetOptions) ([]platform.Function, error)

GetFunctions will return deployed functions

func (*Platform) GetName

func (p *Platform) GetName() string

GetName returns the platform name

func (*Platform) UpdateFunction

func (p *Platform) UpdateFunction(updateOptions *platform.UpdateOptions) error

UpdateFunction will update a previously deployed function

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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