transport

package
v1.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrgIDFromContext

func OrgIDFromContext(ctx context.Context) uuid.UUID

OrgIDFromContext extracts the organization ID from the context. Falls back to the default organization ID if not present.

Types

type TransportHandler

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

TransportHandler implements the generated ServerInterface for ImageBuilder API

func NewTransportHandler

func NewTransportHandler(svc service.Service, log logrus.FieldLogger) *TransportHandler

NewTransportHandler creates a new TransportHandler

func (*TransportHandler) CancelImageBuild

func (h *TransportHandler) CancelImageBuild(w http.ResponseWriter, r *http.Request, name string)

CancelImageBuild handles POST /api/v1/imagebuilds/{name}/cancel

func (*TransportHandler) CancelImageExport

func (h *TransportHandler) CancelImageExport(w http.ResponseWriter, r *http.Request, name string)

CancelImageExport handles POST /api/v1/imageexports/{name}/cancel

func (*TransportHandler) CreateImageBuild

func (h *TransportHandler) CreateImageBuild(w http.ResponseWriter, r *http.Request)

CreateImageBuild handles POST /api/v1/imagebuilds

func (*TransportHandler) CreateImageExport

func (h *TransportHandler) CreateImageExport(w http.ResponseWriter, r *http.Request)

CreateImageExport handles POST /api/v1/imageexports

func (*TransportHandler) DeleteImageBuild

func (h *TransportHandler) DeleteImageBuild(w http.ResponseWriter, r *http.Request, name string)

DeleteImageBuild handles DELETE /api/v1/imagebuilds/{name}

func (*TransportHandler) DeleteImageExport

func (h *TransportHandler) DeleteImageExport(w http.ResponseWriter, r *http.Request, name string)

DeleteImageExport handles DELETE /api/v1/imageexports/{name}

func (*TransportHandler) DownloadImageExport

func (h *TransportHandler) DownloadImageExport(w http.ResponseWriter, r *http.Request, name string)

DownloadImageExport handles GET /api/v1/imageexports/{name}/download

func (*TransportHandler) GetImageBuild

func (h *TransportHandler) GetImageBuild(w http.ResponseWriter, r *http.Request, name string, params api.GetImageBuildParams)

GetImageBuild handles GET /api/v1/imagebuilds/{name}

func (*TransportHandler) GetImageBuildLog

func (h *TransportHandler) GetImageBuildLog(w http.ResponseWriter, r *http.Request, name string, params api.GetImageBuildLogParams)

GetImageBuildLog handles GET /api/v1/imagebuilds/{name}/log

func (*TransportHandler) GetImageExport

func (h *TransportHandler) GetImageExport(w http.ResponseWriter, r *http.Request, name string)

GetImageExport handles GET /api/v1/imageexports/{name}

func (*TransportHandler) GetImageExportLog

func (h *TransportHandler) GetImageExportLog(w http.ResponseWriter, r *http.Request, name string, params api.GetImageExportLogParams)

GetImageExportLog handles GET /api/v1/imageexports/{name}/log

func (*TransportHandler) ListImageBuilds

func (h *TransportHandler) ListImageBuilds(w http.ResponseWriter, r *http.Request, params api.ListImageBuildsParams)

ListImageBuilds handles GET /api/v1/imagebuilds

func (*TransportHandler) ListImageExports

func (h *TransportHandler) ListImageExports(w http.ResponseWriter, r *http.Request, params api.ListImageExportsParams)

ListImageExports handles GET /api/v1/imageexports

func (*TransportHandler) ReplaceImageBuild

func (h *TransportHandler) ReplaceImageBuild(w http.ResponseWriter, r *http.Request, name string)

ReplaceImageBuild handles PUT /api/v1/imagebuilds/{name} ImageBuild is immutable, so this just calls Create with the name from the path. If the resource already exists, Create will return a conflict error.

func (*TransportHandler) SetParseFailureResponse

func (h *TransportHandler) SetParseFailureResponse(w http.ResponseWriter, err error)

SetParseFailureResponse writes a 400 response for JSON decode failures.

func (*TransportHandler) SetResponse

func (h *TransportHandler) SetResponse(w http.ResponseWriter, body any, status domain.Status)

SetResponse writes an HTTP response, converting domain.Status to the imagebuilder v1alpha1 API Status via the handler's converter.

Jump to

Keyboard shortcuts

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