pfed

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package pfed provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpec

func GetSpec() (swagger *openapi3.T, err error)

GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.

func GetSpecJSON

func GetSpecJSON() ([]byte, error)

GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.

func GetSwagger deprecated

func GetSwagger() (*openapi3.T, error)

GetSwagger returns the OpenAPI specification corresponding to the generated code in this file.

Deprecated: GetSwagger predates kin-openapi renaming openapi3.Swagger to openapi3.T. Use GetSpec instead. This wrapper is retained for backwards compatibility.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type AddFollowerJpd201JSONResponse

type AddFollowerJpd201JSONResponse JpdResponse

func (AddFollowerJpd201JSONResponse) VisitAddFollowerJpdResponse

func (response AddFollowerJpd201JSONResponse) VisitAddFollowerJpdResponse(w http.ResponseWriter) error

type AddFollowerJpd400JSONResponse

type AddFollowerJpd400JSONResponse ErrorResponse

func (AddFollowerJpd400JSONResponse) VisitAddFollowerJpdResponse

func (response AddFollowerJpd400JSONResponse) VisitAddFollowerJpdResponse(w http.ResponseWriter) error

type AddFollowerJpd401JSONResponse

type AddFollowerJpd401JSONResponse ErrorResponse

func (AddFollowerJpd401JSONResponse) VisitAddFollowerJpdResponse

func (response AddFollowerJpd401JSONResponse) VisitAddFollowerJpdResponse(w http.ResponseWriter) error

type AddFollowerJpd403JSONResponse

type AddFollowerJpd403JSONResponse ErrorResponse

func (AddFollowerJpd403JSONResponse) VisitAddFollowerJpdResponse

func (response AddFollowerJpd403JSONResponse) VisitAddFollowerJpdResponse(w http.ResponseWriter) error

type AddFollowerJpd409JSONResponse

type AddFollowerJpd409JSONResponse ErrorResponse

func (AddFollowerJpd409JSONResponse) VisitAddFollowerJpdResponse

func (response AddFollowerJpd409JSONResponse) VisitAddFollowerJpdResponse(w http.ResponseWriter) error

type AddFollowerJpd500JSONResponse

type AddFollowerJpd500JSONResponse ErrorResponse

func (AddFollowerJpd500JSONResponse) VisitAddFollowerJpdResponse

func (response AddFollowerJpd500JSONResponse) VisitAddFollowerJpdResponse(w http.ResponseWriter) error

type AddFollowerJpdJSONRequestBody

type AddFollowerJpdJSONRequestBody = CreateJpdRequest

AddFollowerJpdJSONRequestBody defines body for AddFollowerJpd for application/json ContentType.

type AddFollowerJpdRequestObject

type AddFollowerJpdRequestObject struct {
	Body *AddFollowerJpdJSONRequestBody
}

type AddFollowerJpdResponseObject

type AddFollowerJpdResponseObject interface {
	VisitAddFollowerJpdResponse(w http.ResponseWriter) error
}

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type ConnectionGroup

type ConnectionGroup struct {
	// TargetJpdIds Required within this object. Ids of follower JPDs, each previously added with POST /pfed/api/v1/jpd. Duplicates are rejected.
	TargetJpdIds []string `json:"target_jpd_ids"`
}

ConnectionGroup The follower instances a federation sends to.

type CreateFederation201JSONResponse

type CreateFederation201JSONResponse FederationDetails

func (CreateFederation201JSONResponse) VisitCreateFederationResponse

func (response CreateFederation201JSONResponse) VisitCreateFederationResponse(w http.ResponseWriter) error

type CreateFederation400JSONResponse

type CreateFederation400JSONResponse ErrorResponse

func (CreateFederation400JSONResponse) VisitCreateFederationResponse

func (response CreateFederation400JSONResponse) VisitCreateFederationResponse(w http.ResponseWriter) error

type CreateFederation401JSONResponse

