functionmanager

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: Apache-2.0 Imports: 31 Imported by: 4

Documentation

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:"Backend DB URL/Path" default:"./db.bolt"`
	DbBackend        string `long:"db-backend" description:"Backend DB Name" default:"boltdb"`
	DbUser           string `long:"db-username" description:"Backend DB Username" default:"dispatch"`
	DbPassword       string `long:"db-password" description:"Backend DB Password" default:"dispatch"`
	DbDatabase       string `long:"db-database" description:"Backend DB Name" default:"dispatch"`
	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"`
	ServiceManager   string `long:"service-manager" description:"Service manager endpoint" default:"localhost:8004"`
	K8sConfig        string `long:"kubeconfig" description:"Path to kubernetes config file" default:""`
	FileImageManager string `long:"file-image-manager" description:"Path to file containing images (useful for testing)"`
	Tracer           string `long:"tracer" description:"Open Tracing Tracer endpoint" default:""`
}{}

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

NewController is the contstructor for the function manager controller

func SecretStoreClient

func SecretStoreClient() *secretclient.SecretStore

SecretStoreClient returns a client to the secret store

func ServiceManagerClient added in v0.1.13

func ServiceManagerClient() *serviceclient.ServiceManager

ServiceManagerClient returns a client to the secret store

Types

type ControllerConfig

type ControllerConfig struct {
	ResyncPeriod   time.Duration
	OrganizationID string
}

ControllerConfig is the function manager controller configuration

type FileImageManager added in v0.1.13

type FileImageManager struct {
	Images map[string]*v1.Image
}

FileImageManager is an ImageManager which is backed by a static map of images

func (*FileImageManager) GetImageByName added in v0.1.13

GetImageByName returns an image based queried by name

type Handlers

type Handlers struct {
	Watcher controller.Watcher

	Store entitystore.EntityStore
}

Handlers is the API handler for function manager

func NewHandlers

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

NewHandlers is the contstructor for the function manager API handlers

func (*Handlers) ConfigureHandlers

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

ConfigureHandlers registers the function manager handlers to the API

type ImageManager

ImageManager is an interface to the image manager service

func FileImageManagerClient added in v0.1.13

func FileImageManagerClient() ImageManager

FileImageManagerClient returns a FileImageManager after populating the map with a JSON file

func ImageManagerClient

func ImageManagerClient() ImageManager

ImageManagerClient creates an ImageManager

Directories

Path Synopsis
gen
restapi
Package restapi Function Manager VMware Dispatch Function Manager Schemes: http https Host: localhost BasePath: /v1 Version: 1.0.0 Contact: <dispatch@vmware.com> Consumes: - application/json Produces: - application/json swagger:meta
Package restapi Function Manager VMware Dispatch Function Manager Schemes: http https Host: localhost BasePath: /v1 Version: 1.0.0 Contact: <dispatch@vmware.com> Consumes: - application/json Produces: - application/json swagger:meta

Jump to

Keyboard shortcuts

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