Documentation ¶
Index ¶
- type Convention
- func (c Convention) Converge(ctx context.Context, d deployment.Deployment) error
- func (c Convention) ListRoutes(ctx context.Context, d deployment.Deployment) ([]types.Route, error)
- func (c Convention) Mount(ctx context.Context, d deployment.Deployment) error
- func (c Convention) Unmount(ctx context.Context, d deployment.Deployment) error
- func (c Convention) UnsafeListRoutes(ctx context.Context, d deployment.Deployment) ([]types.Route, error)
- type GatewayService
- type RegistryService
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Convention ¶
func FromServices ¶
func FromServices(c config.Config, g GatewayService, r RegistryService) Convention
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 (c Convention) Mount(ctx context.Context, d deployment.Deployment) error
func (Convention) Unmount ¶
func (c Convention) Unmount(ctx context.Context, d deployment.Deployment) error
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 }
Click to show internal directories.
Click to hide internal directories.