kube

package
v0.0.0-...-f7ae98d Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 29 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

Types

type Configuration

type Configuration struct {
	KubeconfigPath string
}

type DeployOptions

type DeployOptions struct {
}

type Platform

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

func NewPlatform

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

NewPlatform instantiates a new kubernetes platform

func (*Platform) CreateFunction

func (p *Platform) CreateFunction(createFunctionOptions *platform.CreateFunctionOptions) (*platform.CreateFunctionResult, error)

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

func (*Platform) CreateFunctionEvent

func (p *Platform) CreateFunctionEvent(createFunctionEventOptions *platform.CreateFunctionEventOptions) error

CreateFunctionEvent will create a new function event that can later be used as a template from which to invoke functions

func (*Platform) CreateProject

func (p *Platform) CreateProject(createProjectOptions *platform.CreateProjectOptions) error

CreateProject will probably create a new project

func (*Platform) DeleteFunction

func (p *Platform) DeleteFunction(deleteFunctionOptions *platform.DeleteFunctionOptions) error

DeleteFunction will delete a previously deployed function

func (*Platform) DeleteFunctionEvent

func (p *Platform) DeleteFunctionEvent(deleteFunctionEventOptions *platform.DeleteFunctionEventOptions) error

DeleteFunctionEvent will delete a previously existing function event

func (*Platform) DeleteProject

func (p *Platform) DeleteProject(deleteProjectOptions *platform.DeleteProjectOptions) error

DeleteProject will delete a previously existing project

func (*Platform) GetDefaultInvokeIPAddresses

func (p *Platform) GetDefaultInvokeIPAddresses() ([]string, error)

func (*Platform) GetExternalIPAddresses

func (p *Platform) GetExternalIPAddresses() ([]string, error)

GetExternalIPAddresses returns the external IP addresses invocations will use, if "via" is set to "external-ip". These addresses are either set through SetExternalIPAddresses or automatically discovered

func (*Platform) GetFunctionEvents

func (p *Platform) GetFunctionEvents(getFunctionEventsOptions *platform.GetFunctionEventsOptions) ([]platform.FunctionEvent, error)

GetFunctionEvents will list existing function events

func (*Platform) GetFunctions

func (p *Platform) GetFunctions(getFunctionsOptions *platform.GetFunctionsOptions) ([]platform.Function, error)

GetFunctions will return deployed functions

func (*Platform) GetName

func (p *Platform) GetName() string

GetName returns the platform name

func (*Platform) GetNamespaces

func (p *Platform) GetNamespaces() ([]string, error)

GetNamespaces returns all the namespaces in the platform

func (*Platform) GetNodes

func (p *Platform) GetNodes() ([]platform.Node, error)

GetNodes returns a slice of nodes currently in the cluster

func (*Platform) GetProjects

func (p *Platform) GetProjects(getProjectsOptions *platform.GetProjectsOptions) ([]platform.Project, error)

GetProjects will list existing projects

func (*Platform) ResolveDefaultNamespace

func (p *Platform) ResolveDefaultNamespace(defaultNamespace string) string

ResolveDefaultNamespace returns the proper default resource namespace, given the current default namespace

func (*Platform) UpdateFunction

func (p *Platform) UpdateFunction(updateFunctionOptions *platform.UpdateFunctionOptions) error

UpdateFunction will update a previously deployed function

func (*Platform) UpdateFunctionEvent

func (p *Platform) UpdateFunctionEvent(updateFunctionEventOptions *platform.UpdateFunctionEventOptions) error

UpdateFunctionEvent will update a previously existing function event

func (*Platform) UpdateProject

func (p *Platform) UpdateProject(updateProjectOptions *platform.UpdateProjectOptions) error

UpdateProject will update a previously existing project

Directories

Path Synopsis
apis
nuclio.io/v1beta1
Package v1beta1 is the v1beta1 version of the API.
Package v1beta1 is the v1beta1 version of the API.
client
clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/nuclio.io/v1beta1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.

Jump to

Keyboard shortcuts

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