funktion

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2017 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// KindLabel is the label key used on ConfigMaps to indicate the kind of resource
	KindLabel = "funktion.fabric8.io/kind"

	// ConnectorLabel is the label key used on a ConfigMap to refer to a Connector
	ConnectorLabel = "connector"

	// RuntimeLabel is the label key used on a ConfigMap to refer to a Runtime
	RuntimeLabel = "runtime"
	// ProjectLabel the name of the folder where the source comes from
	ProjectLabel = "project"

	// ConnectorKind is the value of a Connector fo the KindLabel
	ConnectorKind = "Connector"
	// SubscriptionKind is the value of a Subscription fo the KindLabel
	SubscriptionKind = "Subscription"
	// RuntimeKind is the value of a Runtime fo the KindLabel
	RuntimeKind = "Runtime"
	// FunctionKind is the value of a Function fo the KindLabel
	FunctionKind = "Function"
	// DeploymentKind is the value of a Deployment fo the KindLabel
	DeploymentKind = "Deployment"
	// ServiceKind is the value of a ConneServicector fo the KindLabel
	ServiceKind = "Service"

	// FileExtensionsAnnotation a comma separated list of file extensions (without the dot) which are handled by this runtime
	FileExtensionsAnnotation = "funktion.fabric8.io/fileExtensions"
)
View Source
const (

	// DeploymentYmlProperty data key for the deployment yaml file
	DeploymentYmlProperty = "deployment.yml"

	// SchemaYmlProperty data key for the schema (JSON schema as YAML) file
	SchemaYmlProperty = "schema.yml"

	// FunktionYmlProperty the data key for the funktion yaml file
	FunktionYmlProperty = "funktion.yml"

	// ApplicationPropertiesProperty is the data key for the spring boot application.properties file
	ApplicationPropertiesProperty = "application.properties"

	// ApplicationYmlProperty is the data key for the spring boot application.yml file
	ApplicationYmlProperty = "application.yml"

	// SourceProperty is the data key for the source code in a Function ConfigMap
	SourceProperty = "source"
	// ExposeLabel is the label key to expose services
	ExposeLabel = "expose"

	// DeploymentProperty is the data key for a Runtime's Deployment
	DeploymentProperty = "deployment"
	// ServiceProperty is the data key for a Runtime's Service
	ServiceProperty = "service"

	// ConfigMapControllerAnnotation is the annotation for the configmapcontroller
	ConfigMapControllerAnnotation = "configmap.fabric8.io/update-on-change"

	// Deployment
	// NameLabel is the name label for Deployments
	NameLabel = "name"
)

Variables

This section is empty.

Functions

func CreateConnectorListOptions

func CreateConnectorListOptions() (*api.ListOptions, error)

CreateConnectorListOptions returns the default selector for Connector resources

func CreateFunctionListOptions

func CreateFunctionListOptions() (*api.ListOptions, error)

CreateFunctionListOptions returns the default selector for Function resources

func CreateRuntimeListOptions

func CreateRuntimeListOptions() (*api.ListOptions, error)

CreateRuntimeListOptions returns the default selector for Runtime resources

func CreateSubscriptionListOptions

func CreateSubscriptionListOptions() (*api.ListOptions, error)

CreateSubscriptionListOptions returns the default selector for Subscription resources

func HumanizeString added in v0.0.4

func HumanizeString(text string) string

HumanizeString converts a camelCase text string into a textual label by capitalising and separating camelcase words with a space

func LoadConnectorSchema added in v0.0.4

func LoadConnectorSchema(yamlData []byte) (*spec.ConnectorSchema, error)

func NewConfigMapListWatch

func NewConfigMapListWatch(client *kubernetes.Clientset, listOpts api.ListOptions) *cache.ListWatch

NewConfigMapListWatch returns a new ListWatch for ConfigMaps with the given listOptions

func NewServiceListWatch

func NewServiceListWatch(client *kubernetes.Clientset) *cache.ListWatch

NewServiceListWatch creates a watch on services

func ToSpringBootPropertyName added in v0.0.4

func ToSpringBootPropertyName(text string) string

func UnCamelCaseString added in v0.0.4

func UnCamelCaseString(text string, separator string) string

UnCamelCaseString converts a camelCase text string into a space separated string

Types

type Operator

type Operator struct {
	// contains filtered or unexported fields
}

Operator manages Funktion Deployments

func New

func New(cfg *rest.Config, logger log.Logger) (*Operator, error)

New creates a new controller.

func (*Operator) Run

func (c *Operator) Run(stopc <-chan struct{}) error

Run the controller.

type ResourceKey

type ResourceKey struct {
	Kind string
	Key  string
}

ResourceKey represents a kind and a key

Jump to

Keyboard shortcuts

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