spec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct {
	metav1.TypeMeta `json:",inline"`
	Metadata        metav1.ObjectMeta `json:"metadata"`
	Spec            FunctionSpec      `json:"spec"`
}

Function object

func (*Function) GetObjectKind

func (e *Function) GetObjectKind() schema.ObjectKind

GetObjectKind required to satisfy Object interface

func (*Function) GetObjectMeta

func (e *Function) GetObjectMeta() metav1.Object

GetObjectMeta required to satisfy ObjectMetaAccessor interface

type FunctionList

type FunctionList struct {
	metav1.TypeMeta `json:",inline"`
	Metadata        metav1.ListMeta `json:"metadata"`

	// Items is a list of third party objects
	Items []*Function `json:"items"`
}

FunctionList contains map of functions

func (*FunctionList) GetListMeta

func (el *FunctionList) GetListMeta() metav1.List

GetListMeta required to satisfy ListMetaAccessor interface

func (*FunctionList) GetObjectKind

func (el *FunctionList) GetObjectKind() schema.ObjectKind

GetObjectKind required to satisfy Object interface

type FunctionSpec

type FunctionSpec struct {
	Handler  string             `json:"handler"`
	Function string             `json:"function"`
	Runtime  string             `json:"runtime"`
	Type     string             `json:"type"`
	Topic    string             `json:"topic"`
	Deps     string             `json:"deps"`
	Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"`
}

FunctionSpec contains func specification

Jump to

Keyboard shortcuts

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