httproxy

package
v0.0.0-...-0fd85f3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Convention

type Convention struct {
	Config  config.Config
	Service Services
}

func (Convention) Converge

func (c Convention) Converge(ctx context.Context, d deployment.Deployment) error

func (Convention) ListRoutes

func (c Convention) ListRoutes(ctx context.Context, d deployment.Deployment) ([]types.Route, error)

func (Convention) Mount

func (Convention) Unmount

func (Convention) UnsafeListRoutes

func (c Convention) UnsafeListRoutes(ctx context.Context, d deployment.Deployment) ([]types.Route, error)

for view layer only

type GatewayService

type GatewayService interface {
	GetApi(ctx context.Context, apiId string) (*apigatewayv2.GetApiOutput, error)
	GetApis(ctx context.Context) (*apigatewayv2.GetApisOutput, error)
	PutIntegration(ctx context.Context, apiId, lambdaArn, routeKey string) (*apigatewayv2.GetIntegrationOutput, error)
	PutRoute(ctx context.Context, apiId, integrationId, routeKey string, authType string, authorizerId *string) (*apigatewayv2.GetRouteOutput, error)
	PutLambdaPermission(ctx context.Context, apiId, lambdaArn, routeKey string) error
	DeleteIntegration(ctx context.Context, apiId string, route types.Route) error
	DeleteRoute(ctx context.Context, apiId string, route types.Route) error
	DeleteLambdaPermission(ctx context.Context, lambdaArn string, route types.Route) error
	GetRouteByRouteKey(ctx context.Context, apiId, routeKey string) (types.Route, error)
	GetRoutesByFunctionArn(ctx context.Context, apiId, functionArn string) ([]types.Route, error)
}

type RegistryService

type RegistryService interface {
	InspectByDigest(ctx context.Context, registryId, repository, digest string) (dockerTypes.ImageInspect, error)
}

type Services

type Services struct {
	Gateway  GatewayService
	Registry RegistryService
}

Jump to

Keyboard shortcuts

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