Documentation ¶
Overview ¶
///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 /////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 /////////////////////////////////////////////////////////////////////
Index ¶
Constants ¶
This section is empty.
Variables ¶
var APIManagerFlags = 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"` GatewayHost string `long:"gateway-host" description:"API Gateway server host" default:"gateway-kong"` Gateway string `long:"gateway" description:"API Gateway Implementation" default:"kong"` FunctionManager string `long:"function-manager" description:"Function Manager Host" default:"function-manager"` ResyncPeriod int `long:"resync-period" description:"The time period (in seconds) to sync with api gateway" default:"60"` }{}
APIManagerFlags are configuration flags for the function manager
Functions ¶
func NewController ¶
func NewController(config *ControllerConfig, store entitystore.EntityStore, gw gateway.Gateway) controller.Controller
NewController creates a new controller
Types ¶
type API ¶
type API struct { entitystore.BaseEntity API gateway.API }
API is a data struct used to store api information into entity store
type ControllerConfig ¶
ControllerConfig defines configuration for controller
type Handlers ¶
type Handlers struct { Store entitystore.EntityStore // contains filtered or unexported fields }
Handlers define a set of handlers for API Manager
func NewHandlers ¶
func NewHandlers(watcher controller.Watcher, store entitystore.EntityStore) *Handlers
NewHandlers create a new API Manager Handler
func (*Handlers) ConfigureHandlers ¶
func (h *Handlers) ConfigureHandlers(routableAPI middleware.RoutableAPI)
ConfigureHandlers configure handlers for API Manager
Directories ¶
Path | Synopsis |
---|---|
///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc.
|
///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc. |
kong
///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc.
|
///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc. |
mocks
Code generated by mockery v1.0.0
|
Code generated by mockery v1.0.0 |
gen
|
|
restapi
Package restapi API Manager VMware Dispatch - API Manager APIs
|
Package restapi API Manager VMware Dispatch - API Manager APIs |