v1handlers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	AddRoutes(*lmdrouter.Router)
	Handle(context.Context, events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
}

func NewProviderDownloadHandler

func NewProviderDownloadHandler() Handler

func NewProviderVersionsHandler

func NewProviderVersionsHandler() Handler

func NewServiceDiscoveryHandler

func NewServiceDiscoveryHandler(services map[string]string) Handler

type ProviderDownloadHandler

type ProviderDownloadHandler struct{}

func (ProviderDownloadHandler) AddRoutes

func (o ProviderDownloadHandler) AddRoutes(router *lmdrouter.Router)

type ProviderDownloadModel

type ProviderDownloadModel struct {
	NamespaceType string `dynamodbav:"NamespaceType"`
	VersionOsArch string `dynamodbav:"VersionOsArch"`
	Keys          string `dynamodbav:"Keys"`
	Protocols     string `dynamodbav:"Protocols"`
	Sha           string `dynamodbav:"SHA"`
	ShaUrl        string `dynamodbav:"SHA_URL"`
	SigUrl        string `dynamodbav:"Sig_URL"`
	Url           string `dynamodbav:"URL"`
}

func NewDownloadModelFromUrlPath

func NewDownloadModelFromUrlPath(path string) (ProviderDownloadModel, error)

func (ProviderDownloadModel) GetKey

func (ProviderDownloadModel) MarshalJSON

func (o ProviderDownloadModel) MarshalJSON() ([]byte, error)

type ProviderVersionModel

type ProviderVersionModel struct {
	VersionOsArch string `dynamodbav:"VersionOsArch"`
	Keys          string `dynamodbav:"Keys"`
	Protocols     string `dynamodb:"Protocols"`
}

type ProviderVersionsHandler

type ProviderVersionsHandler struct{}

func (ProviderVersionsHandler) AddRoutes

func (o ProviderVersionsHandler) AddRoutes(router *lmdrouter.Router)

type ProviderVersionsModel

type ProviderVersionsModel struct {
	NamespaceType string `dynamodbav:"NamespaceType"`
	Versions      []ProviderVersionModel
}

func NewVersionsModelFromUrlPath

func NewVersionsModelFromUrlPath(path string) (ProviderVersionsModel, error)

func (ProviderVersionsModel) KeyExpr

func (ProviderVersionsModel) MarshalJSON

func (o ProviderVersionsModel) MarshalJSON() ([]byte, error)

type ServiceDiscoveryHandler

type ServiceDiscoveryHandler struct {
	// contains filtered or unexported fields
}

func (ServiceDiscoveryHandler) AddRoutes

func (o ServiceDiscoveryHandler) AddRoutes(router *lmdrouter.Router)

Jump to

Keyboard shortcuts

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