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 ¶
ControllerConfig is the function manager controller configuration
type FileImageManager ¶ added in v0.1.13
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
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
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 |
Click to show internal directories.
Click to hide internal directories.