functionmanager

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 26 Imported by: 0

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"`
	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 ImageGetter, imageBuilder functions.ImageBuilder) controller.Controller

NewController is the contstructor for the function manager controller

Types

type ControllerConfig

type ControllerConfig struct {
	ResyncPeriod time.Duration
}

ControllerConfig is the function manager controller configuration

type FileImageManager added in v0.1.13

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

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

func FileImageManagerClient added in v0.1.13

func FileImageManagerClient() *FileImageManager

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

func (*FileImageManager) GetImage added in v0.1.15

func (m *FileImageManager) GetImage(ctx context.Context, organizationID string, imageName string) (*v1.Image, error)

GetImage 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 constructor 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 ImageGetter added in v0.1.15

type ImageGetter interface {
	GetImage(ctx context.Context, organizationID string, imageName string) (*v1.Image, error)
}

ImageGetter retrieves image from Image Manager

Directories

Path Synopsis
gen
restapi
Package restapi Function Manager VMware Dispatch Function Manager
Package restapi Function Manager VMware Dispatch Function Manager

Jump to

Keyboard shortcuts

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