functionmanager

package
Version: v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 constructor for the function manager controller

Types

type ControllerConfig

type ControllerConfig struct {
	ResyncPeriod      time.Duration
	ZookeeperLocation string
}

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(imageFilePath string) *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 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL