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: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAddon

func FromAddon(a addon.Addon) (api.Addon, error)

Types

type AddonHandler

type AddonHandler interface {
	ListAddons() ListAddonsHandler
	CreateAddon() CreateAddonHandler
	DeleteAddon() DeleteAddonHandler
	GetAddon() GetAddonHandler
	UpdateAddon() UpdateAddonHandler
	PublishAddon() PublishAddonHandler
	ArchiveAddon() ArchiveAddonHandler
}

type ArchiveAddonRequest

type ArchiveAddonRequest = addon.ArchiveAddonInput

type ArchiveAddonResponse

type ArchiveAddonResponse = api.Addon

type CreateAddonRequest

type CreateAddonRequest = addon.CreateAddonInput

func AsCreateAddonRequest

func AsCreateAddonRequest(a api.AddonCreate, namespace string) (CreateAddonRequest, error)

type CreateAddonResponse

type CreateAddonResponse = api.Addon

type DeleteAddonRequest

type DeleteAddonRequest = addon.DeleteAddonInput

type DeleteAddonResponse

type DeleteAddonResponse = interface{}

type GetAddonRequest

type GetAddonRequest = addon.GetAddonInput

type GetAddonRequestParams

type GetAddonRequestParams struct {
	// AddonID or Key.
	IDOrKey string

	// Version is the version of the add-on.
	// If not set the latest version is assumed.
	Version int

	// AllowLatest defines whether return the latest version regardless of its AddonStatus or with ActiveStatus only if
	// Version is not set.
	IncludeLatest bool
}

type GetAddonResponse

type GetAddonResponse = api.Addon

type Handler

type Handler interface {
	AddonHandler
}

func New

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

type ListAddonsParams

type ListAddonsParams = api.ListAddonsParams

type ListAddonsRequest

type ListAddonsRequest = addon.ListAddonsInput

type ListAddonsResponse

type ListAddonsResponse = api.AddonPaginatedResponse

type PublishAddonRequest

type PublishAddonRequest = addon.PublishAddonInput

type PublishAddonResponse

type PublishAddonResponse = api.Addon

type UpdateAddonRequest

type UpdateAddonRequest = addon.UpdateAddonInput

func AsUpdateAddonRequest

func AsUpdateAddonRequest(a api.AddonReplaceUpdate, namespace string, addonID string) (UpdateAddonRequest, error)

type UpdateAddonResponse

type UpdateAddonResponse = api.Addon

Jump to

Keyboard shortcuts

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