apimanager

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

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

View Source
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

type ControllerConfig struct {
	ResyncPeriod   time.Duration
	OrganizationID string
}

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

Jump to

Keyboard shortcuts

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