type CreateFederation401JSONResponse ErrorResponse

func (CreateFederation401JSONResponse) VisitCreateFederationResponse

func (response CreateFederation401JSONResponse) VisitCreateFederationResponse(w http.ResponseWriter) error

type CreateFederation403JSONResponse

type CreateFederation403JSONResponse ErrorResponse

func (CreateFederation403JSONResponse) VisitCreateFederationResponse

func (response CreateFederation403JSONResponse) VisitCreateFederationResponse(w http.ResponseWriter) error

type CreateFederation409JSONResponse

type CreateFederation409JSONResponse ErrorResponse

func (CreateFederation409JSONResponse) VisitCreateFederationResponse

func (response CreateFederation409JSONResponse) VisitCreateFederationResponse(w http.ResponseWriter) error

type CreateFederation500JSONResponse

type CreateFederation500JSONResponse ErrorResponse

func (CreateFederation500JSONResponse) VisitCreateFederationResponse

func (response CreateFederation500JSONResponse) VisitCreateFederationResponse(w http.ResponseWriter) error

type CreateFederationJSONRequestBody

type CreateFederationJSONRequestBody = CreateFederationRequest

CreateFederationJSONRequestBody defines body for CreateFederation for application/json ContentType.

type CreateFederationRequest

type CreateFederationRequest struct {
	// ConnectionGroups Required within this object. Must contain exactly one key, source-jpd, mapping to the connection group that lists the followers. Any other key answers 400.
	ConnectionGroups map[string]ConnectionGroup `json:"connection_groups"`

	// Description Optional within this object. Free text describing what the federation is for.
	Description *string `json:"description,omitempty"`

	// Entities Required within this object. The entity types to federate. Must list all four types of the EntityConfig type enum, each once. The federation and its membership are recorded, but these types carry no data to synchronise. Identity replication between peers is configured through /access/api/v1/system/federation instead.
	Entities []EntityConfig `json:"entities"`

	// Name Required within this object. Unique name of the federation on this instance.
	Name string `json:"name"`
}

CreateFederationRequest A new platform federation on this (controller) instance. Only name, description and the follower ids are free choices; the connection group key and the entity list are fixed by the protocol.

type CreateFederationRequestObject

type CreateFederationRequestObject struct {
	Body *CreateFederationJSONRequestBody
}

type CreateFederationResponseObject

type CreateFederationResponseObject interface {
	VisitCreateFederationResponse(w http.ResponseWriter) error
}

type CreateJpdRequest

type CreateJpdRequest struct {
	// Id Required within this object. Label for the follower, unique on this controller; referenced from connection groups.
	Id string `json:"id"`

	// PairingToken Required within this object. Write-only. The pairing token issued by the follower for the platform-federation use case. Rejected with 400 when expired, already used or issued for another use case.
	PairingToken *string `json:"pairing_token,omitempty"`

	// Url Required within this object. Base URL of the follower instance.
	Url string `json:"url"`
}

CreateJpdRequest A follower instance to add to this controller. Obtain pairing_token on the follower with POST /access/api/v1/service_trust/pairing/platform-federation; the token is used once to establish mutual trust and is not stored.

type DeleteFederation204Response

type DeleteFederation204Response struct {
}

func (DeleteFederation204Response) VisitDeleteFederationResponse

func (response DeleteFederation204Response) VisitDeleteFederationResponse(w http.ResponseWriter) error

type DeleteFederation401JSONResponse

type DeleteFederation401JSONResponse ErrorResponse

func (DeleteFederation401JSONResponse) VisitDeleteFederationResponse

func (response DeleteFederation401JSONResponse) VisitDeleteFederationResponse(w http.ResponseWriter) error

type DeleteFederation403JSONResponse

type DeleteFederation403JSONResponse ErrorResponse

func (DeleteFederation403JSONResponse) VisitDeleteFederationResponse

func (response DeleteFederation403JSONResponse) VisitDeleteFederationResponse(w http.ResponseWriter) error

