spec

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 4 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 handler: "file.function"
	Function                string                           `json:"function"`              // Function file content or URL of the function
	FunctionContentType     string                           `json:"function-content-type"` // Function file content type (plain text, base64 or zip)
	Checksum                string                           `json:"checksum"`              // Checksum of the file
	Runtime                 string                           `json:"runtime"`               // Function runtime to use
	Type                    string                           `json:"type"`                  // Function trigger type
	Topic                   string                           `json:"topic"`                 // Function topic trigger (for PubSub type)
	Schedule                string                           `json:"schedule"`              // Function scheduled time (for Schedule type)
	Timeout                 string                           `json:"timeout"`               // Maximum timeout for the function to complete its execution
	Deps                    string                           `json:"deps"`                  // Function dependencies
	ServiceSpec             v1.ServiceSpec                   `json:"service"`
	Template                v1.PodTemplateSpec               `json:"template" protobuf:"bytes,3,opt,name=template"`
	HorizontalPodAutoscaler v2alpha1.HorizontalPodAutoscaler `json:"horizontalPodAutoscaler" protobuf:"bytes,3,opt,name=horizontalPodAutoscaler"`
}

FunctionSpec contains func specification

Jump to

Keyboard shortcuts

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