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 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 ¶
type ImageManager interface {
GetImageByName(*imageclientimage.GetImageByNameParams, runtime.ClientAuthInfoWriter) (*imageclientimage.GetImageByNameOK, error)
}
func ImageManagerClient ¶
func ImageManagerClient() ImageManager
Click to show internal directories.
Click to hide internal directories.