Documentation
¶
Overview ¶
Package pfed is the generated strict chi server for the Platform federation REST API: federations of peer instances and their membership, served under /pfed.
Role ¶
platform layer, in platform/gen, where make generate writes the strict server of every specification. oapi-codegen v2.8.0 writes server.gen.go, the server with its models and embedded document, from api/pfed.openapi.yaml with api/oapi-server-pfed.yaml; tools/stubgen writes unimplemented.gen.go from its strict interface. This doc.go is the one hand-written file, and make generate leaves it alone. In the target layout the federation module's HTTP adapters implement the interface (P14), beside the topology server of platform/gen/grid, as a partial strict server composed over UnimplementedStrict (decision 0044). Of this repository's packages it imports only platform/httpkit/apierror.
Inputs ¶
- api/pfed.openapi.yaml, which make bundle builds from the federation fragment in api/src/pfed. No operation in it is tagged handwritten, so the generated mux serves every one.
- At run time: an implementation of StrictServerInterface and the StrictHTTPServerOptions error handlers, for NewStrictHandlerWithOptions; the ChiServerOptions (BaseURL, BaseRouter, ErrorHandlerFunc), for HandlerWithOptions.
Outputs ¶
- StrictServerInterface, one method per operation with its request and response objects: list, create, read and delete federations, and list, add, read, update and remove the follower instances (JPDs) of one. NewStrictHandler and NewStrictHandlerWithOptions adapt an implementation to the generated chi ServerInterface, and Handler, HandlerFromMux, HandlerFromMuxWithBaseURL and HandlerWithOptions mount that on a chi router.
- The models of the request and response bodies, with Valid on each enum (the entity types a federation covers among them), and the embedded document (GetSpec, GetSpecJSON and PathToRawSpec).
- UnimplementedStrict: every method returns apierror.ErrNotImplemented, which the server renders as a 501 in the platform federation envelope, the status as an integer code and a message. A type that embeds it satisfies StrictServerInterface, and each operation the type implements shadows its stub.
Invariants ¶
- The *.gen.go files are never edited by hand: make generate rewrites both, and make verify-generate fails while either differs from what the document gives (decision 0002). A change goes into api/src/pfed or api/oapi-server-pfed.yaml.
- Servers embed UnimplementedStrict, not oapi-codegen's Unimplemented, which serves the non-strict ServerInterface with a bare 501 and no error envelope.
References ¶
- Decision 0002: docs/research/decisions/0002-spec-first-flat-crud-handwritten-item-paths.md.
- Decision 0025: docs/research/decisions/0025-platform-federation-and-topology.md.
- Decision 0044: docs/research/decisions/0044-modular-monolith-migration.md ("Composition and HTTP").
- Research 16: docs/research/16-enterprise-products.md.
- Target layout: docs/research/architecture-options/5-modular-monolith.md, lines 164 and 165 (platform/gen), line 814 (the grid and pfed row of the generated code table), lines 819 to 823 (composition by embedding) and line 1020 (the mapping row).
- Plan: docs/implementation/plan.md#p1b-enterprise-products-specs-and-model, tasks 1 and 3; #p14-platform-federation-and-topology; #p9d-modular-monolith-migration, epic WEB (https://github.com/weaveplatform/artifactweave/issues/944).
- https://github.com/weaveplatform/artifactweave/issues/1001
Status ¶
Implemented P1b, which brought platform federation and topology into scope with this document and its generated server (plan P1b, tasks 1 and 3); the files arrived in the baseline commit of phases P0 to P2. The rewording of the served contract (#434) changed its descriptions, and the 7.x envelope fix (#480) made the code of its error body the integer status. The server's pfed service embeds UnimplementedStrict and implements nothing, so every operation answers 501 until P14 builds platform federation. Moved here in P9d.
Testing ¶
The package has no tests of its own, and .testcoverage.yml leaves it out of the coverage gate as generated code. The server's tests cover it:
- TestAccHandwrittenRoutesNotGenerated: the generated mux holds every operation of the document.
- TestAccUnimplementedOperationsAnswer501: every operation answers 501 with the platform federation body the envelope table gives.
- TestAccAPIReliabilityLedger: the API reliability ledger, which names this package's unimplemented.gen.go as the handler of every operation, is current; make api-ledger rewrites it.
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 ¶
- func GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AddFollowerJpd201JSONResponse
- type AddFollowerJpd400JSONResponse
- type AddFollowerJpd401JSONResponse
- type AddFollowerJpd403JSONResponse
- type AddFollowerJpd409JSONResponse
- type AddFollowerJpd429JSONResponse
- type AddFollowerJpd500JSONResponse
- type AddFollowerJpd503JSONResponse
- type AddFollowerJpdJSONRequestBody
- type AddFollowerJpdRequestObject
- type AddFollowerJpdResponseObject
- type ChiServerOptions
- type ConnectionGroup
- type CreateFederation201JSONResponse
- type CreateFederation400JSONResponse
- type CreateFederation401JSONResponse
- type CreateFederation403JSONResponse
- type CreateFederation409JSONResponse
- type CreateFederation429JSONResponse
- type CreateFederation500JSONResponse
- type CreateFederation503JSONResponse
- type CreateFederationJSONRequestBody
- type CreateFederationRequest
- type CreateFederationRequestObject
- type CreateFederationResponseObject
- type CreateJpdRequest
- type DeleteFederation204Response
- type DeleteFederation401JSONResponse
- type DeleteFederation403JSONResponse
- type DeleteFederation404JSONResponse
- type DeleteFederation429JSONResponse
- type DeleteFederation500JSONResponse
- type DeleteFederation503JSONResponse
- type DeleteFederationRequestObject
- type DeleteFederationResponseObject
- type DeleteFollowerJpd204Response
- type DeleteFollowerJpd401JSONResponse
- type DeleteFollowerJpd403JSONResponse
- type DeleteFollowerJpd404JSONResponse
- type DeleteFollowerJpd429JSONResponse
- type DeleteFollowerJpd500JSONResponse
- type DeleteFollowerJpd503JSONResponse
- type DeleteFollowerJpdRequestObject
- type DeleteFollowerJpdResponseObject
- type EntityConfig
- type EntityConfigType
- type ErrorResponse
- type FederationDetails
- type FederationId
- type FederationSummary
- type GetFederation200JSONResponse
- type GetFederation401JSONResponse
- type GetFederation403JSONResponse
- type GetFederation404JSONResponse
- type GetFederation429JSONResponse
- type GetFederation500JSONResponse
- type GetFederation503JSONResponse
- type GetFederationRequestObject
- type GetFederationResponseObject
- type GetFollowerJpd200JSONResponse
- type GetFollowerJpd401JSONResponse
- type GetFollowerJpd403JSONResponse
- type GetFollowerJpd404JSONResponse
- type GetFollowerJpd429JSONResponse
- type GetFollowerJpd500JSONResponse
- type GetFollowerJpd503JSONResponse
- type GetFollowerJpdRequestObject
- type GetFollowerJpdResponseObject
- type IdempotencyKey
- type InvalidParamFormatError
- type JpdId
- type JpdResponse
- type JpdUrlResponse
- type ListFederations200JSONResponse
- type ListFederations401JSONResponse
- type ListFederations403JSONResponse
- type ListFederations429JSONResponse
- type ListFederations500JSONResponse
- type ListFederations503JSONResponse
- type ListFederationsRequestObject
- type ListFederationsResponseObject
- type ListFollowerJpds200JSONResponse
- type ListFollowerJpds401JSONResponse
- type ListFollowerJpds403JSONResponse
- type ListFollowerJpds429JSONResponse
- type ListFollowerJpds500JSONResponse
- type ListFollowerJpds503JSONResponse
- type ListFollowerJpdsRequestObject
- type ListFollowerJpdsResponseObject
- type MiddlewareFunc
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AddFollowerJpd(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateFederation(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteFederation(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteFollowerJpd(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetFederation(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetFollowerJpd(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListFederations(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListFollowerJpds(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateFollowerJpd(w http.ResponseWriter, r *http.Request)
- type ServiceUnavailable
- type ServiceUnavailableJSONResponse
- type ServiceUnavailableResponseHeaders
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TooManyRequests
- type TooManyRequestsJSONResponse
- type TooManyRequestsResponseHeaders
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) AddFollowerJpd(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateFederation(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) DeleteFederation(w http.ResponseWriter, r *http.Request, id FederationId)
- func (_ Unimplemented) DeleteFollowerJpd(w http.ResponseWriter, r *http.Request, id JpdId)
- func (_ Unimplemented) GetFederation(w http.ResponseWriter, r *http.Request, id FederationId)
- func (_ Unimplemented) GetFollowerJpd(w http.ResponseWriter, r *http.Request, id JpdId)
- func (_ Unimplemented) ListFederations(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListFollowerJpds(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) UpdateFollowerJpd(w http.ResponseWriter, r *http.Request, id JpdId)
- type UnimplementedStrict
- func (UnimplementedStrict) AddFollowerJpd(context.Context, AddFollowerJpdRequestObject) (AddFollowerJpdResponseObject, error)
- func (UnimplementedStrict) CreateFederation(context.Context, CreateFederationRequestObject) (CreateFederationResponseObject, error)
- func (UnimplementedStrict) DeleteFederation(context.Context, DeleteFederationRequestObject) (DeleteFederationResponseObject, error)
- func (UnimplementedStrict) DeleteFollowerJpd(context.Context, DeleteFollowerJpdRequestObject) (DeleteFollowerJpdResponseObject, error)
- func (UnimplementedStrict) GetFederation(context.Context, GetFederationRequestObject) (GetFederationResponseObject, error)
- func (UnimplementedStrict) GetFollowerJpd(context.Context, GetFollowerJpdRequestObject) (GetFollowerJpdResponseObject, error)
- func (UnimplementedStrict) ListFederations(context.Context, ListFederationsRequestObject) (ListFederationsResponseObject, error)
- func (UnimplementedStrict) ListFollowerJpds(context.Context, ListFollowerJpdsRequestObject) (ListFollowerJpdsResponseObject, error)
- func (UnimplementedStrict) UpdateFollowerJpd(context.Context, UpdateFollowerJpdRequestObject) (UpdateFollowerJpdResponseObject, error)
- type UnmarshalingParamError
- type UpdateFollowerJpd204Response
- type UpdateFollowerJpd400JSONResponse
- type UpdateFollowerJpd401JSONResponse
- type UpdateFollowerJpd403JSONResponse
- type UpdateFollowerJpd404JSONResponse
- type UpdateFollowerJpd429JSONResponse
- type UpdateFollowerJpd500JSONResponse
- type UpdateFollowerJpd503JSONResponse
- type UpdateFollowerJpdJSONRequestBody
- type UpdateFollowerJpdRequestObject
- type UpdateFollowerJpdResponseObject
- type UpdateJpdRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
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 ¶
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 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 HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
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 AddFollowerJpd429JSONResponse ¶
type AddFollowerJpd429JSONResponse struct{ TooManyRequestsJSONResponse }
func (AddFollowerJpd429JSONResponse) VisitAddFollowerJpdResponse ¶
func (response AddFollowerJpd429JSONResponse) VisitAddFollowerJpdResponse(w http.ResponseWriter) error
type AddFollowerJpd500JSONResponse ¶
type AddFollowerJpd500JSONResponse ErrorResponse
func (AddFollowerJpd500JSONResponse) VisitAddFollowerJpdResponse ¶
func (response AddFollowerJpd500JSONResponse) VisitAddFollowerJpdResponse(w http.ResponseWriter) error
type AddFollowerJpd503JSONResponse ¶
func (AddFollowerJpd503JSONResponse) VisitAddFollowerJpdResponse ¶
func (response AddFollowerJpd503JSONResponse) 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 CreateFederation429JSONResponse ¶
type CreateFederation429JSONResponse struct{ TooManyRequestsJSONResponse }
func (CreateFederation429JSONResponse) VisitCreateFederationResponse ¶
func (response CreateFederation429JSONResponse) VisitCreateFederationResponse(w http.ResponseWriter) error
type CreateFederation500JSONResponse ¶
type CreateFederation500JSONResponse ErrorResponse
func (CreateFederation500JSONResponse) VisitCreateFederationResponse ¶
func (response CreateFederation500JSONResponse) VisitCreateFederationResponse(w http.ResponseWriter) error
type CreateFederation503JSONResponse ¶
func (CreateFederation503JSONResponse) VisitCreateFederationResponse ¶
func (response CreateFederation503JSONResponse) 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 DeleteFederation429JSONResponse ¶
type DeleteFederation429JSONResponse struct{ TooManyRequestsJSONResponse }
func (DeleteFederation429JSONResponse) VisitDeleteFederationResponse ¶
func (response DeleteFederation429JSONResponse) VisitDeleteFederationResponse(w http.ResponseWriter) error
type DeleteFederation500JSONResponse ¶
type DeleteFederation500JSONResponse ErrorResponse
func (DeleteFederation500JSONResponse) VisitDeleteFederationResponse ¶
func (response DeleteFederation500JSONResponse) VisitDeleteFederationResponse(w http.ResponseWriter) error
type DeleteFederation503JSONResponse ¶
func (DeleteFederation503JSONResponse) VisitDeleteFederationResponse ¶
func (response DeleteFederation503JSONResponse) 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 DeleteFollowerJpd429JSONResponse ¶
type DeleteFollowerJpd429JSONResponse struct{ TooManyRequestsJSONResponse }
func (DeleteFollowerJpd429JSONResponse) VisitDeleteFollowerJpdResponse ¶
func (response DeleteFollowerJpd429JSONResponse) VisitDeleteFollowerJpdResponse(w http.ResponseWriter) error
type DeleteFollowerJpd500JSONResponse ¶
type DeleteFollowerJpd500JSONResponse ErrorResponse
func (DeleteFollowerJpd500JSONResponse) VisitDeleteFollowerJpdResponse ¶
func (response DeleteFollowerJpd500JSONResponse) VisitDeleteFollowerJpdResponse(w http.ResponseWriter) error
type DeleteFollowerJpd503JSONResponse ¶
func (DeleteFollowerJpd503JSONResponse) VisitDeleteFollowerJpdResponse ¶
func (response DeleteFollowerJpd503JSONResponse) 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 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 GetFederation429JSONResponse ¶
type GetFederation429JSONResponse struct{ TooManyRequestsJSONResponse }
func (GetFederation429JSONResponse) VisitGetFederationResponse ¶
func (response GetFederation429JSONResponse) VisitGetFederationResponse(w http.ResponseWriter) error
type GetFederation500JSONResponse ¶
type GetFederation500JSONResponse ErrorResponse
func (GetFederation500JSONResponse) VisitGetFederationResponse ¶
func (response GetFederation500JSONResponse) VisitGetFederationResponse(w http.ResponseWriter) error
type GetFederation503JSONResponse ¶
func (GetFederation503JSONResponse) VisitGetFederationResponse ¶
func (response GetFederation503JSONResponse) 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 GetFollowerJpd429JSONResponse ¶
type GetFollowerJpd429JSONResponse struct{ TooManyRequestsJSONResponse }
func (GetFollowerJpd429JSONResponse) VisitGetFollowerJpdResponse ¶
func (response GetFollowerJpd429JSONResponse) VisitGetFollowerJpdResponse(w http.ResponseWriter) error
type GetFollowerJpd500JSONResponse ¶
type GetFollowerJpd500JSONResponse ErrorResponse
func (GetFollowerJpd500JSONResponse) VisitGetFollowerJpdResponse ¶
func (response GetFollowerJpd500JSONResponse) VisitGetFollowerJpdResponse(w http.ResponseWriter) error
type GetFollowerJpd503JSONResponse ¶
func (GetFollowerJpd503JSONResponse) VisitGetFollowerJpdResponse ¶
func (response GetFollowerJpd503JSONResponse) 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 ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
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 ListFederations429JSONResponse ¶
type ListFederations429JSONResponse struct{ TooManyRequestsJSONResponse }
func (ListFederations429JSONResponse) VisitListFederationsResponse ¶
func (response ListFederations429JSONResponse) VisitListFederationsResponse(w http.ResponseWriter) error
type ListFederations500JSONResponse ¶
type ListFederations500JSONResponse ErrorResponse
func (ListFederations500JSONResponse) VisitListFederationsResponse ¶
func (response ListFederations500JSONResponse) VisitListFederationsResponse(w http.ResponseWriter) error
type ListFederations503JSONResponse ¶
func (ListFederations503JSONResponse) VisitListFederationsResponse ¶
func (response ListFederations503JSONResponse) 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 ListFollowerJpds429JSONResponse ¶
type ListFollowerJpds429JSONResponse struct{ TooManyRequestsJSONResponse }
func (ListFollowerJpds429JSONResponse) VisitListFollowerJpdsResponse ¶
func (response ListFollowerJpds429JSONResponse) VisitListFollowerJpdsResponse(w http.ResponseWriter) error
type ListFollowerJpds500JSONResponse ¶
type ListFollowerJpds500JSONResponse ErrorResponse
func (ListFollowerJpds500JSONResponse) VisitListFollowerJpdsResponse ¶
func (response ListFollowerJpds500JSONResponse) VisitListFollowerJpdsResponse(w http.ResponseWriter) error
type ListFollowerJpds503JSONResponse ¶
func (ListFollowerJpds503JSONResponse) VisitListFollowerJpdsResponse ¶
func (response ListFollowerJpds503JSONResponse) VisitListFollowerJpdsResponse(w http.ResponseWriter) error
type ListFollowerJpdsRequestObject ¶
type ListFollowerJpdsRequestObject struct {
}
type ListFollowerJpdsResponseObject ¶
type ListFollowerJpdsResponseObject interface {
VisitListFollowerJpdsResponse(w http.ResponseWriter) error
}
type RequiredHeaderError ¶
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 ServiceUnavailable ¶
type ServiceUnavailable = ErrorResponse
ServiceUnavailable The flat error envelope used by /pfed.
type ServiceUnavailableJSONResponse ¶
type ServiceUnavailableJSONResponse struct {
}
type ServiceUnavailableResponseHeaders ¶
type ServiceUnavailableResponseHeaders struct {
}
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 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 TooManyRequests ¶
type TooManyRequests = ErrorResponse
TooManyRequests The flat error envelope used by /pfed.
type TooManyRequestsJSONResponse ¶
type TooManyRequestsJSONResponse struct {
Body ErrorResponse
Headers TooManyRequestsResponseHeaders
}
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
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.
func (UnimplementedStrict) AddFollowerJpd ¶
func (UnimplementedStrict) AddFollowerJpd(context.Context, AddFollowerJpdRequestObject) (AddFollowerJpdResponseObject, error)
func (UnimplementedStrict) CreateFederation ¶
func (UnimplementedStrict) CreateFederation(context.Context, CreateFederationRequestObject) (CreateFederationResponseObject, error)
func (UnimplementedStrict) DeleteFederation ¶
func (UnimplementedStrict) DeleteFederation(context.Context, DeleteFederationRequestObject) (DeleteFederationResponseObject, error)
func (UnimplementedStrict) DeleteFollowerJpd ¶
func (UnimplementedStrict) DeleteFollowerJpd(context.Context, DeleteFollowerJpdRequestObject) (DeleteFollowerJpdResponseObject, error)
func (UnimplementedStrict) GetFederation ¶
func (UnimplementedStrict) GetFederation(context.Context, GetFederationRequestObject) (GetFederationResponseObject, error)
func (UnimplementedStrict) GetFollowerJpd ¶
func (UnimplementedStrict) GetFollowerJpd(context.Context, GetFollowerJpdRequestObject) (GetFollowerJpdResponseObject, error)
func (UnimplementedStrict) ListFederations ¶
func (UnimplementedStrict) ListFederations(context.Context, ListFederationsRequestObject) (ListFederationsResponseObject, error)
func (UnimplementedStrict) ListFollowerJpds ¶
func (UnimplementedStrict) ListFollowerJpds(context.Context, ListFollowerJpdsRequestObject) (ListFollowerJpdsResponseObject, error)
func (UnimplementedStrict) UpdateFollowerJpd ¶
func (UnimplementedStrict) UpdateFollowerJpd(context.Context, UpdateFollowerJpdRequestObject) (UpdateFollowerJpdResponseObject, error)
type UnmarshalingParamError ¶
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 UpdateFollowerJpd429JSONResponse ¶
type UpdateFollowerJpd429JSONResponse struct{ TooManyRequestsJSONResponse }
func (UpdateFollowerJpd429JSONResponse) VisitUpdateFollowerJpdResponse ¶
func (response UpdateFollowerJpd429JSONResponse) VisitUpdateFollowerJpdResponse(w http.ResponseWriter) error
type UpdateFollowerJpd500JSONResponse ¶
type UpdateFollowerJpd500JSONResponse ErrorResponse
func (UpdateFollowerJpd500JSONResponse) VisitUpdateFollowerJpdResponse ¶
func (response UpdateFollowerJpd500JSONResponse) VisitUpdateFollowerJpdResponse(w http.ResponseWriter) error
type UpdateFollowerJpd503JSONResponse ¶
func (UpdateFollowerJpd503JSONResponse) VisitUpdateFollowerJpdResponse ¶
func (response UpdateFollowerJpd503JSONResponse) 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.