Help us shape the future of Go! Take the 2026 Go Developer Survey

gateway

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: 0 Imported by: 0

Documentation

Overview

///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 /////////////////////////////////////////////////////////////////////

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	ID        string `json:"id,omitempty"`
	CreatedAt int    `json:"created_at,omitempty"`

	Name     string `json:"name,omitempty"`
	Function string `json:"function,omitempty"`

	Hosts   []string `json:"hosts,omitempty"`
	URIs    []string `json:"uris,omitempty"`
	Methods []string `json:"methods,omitempty"`

	Authentication string `json:"authentication,omitempty"`

	Enabled bool `json:"enabled,omitempty"`

	// i.e. http https
	Protocols []string `json:"protocols,omitempty"`

	// reference to tls certificates (a serverless secret name)
	// TODO: will be replaced by SNI objects
	TLS string `json:"tls,omitempty"`

	CORS bool `json:"cors,omitempty"`
}

API represents the metadata of an API

type Gateway

type Gateway interface {
	Initialize() error
	AddAPI(api *API) (*API, error)
	GetAPI(name string) (*API, error)
	UpdateAPI(name string, api *API) (*API, error)
	DeleteAPI(api *API) error
}

Gateway defines interfaces the underlying API Gateway provides

Directories

Path Synopsis
///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc.
///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc.
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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