functionmanager

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 ///////////////////////////////////////////////////////////////////// Package gen contains generated code this code needs to be considered by go, so it can't be in a file that starts with _ or .

Index

Constants

This section is empty.

Variables

View Source
var FunctionManagerFlags = struct {
	Config       string `long:"config" description:"Path to Config file" default:"./config.dev.json"`
	DbFile       string `long:"db-file" description:"Path to BoltDB file" default:"./db.bolt"`
	OrgID        string `long:"organization" description:"(temporary) Static organization id" default:"dispatch"`
	ImageManager string `long:"image-manager" description:"Image manager endpoint" default:"localhost:8002"`
	SecretStore  string `long:"secret-store" description:"Secret store endpoint" default:"localhost:8003"`
	Faas         string `long:"faas" description:"FaaS implementation" default:"openfaas"`
	ResyncPeriod int    `long:"resync-period" description:"The time period (in seconds) to sync with FaaS" default:"60"`
}{}

FunctionManagerFlags are configuration flags for the function manager

Functions

func NewController

func NewController(config *ControllerConfig, store entitystore.EntityStore, faas functions.FaaSDriver, runner functions.Runner, imgClient ImageManager) controller.Controller

func SecretStoreClient

func SecretStoreClient() *secretclient.SecretStore

Types

type ControllerConfig

type ControllerConfig struct {
	ResyncPeriod   time.Duration
	OrganizationID string
}

type Handlers

type Handlers struct {
	Watcher controller.Watcher

	Store entitystore.EntityStore
}

func NewHandlers

func NewHandlers(watcher controller.Watcher, store entitystore.EntityStore) *Handlers

func (*Handlers) ConfigureHandlers

func (h *Handlers) ConfigureHandlers(api middleware.RoutableAPI)

ConfigureHandlers registers the function manager handlers to the API

type ImageManager

func ImageManagerClient

func ImageManagerClient() ImageManager

Directories

Path Synopsis
gen
restapi
Package restapi Function Manager VMware Dispatch Function Manager
Package restapi Function Manager VMware Dispatch Function Manager
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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