gatewayinstall

package
v0.0.0-...-5c68377 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGatewayCommandName

func NewGatewayCommandName(path, sourcePath string) string

Types

type Client

type Client interface {
	NewGatewayClient(id string) GatewayClient
}

func NewClient

func NewClient() Client

NewClient creates new client instance.

type Gateway

type Gateway interface {
	GetName() string
	Log() ss.LogStream

	Create(sourcePath string, client Client) error
	Delete(Client) error
	Deploy(Client) error
}

func NewGateway

func NewGateway(
	id string,
	name string,
	isUserCanRemoveHimself bool,
	log ss.LogSession,
) Gateway

NewGateway creates new gateway instance.

type GatewayAuthorizer

type GatewayAuthorizer string

type GatewayClient

type GatewayClient interface {
	CreateModel(name, schema string) (GatewayModel, error)
	DeleteModels() error

	CreateRoute(
		name string,
		lambda string,
		model *GatewayModel,
		auth *GatewayAuthorizer,
	) (GatewayRoute, error)
	DeleteRoutes() error

	CreateRouteResponse(GatewayRoute) error

	CreateAuthorizer(name string) (GatewayAuthorizer, error)
	DeleteAuthorizers() error

	Deploy() error
}

type GatewayCommandsReader

type GatewayCommandsReader interface {
	Read(name string, log ss.LogSession) ([]command, error)
}

type GatewayModel

type GatewayModel string

type GatewayRoute

type GatewayRoute struct {
	Route        string
	Intergartion string
}

Jump to

Keyboard shortcuts

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