httpdriver

package
v1.0.0-beta.231 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPageSize   = 100
	DefaultPageNumber = 1
)

Variables

This section is empty.

Functions

func AsMetadata

func AsMetadata(metadata api.Metadata) models.Metadata

func FromPlanAddon

func FromPlanAddon(a planaddon.PlanAddon) (api.PlanAddon, error)

Types

type CreatePlanAddonRequest

type CreatePlanAddonRequest = planaddon.CreatePlanAddonInput

func AsCreatePlanAddonRequest

func AsCreatePlanAddonRequest(a api.PlanAddonCreate, namespace string, planID string) (CreatePlanAddonRequest, error)

type CreatePlanAddonResponse

type CreatePlanAddonResponse = api.PlanAddon

type DeletePlanAddonParams

type DeletePlanAddonParams struct {
	PlanID  string
	AddonID string
}

type DeletePlanAddonRequest

type DeletePlanAddonRequest = planaddon.DeletePlanAddonInput

type DeletePlanAddonResponse

type DeletePlanAddonResponse = interface{}

type GetPlanAddonParams

type GetPlanAddonParams struct {
	PlanIDOrKey  string
	AddonIDOrKey string
}

type GetPlanAddonRequest

type GetPlanAddonRequest = planaddon.GetPlanAddonInput

type GetPlanAddonResponse

type GetPlanAddonResponse = api.PlanAddon

type Handler

type Handler interface {
	PlanAddonHandler
}

func New

func New(
	namespaceDecoder namespacedriver.NamespaceDecoder,
	service planaddon.Service,
	options ...httptransport.HandlerOption,
) Handler

type ListPlanAddonsParams

type ListPlanAddonsParams struct {
	api.ListPlanAddonsParams

	// AddonID or Key.
	PlanIDOrKey string
}

type ListPlanAddonsRequest

type ListPlanAddonsRequest = planaddon.ListPlanAddonsInput

type ListPlanAddonsResponse

type ListPlanAddonsResponse = api.PlanAddonPaginatedResponse

type PlanAddonHandler

type PlanAddonHandler interface {
	ListPlanAddons() ListPlanAddonsHandler
	CreatePlanAddon() CreatePlanAddonHandler
	DeletePlanAddon() DeletePlanAddonHandler
	GetPlanAddon() GetPlanAddonHandler
	UpdatePlanAddon() UpdatePlanAddonHandler
}

type UpdatePlanAddonParams

type UpdatePlanAddonParams struct {
	PlanID  string
	AddonID string
}

type UpdatePlanAddonRequest

type UpdatePlanAddonRequest = planaddon.UpdatePlanAddonInput

func AsUpdatePlanAddonRequest

func AsUpdatePlanAddonRequest(a api.PlanAddonReplaceUpdate, namespace string, planID string, addonID string) (UpdatePlanAddonRequest, error)

type UpdatePlanAddonResponse

type UpdatePlanAddonResponse = api.PlanAddon

Jump to

Keyboard shortcuts

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