type DeleteFederation404JSONResponse

type DeleteFederation404JSONResponse ErrorResponse

func (DeleteFederation404JSONResponse) VisitDeleteFederationResponse

func (response DeleteFederation404JSONResponse) VisitDeleteFederationResponse(w http.ResponseWriter) error

type DeleteFederation500JSONResponse

type DeleteFederation500JSONResponse ErrorResponse

func (DeleteFederation500JSONResponse) VisitDeleteFederationResponse

func (response DeleteFederation500JSONResponse) VisitDeleteFederationResponse(w http.ResponseWriter) error

type DeleteFederationRequestObject

type DeleteFederationRequestObject struct {
	Id FederationId `json:"id"`
}

type DeleteFederationResponseObject

type DeleteFederationResponseObject interface {
	VisitDeleteFederationResponse(w http.ResponseWriter) error
}

type DeleteFollowerJpd204Response

type DeleteFollowerJpd204Response struct {
}

func (DeleteFollowerJpd204Response) VisitDeleteFollowerJpdResponse

func (response DeleteFollowerJpd204Response) VisitDeleteFollowerJpdResponse(w http.ResponseWriter) error

type DeleteFollowerJpd401JSONResponse

type DeleteFollowerJpd401JSONResponse ErrorResponse

func (DeleteFollowerJpd401JSONResponse) VisitDeleteFollowerJpdResponse

func (response DeleteFollowerJpd401JSONResponse) VisitDeleteFollowerJpdResponse(w http.ResponseWriter) error

type DeleteFollowerJpd403JSONResponse

type DeleteFollowerJpd403JSONResponse ErrorResponse

func (DeleteFollowerJpd403JSONResponse) VisitDeleteFollowerJpdResponse

func (response DeleteFollowerJpd403JSONResponse) VisitDeleteFollowerJpdResponse(w http.ResponseWriter) error

type DeleteFollowerJpd404JSONResponse

type DeleteFollowerJpd404JSONResponse ErrorResponse

func (DeleteFollowerJpd404JSONResponse) VisitDeleteFollowerJpdResponse

func (response DeleteFollowerJpd404JSONResponse) VisitDeleteFollowerJpdResponse(w http.ResponseWriter) error

type DeleteFollowerJpd500JSONResponse

type DeleteFollowerJpd500JSONResponse ErrorResponse

func (DeleteFollowerJpd500JSONResponse) VisitDeleteFollowerJpdResponse

func (response DeleteFollowerJpd500JSONResponse) VisitDeleteFollowerJpdResponse(w http.ResponseWriter) error

type DeleteFollowerJpdRequestObject

type DeleteFollowerJpdRequestObject struct {
	Id JpdId `json:"id"`
}

type DeleteFollowerJpdResponseObject

type DeleteFollowerJpdResponseObject interface {
	VisitDeleteFollowerJpdResponse(w http.ResponseWriter) error
}

type EntityConfig

type EntityConfig struct {
	// Type Required within this object. Entity type identifier in <service>.<entityType> form. These types are recorded but carry no data to synchronise. Identity replication between peers is configured through /access/api/v1/system/federation instead.
	Type EntityConfigType `json:"type"`
}

EntityConfig One entity type a federation covers.

type EntityConfigType

type EntityConfigType string

EntityConfigType Required within this object. Entity type identifier in <service>.<entityType> form. These types are recorded but carry no data to synchronise. Identity replication between peers is configured through /access/api/v1/system/federation instead.

const (
	CatalogCustomLabels   EntityConfigType = "catalog.customLabels"
	XrayCurationCondition EntityConfigType = "xray.curationCondition"
	XrayCurationPkgType   EntityConfigType = "xray.curationPkgType"
	XrayCurationPolicy    EntityConfigType = "xray.curationPolicy"
)

Defines values for EntityConfigType.

func (EntityConfigType) Valid

func (e EntityConfigType) Valid() bool

Valid indicates whether the value is a known member of the EntityConfigType enum.

type ErrorResponse

type ErrorResponse struct {
	// Code Required within this object. The HTTP status code of the response, for example 404.
	Code int `json:"code"`

	// Message Required within this object. Human readable explanation.
	Message string `json:"message"`
}

ErrorResponse The flat error envelope used by /pfed.

type FederationDetails

type FederationDetails struct {
	// ConnectionGroups Optional within this object. The connection groups keyed by group name; always the single source-jpd group.
	ConnectionGroups *map[string]ConnectionGroup `json:"connection_groups,omitempty"`

	// Description Optional within this object. The federation description, empty when none was given.
	Description *string `json:"description,omitempty"`

	// Entities Optional within this object. The federated entity types.
	Entities *[]EntityConfig `json:"entities,omitempty"`

	// Id Optional within this object. Server-owned. Identifier assigned at creation and used in /federations/{id}.
	Id *string `json:"id,omitempty"`

	// Name Optional within this object. The federation name.
	Name *string `json:"name,omitempty"`
}

FederationDetails A stored platform federation.

type FederationId

type FederationId = string

FederationId defines model for FederationId.

type FederationSummary

type FederationSummary struct {
	// Id Optional within this object. Server-owned. The federation id.
	Id *string `json:"id,omitempty"`

	// Name Optional within this object. The federation name.
	Name *string `json:"name,omitempty"`
}

FederationSummary A federation as listed.

type GetFederation200JSONResponse

type GetFederation200JSONResponse FederationDetails

func (GetFederation200JSONResponse) VisitGetFederationResponse

func (response GetFederation200JSONResponse) VisitGetFederationResponse(w http.ResponseWriter) error

type GetFederation401JSONResponse

type GetFederation401JSONResponse ErrorResponse

func (GetFederation401JSONResponse) VisitGetFederationResponse

func (response GetFederation401JSONResponse) VisitGetFederationResponse(w http.ResponseWriter) error

type GetFederation403JSONResponse

type GetFederation403JSONResponse ErrorResponse

func (GetFederation403JSONResponse) VisitGetFederationResponse

func (response GetFederation403JSONResponse) VisitGetFederationResponse(w http.ResponseWriter) error

type GetFederation404JSONResponse

type GetFederation404JSONResponse ErrorResponse

func (GetFederation404JSONResponse) VisitGetFederationResponse

func (response GetFederation404JSONResponse) VisitGetFederationResponse(w http.ResponseWriter) error

type GetFederation500JSONResponse

type GetFederation500JSONResponse ErrorResponse

func (GetFederation500JSONResponse) VisitGetFederationResponse

func (response GetFederation500JSONResponse) VisitGetFederationResponse(w http.ResponseWriter) error

type GetFederationRequestObject

type GetFederationRequestObject struct {
	Id FederationId `json:"id"`
}

type GetFederationResponseObject

type GetFederationResponseObject interface {
	VisitGetFederationResponse(w http.ResponseWriter) error
}

type GetFollowerJpd200JSONResponse

type GetFollowerJpd200JSONResponse JpdUrlResponse

func (GetFollowerJpd200JSONResponse) VisitGetFollowerJpdResponse

func (response GetFollowerJpd200JSONResponse) VisitGetFollowerJpdResponse(w http.ResponseWriter) error

type GetFollowerJpd401JSONResponse

type GetFollowerJpd401JSONResponse ErrorResponse

func (GetFollowerJpd401JSONResponse) VisitGetFollowerJpdResponse

func (response GetFollowerJpd401JSONResponse) VisitGetFollowerJpdResponse(w http.ResponseWriter) error

type GetFollowerJpd403JSONResponse

type GetFollowerJpd403JSONResponse ErrorResponse

func (GetFollowerJpd403JSONResponse) VisitGetFollowerJpdResponse

func (response GetFollowerJpd403JSONResponse) VisitGetFollowerJpdResponse(w http.ResponseWriter) error

type GetFollowerJpd404JSONResponse

type GetFollowerJpd404JSONResponse ErrorResponse

func (GetFollowerJpd404JSONResponse) VisitGetFollowerJpdResponse

func (response GetFollowerJpd404JSONResponse) VisitGetFollowerJpdResponse(w http.ResponseWriter) error

type GetFollowerJpd500JSONResponse

type GetFollowerJpd500JSONResponse ErrorResponse

func (GetFollowerJpd500JSONResponse) VisitGetFollowerJpdResponse

func (response GetFollowerJpd500JSONResponse) VisitGetFollowerJpdResponse(w http.ResponseWriter) error

type GetFollowerJpdRequestObject

type GetFollowerJpdRequestObject struct {
	Id JpdId `json:"id"`
}

type GetFollowerJpdResponseObject

type GetFollowerJpdResponseObject interface {
	VisitGetFollowerJpdResponse(w http.ResponseWriter) error
}

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type JpdId

type JpdId = string

JpdId defines model for JpdId.

type JpdResponse

type JpdResponse struct {
	// Id Optional within this object. The follower id.
	Id *string `json:"id,omitempty"`

	// Url Optional within this object. The follower's base URL.
	Url *string `json:"url,omitempty"`
}

JpdResponse A follower instance as listed.

type JpdUrlResponse

type JpdUrlResponse struct {
	// Url Optional within this object. The follower's base URL.
	Url *string `json:"url,omitempty"`
}

JpdUrlResponse A single follower instance.

type ListFederations200JSONResponse

type ListFederations200JSONResponse []FederationSummary

func (ListFederations200JSONResponse) VisitListFederationsResponse

func (response ListFederations200JSONResponse) VisitListFederationsResponse(w http.ResponseWriter) error

type ListFederations401JSONResponse

type ListFederations401JSONResponse ErrorResponse

func (ListFederations401JSONResponse) VisitListFederationsResponse

func (response ListFederations401JSONResponse) VisitListFederationsResponse(w http.ResponseWriter) error

type ListFederations403JSONResponse

type ListFederations403JSONResponse ErrorResponse

func (ListFederations403JSONResponse) VisitListFederationsResponse

func (response ListFederations403JSONResponse) VisitListFederationsResponse(w http.ResponseWriter) error

type ListFederations500JSONResponse

type ListFederations500JSONResponse ErrorResponse

func (ListFederations500JSONResponse) VisitListFederationsResponse

func (response ListFederations500JSONResponse) VisitListFederationsResponse(w http.ResponseWriter) error

type ListFederationsRequestObject

type ListFederationsRequestObject struct {
}

type ListFederationsResponseObject

type ListFederationsResponseObject interface {
	VisitListFederationsResponse(w http.ResponseWriter) error
}

type ListFollowerJpds200JSONResponse

type ListFollowerJpds200JSONResponse []JpdResponse

func (ListFollowerJpds200JSONResponse) VisitListFollowerJpdsResponse

func (response ListFollowerJpds200JSONResponse) VisitListFollowerJpdsResponse(w http.ResponseWriter) error

type ListFollowerJpds401JSONResponse

type ListFollowerJpds401JSONResponse ErrorResponse

func (ListFollowerJpds401JSONResponse) VisitListFollowerJpdsResponse

func (response ListFollowerJpds401JSONResponse) VisitListFollowerJpdsResponse(w http.ResponseWriter) error

type ListFollowerJpds403JSONResponse

type ListFollowerJpds403JSONResponse ErrorResponse

func (ListFollowerJpds403JSONResponse) VisitListFollowerJpdsResponse

func (response ListFollowerJpds403JSONResponse) VisitListFollowerJpdsResponse(w http.ResponseWriter) error

type ListFollowerJpds500JSONResponse

type ListFollowerJpds500JSONResponse ErrorResponse

func (ListFollowerJpds500JSONResponse) VisitListFollowerJpdsResponse

func (response ListFollowerJpds500JSONResponse) VisitListFollowerJpdsResponse(w http.ResponseWriter) error

type ListFollowerJpdsRequestObject

type ListFollowerJpdsRequestObject struct {
}

type ListFollowerJpdsResponseObject

type ListFollowerJpdsResponseObject interface {
	VisitListFollowerJpdsResponse(w http.ResponseWriter) error
}

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type ServerInterface

type ServerInterface interface {
	// ListFederations List platform federations
	// (GET /api/v1/federations)
	ListFederations(w http.ResponseWriter, r *http.Request)
	// CreateFederation Create a platform federation
	// (POST /api/v1/federations)
	CreateFederation(w http.ResponseWriter, r *http.Request)
	// DeleteFederation Delete a platform federation
	// (DELETE /api/v1/federations/{id})
	DeleteFederation(w http.ResponseWriter, r *http.Request, id FederationId)
	// GetFederation Get a platform federation
	// (GET /api/v1/federations/{id})
	GetFederation(w http.ResponseWriter, r *http.Request, id FederationId)
	// ListFollowerJpds List follower instances
	// (GET /api/v1/jpd)
	ListFollowerJpds(w http.ResponseWriter, r *http.Request)
	// AddFollowerJpd Add a follower instance
	// (POST /api/v1/jpd)
	AddFollowerJpd(w http.ResponseWriter, r *http.Request)
	// DeleteFollowerJpd Remove a follower instance
	// (DELETE /api/v1/jpd/{id})
	DeleteFollowerJpd(w http.ResponseWriter, r *http.Request, id JpdId)
	// GetFollowerJpd Get a follower instance
	// (GET /api/v1/jpd/{id})
	GetFollowerJpd(w http.ResponseWriter, r *http.Request, id JpdId)
	// UpdateFollowerJpd Update a follower instance
	// (PUT /api/v1/jpd/{id})
	UpdateFollowerJpd(w http.ResponseWriter, r *http.Request, id JpdId)
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

func NewStrictHandlerWithOptions

func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) AddFollowerJpd

func (siw *ServerInterfaceWrapper) AddFollowerJpd(w http.ResponseWriter, r *http.Request)

AddFollowerJpd operation middleware

func (*ServerInterfaceWrapper) CreateFederation

func (siw *ServerInterfaceWrapper) CreateFederation(w http.ResponseWriter, r *http.Request)

CreateFederation operation middleware

func (*ServerInterfaceWrapper) DeleteFederation

func (siw *ServerInterfaceWrapper) DeleteFederation(w http.ResponseWriter, r *http.Request)

DeleteFederation operation middleware

func (*ServerInterfaceWrapper) DeleteFollowerJpd

func (siw *ServerInterfaceWrapper) DeleteFollowerJpd(w http.ResponseWriter, r *http.Request)

DeleteFollowerJpd operation middleware

func (*ServerInterfaceWrapper) GetFederation

func (siw *ServerInterfaceWrapper) GetFederation(w http.ResponseWriter, r *http.Request)

GetFederation operation middleware

func (*ServerInterfaceWrapper) GetFollowerJpd

func (siw *ServerInterfaceWrapper) GetFollowerJpd(w http.ResponseWriter, r *http.Request)

GetFollowerJpd operation middleware

func (*ServerInterfaceWrapper) ListFederations

func (siw *ServerInterfaceWrapper) ListFederations(w http.ResponseWriter, r *http.Request)

ListFederations operation middleware

func (*ServerInterfaceWrapper) ListFollowerJpds

func (siw *ServerInterfaceWrapper) ListFollowerJpds(w http.ResponseWriter, r *http.Request)

ListFollowerJpds operation middleware

func (*ServerInterfaceWrapper) UpdateFollowerJpd

func (siw *ServerInterfaceWrapper) UpdateFollowerJpd(w http.ResponseWriter, r *http.Request)

UpdateFollowerJpd operation middleware

type StrictHTTPServerOptions

type StrictHTTPServerOptions struct {
	RequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)
	ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictHandlerFunc

type StrictHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, request any) (any, error)

type StrictMiddlewareFunc

type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc

type StrictServerInterface

type StrictServerInterface interface {
	// ListFederations List platform federations
	// (GET /api/v1/federations)
	ListFederations(ctx context.Context, request ListFederationsRequestObject) (ListFederationsResponseObject, error)
	// CreateFederation Create a platform federation
	// (POST /api/v1/federations)
	CreateFederation(ctx context.Context, request CreateFederationRequestObject) (CreateFederationResponseObject, error)
	// DeleteFederation Delete a platform federation
	// (DELETE /api/v1/federations/{id})
	DeleteFederation(ctx context.Context, request DeleteFederationRequestObject) (DeleteFederationResponseObject, error)
	// GetFederation Get a platform federation
	// (GET /api/v1/federations/{id})
	GetFederation(ctx context.Context, request GetFederationRequestObject) (GetFederationResponseObject, error)
	// ListFollowerJpds List follower instances
	// (GET /api/v1/jpd)
	ListFollowerJpds(ctx context.Context, request ListFollowerJpdsRequestObject) (ListFollowerJpdsResponseObject, error)
	// AddFollowerJpd Add a follower instance
	// (POST /api/v1/jpd)
	AddFollowerJpd(ctx context.Context, request AddFollowerJpdRequestObject) (AddFollowerJpdResponseObject, error)
	// DeleteFollowerJpd Remove a follower instance
	// (DELETE /api/v1/jpd/{id})
	DeleteFollowerJpd(ctx context.Context, request DeleteFollowerJpdRequestObject) (DeleteFollowerJpdResponseObject, error)
	// GetFollowerJpd Get a follower instance
	// (GET /api/v1/jpd/{id})
	GetFollowerJpd(ctx context.Context, request GetFollowerJpdRequestObject) (GetFollowerJpdResponseObject, error)
	// UpdateFollowerJpd Update a follower instance
	// (PUT /api/v1/jpd/{id})
	UpdateFollowerJpd(ctx context.Context, request UpdateFollowerJpdRequestObject) (UpdateFollowerJpdResponseObject, error)
}

StrictServerInterface represents all server handlers.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type Unimplemented

type Unimplemented struct{}

func (Unimplemented) AddFollowerJpd

func (_ Unimplemented) AddFollowerJpd(w http.ResponseWriter, r *http.Request)

AddFollowerJpd Add a follower instance (POST /api/v1/jpd)

func (Unimplemented) CreateFederation

func (_ Unimplemented) CreateFederation(w http.ResponseWriter, r *http.Request)

CreateFederation Create a platform federation (POST /api/v1/federations)

func (Unimplemented) DeleteFederation

func (_ Unimplemented) DeleteFederation(w http.ResponseWriter, r *http.Request, id FederationId)

DeleteFederation Delete a platform federation (DELETE /api/v1/federations/{id})

func (Unimplemented) DeleteFollowerJpd

func (_ Unimplemented) DeleteFollowerJpd(w http.ResponseWriter, r *http.Request, id JpdId)

DeleteFollowerJpd Remove a follower instance (DELETE /api/v1/jpd/{id})

func (Unimplemented) GetFederation

func (_ Unimplemented) GetFederation(w http.ResponseWriter, r *http.Request, id FederationId)

GetFederation Get a platform federation (GET /api/v1/federations/{id})

func (Unimplemented) GetFollowerJpd

func (_ Unimplemented) GetFollowerJpd(w http.ResponseWriter, r *http.Request, id JpdId)

GetFollowerJpd Get a follower instance (GET /api/v1/jpd/{id})

func (Unimplemented) ListFederations

func (_ Unimplemented) ListFederations(w http.ResponseWriter, r *http.Request)

ListFederations List platform federations (GET /api/v1/federations)

func (Unimplemented) ListFollowerJpds

func (_ Unimplemented) ListFollowerJpds(w http.ResponseWriter, r *http.Request)

ListFollowerJpds List follower instances (GET /api/v1/jpd)

func (Unimplemented) UpdateFollowerJpd

func (_ Unimplemented) UpdateFollowerJpd(w http.ResponseWriter, r *http.Request, id JpdId)

UpdateFollowerJpd Update a follower instance (PUT /api/v1/jpd/{id})

type UnimplementedStrict

type UnimplementedStrict struct{}

UnimplementedStrict answers 501 for every strict operation. Services embed it and override the operations they implement.

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type UpdateFollowerJpd204Response

type UpdateFollowerJpd204Response struct {
}

func (UpdateFollowerJpd204Response) VisitUpdateFollowerJpdResponse

func (response UpdateFollowerJpd204Response) VisitUpdateFollowerJpdResponse(w http.ResponseWriter) error

type UpdateFollowerJpd400JSONResponse

type UpdateFollowerJpd400JSONResponse ErrorResponse

func (UpdateFollowerJpd400JSONResponse) VisitUpdateFollowerJpdResponse

func (response UpdateFollowerJpd400JSONResponse) VisitUpdateFollowerJpdResponse(w http.ResponseWriter) error

type UpdateFollowerJpd401JSONResponse

type UpdateFollowerJpd401JSONResponse ErrorResponse

func (UpdateFollowerJpd401JSONResponse) VisitUpdateFollowerJpdResponse

func (response UpdateFollowerJpd401JSONResponse) VisitUpdateFollowerJpdResponse(w http.ResponseWriter) error

type UpdateFollowerJpd403JSONResponse

type UpdateFollowerJpd403JSONResponse ErrorResponse

func (UpdateFollowerJpd403JSONResponse) VisitUpdateFollowerJpdResponse

func (response UpdateFollowerJpd403JSONResponse) VisitUpdateFollowerJpdResponse(w http.ResponseWriter) error

type UpdateFollowerJpd404JSONResponse

type UpdateFollowerJpd404JSONResponse ErrorResponse

func (UpdateFollowerJpd404JSONResponse) VisitUpdateFollowerJpdResponse

func (response UpdateFollowerJpd404JSONResponse) VisitUpdateFollowerJpdResponse(w http.ResponseWriter) error

type UpdateFollowerJpd500JSONResponse

type UpdateFollowerJpd500JSONResponse ErrorResponse

func (UpdateFollowerJpd500JSONResponse) VisitUpdateFollowerJpdResponse

func (response UpdateFollowerJpd500JSONResponse) VisitUpdateFollowerJpdResponse(w http.ResponseWriter) error

type UpdateFollowerJpdJSONRequestBody

type UpdateFollowerJpdJSONRequestBody = UpdateJpdRequest

UpdateFollowerJpdJSONRequestBody defines body for UpdateFollowerJpd for application/json ContentType.

type UpdateFollowerJpdRequestObject

type UpdateFollowerJpdRequestObject struct {
	Id   JpdId `json:"id"`
	Body *UpdateFollowerJpdJSONRequestBody
}

type UpdateFollowerJpdResponseObject

type UpdateFollowerJpdResponseObject interface {
	VisitUpdateFollowerJpdResponse(w http.ResponseWriter) error
}

type UpdateJpdRequest

type UpdateJpdRequest struct {
	// PairingToken Required within this object. Write-only. A new platform-federation pairing token from the follower; the previous trust keys are replaced once it is accepted.
	PairingToken *string `json:"pairing_token,omitempty"`

	// Url Required within this object. The follower's base URL.
	Url string `json:"url"`
}

UpdateJpdRequest Replacement URL and a fresh pairing token for an existing follower, used to move a follower or rotate trust. Both fields are required even when only one changes.

Jump to

Keyboard shortcuts

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