admin

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

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

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwagger

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

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func NewGetJoinTokenRequest

func NewGetJoinTokenRequest(server string, trustDomainName externalRef0.TrustDomainName, params *GetJoinTokenParams) (*http.Request, error)

NewGetJoinTokenRequest generates requests for GetJoinToken

func NewGetRelationshipByIDRequest

func NewGetRelationshipByIDRequest(server string, relationshipID externalRef0.UUID) (*http.Request, error)

NewGetRelationshipByIDRequest generates requests for GetRelationshipByID

func NewGetRelationshipsRequest

func NewGetRelationshipsRequest(server string, params *GetRelationshipsParams) (*http.Request, error)

NewGetRelationshipsRequest generates requests for GetRelationships

func NewGetTrustDomainByNameRequest

func NewGetTrustDomainByNameRequest(server string, trustDomainName externalRef0.TrustDomainName) (*http.Request, error)

NewGetTrustDomainByNameRequest generates requests for GetTrustDomainByName

func NewPutRelationshipRequest

func NewPutRelationshipRequest(server string, body PutRelationshipJSONRequestBody) (*http.Request, error)

NewPutRelationshipRequest calls the generic PutRelationship builder with application/json body

func NewPutRelationshipRequestWithBody

func NewPutRelationshipRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPutRelationshipRequestWithBody generates requests for PutRelationship with any type of body

func NewPutTrustDomainByNameRequest

func NewPutTrustDomainByNameRequest(server string, trustDomainName externalRef0.TrustDomainName, body PutTrustDomainByNameJSONRequestBody) (*http.Request, error)

NewPutTrustDomainByNameRequest calls the generic PutTrustDomainByName builder with application/json body

func NewPutTrustDomainByNameRequestWithBody

func NewPutTrustDomainByNameRequestWithBody(server string, trustDomainName externalRef0.TrustDomainName, contentType string, body io.Reader) (*http.Request, error)

NewPutTrustDomainByNameRequestWithBody generates requests for PutTrustDomainByName with any type of body

func NewPutTrustDomainRequest

func NewPutTrustDomainRequest(server string, body PutTrustDomainJSONRequestBody) (*http.Request, error)

NewPutTrustDomainRequest calls the generic PutTrustDomain builder with application/json body

func NewPutTrustDomainRequestWithBody

func NewPutTrustDomainRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPutTrustDomainRequestWithBody generates requests for PutTrustDomain with any type of body

func PathToRawSpec

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

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

func RegisterHandlers

func RegisterHandlers(router EchoRouter, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

func RegisterHandlersWithBaseURL

func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)

Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) GetJoinToken

func (c *Client) GetJoinToken(ctx context.Context, trustDomainName externalRef0.TrustDomainName, params *GetJoinTokenParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRelationshipByID

func (c *Client) GetRelationshipByID(ctx context.Context, relationshipID externalRef0.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRelationships

func (c *Client) GetRelationships(ctx context.Context, params *GetRelationshipsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTrustDomainByName

func (c *Client) GetTrustDomainByName(ctx context.Context, trustDomainName externalRef0.TrustDomainName, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutRelationship

func (c *Client) PutRelationship(ctx context.Context, body PutRelationshipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutRelationshipWithBody

func (c *Client) PutRelationshipWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutTrustDomain

func (c *Client) PutTrustDomain(ctx context.Context, body PutTrustDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutTrustDomainByName

func (c *Client) PutTrustDomainByName(ctx context.Context, trustDomainName externalRef0.TrustDomainName, body PutTrustDomainByNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutTrustDomainByNameWithBody

func (c *Client) PutTrustDomainByNameWithBody(ctx context.Context, trustDomainName externalRef0.TrustDomainName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutTrustDomainWithBody

func (c *Client) PutTrustDomainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetRelationships request
	GetRelationships(ctx context.Context, params *GetRelationshipsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutRelationship request with any body
	PutRelationshipWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutRelationship(ctx context.Context, body PutRelationshipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRelationshipByID request
	GetRelationshipByID(ctx context.Context, relationshipID externalRef0.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutTrustDomain request with any body
	PutTrustDomainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutTrustDomain(ctx context.Context, body PutTrustDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTrustDomainByName request
	GetTrustDomainByName(ctx context.Context, trustDomainName externalRef0.TrustDomainName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutTrustDomainByName request with any body
	PutTrustDomainByNameWithBody(ctx context.Context, trustDomainName externalRef0.TrustDomainName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutTrustDomainByName(ctx context.Context, trustDomainName externalRef0.TrustDomainName, body PutTrustDomainByNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetJoinToken request
	GetJoinToken(ctx context.Context, trustDomainName externalRef0.TrustDomainName, params *GetJoinTokenParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) GetJoinTokenWithResponse

func (c *ClientWithResponses) GetJoinTokenWithResponse(ctx context.Context, trustDomainName externalRef0.TrustDomainName, params *GetJoinTokenParams, reqEditors ...RequestEditorFn) (*GetJoinTokenResponse, error)

GetJoinTokenWithResponse request returning *GetJoinTokenResponse

func (*ClientWithResponses) GetRelationshipByIDWithResponse

func (c *ClientWithResponses) GetRelationshipByIDWithResponse(ctx context.Context, relationshipID externalRef0.UUID, reqEditors ...RequestEditorFn) (*GetRelationshipByIDResponse, error)

GetRelationshipByIDWithResponse request returning *GetRelationshipByIDResponse

func (*ClientWithResponses) GetRelationshipsWithResponse

func (c *ClientWithResponses) GetRelationshipsWithResponse(ctx context.Context, params *GetRelationshipsParams, reqEditors ...RequestEditorFn) (*GetRelationshipsResponse, error)

GetRelationshipsWithResponse request returning *GetRelationshipsResponse

func (*ClientWithResponses) GetTrustDomainByNameWithResponse

func (c *ClientWithResponses) GetTrustDomainByNameWithResponse(ctx context.Context, trustDomainName externalRef0.TrustDomainName, reqEditors ...RequestEditorFn) (*GetTrustDomainByNameResponse, error)

GetTrustDomainByNameWithResponse request returning *GetTrustDomainByNameResponse

func (*ClientWithResponses) PutRelationshipWithBodyWithResponse

func (c *ClientWithResponses) PutRelationshipWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutRelationshipResponse, error)

PutRelationshipWithBodyWithResponse request with arbitrary body returning *PutRelationshipResponse

func (*ClientWithResponses) PutRelationshipWithResponse

func (c *ClientWithResponses) PutRelationshipWithResponse(ctx context.Context, body PutRelationshipJSONRequestBody, reqEditors ...RequestEditorFn) (*PutRelationshipResponse, error)

func (*ClientWithResponses) PutTrustDomainByNameWithBodyWithResponse

func (c *ClientWithResponses) PutTrustDomainByNameWithBodyWithResponse(ctx context.Context, trustDomainName externalRef0.TrustDomainName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutTrustDomainByNameResponse, error)

PutTrustDomainByNameWithBodyWithResponse request with arbitrary body returning *PutTrustDomainByNameResponse

func (*ClientWithResponses) PutTrustDomainByNameWithResponse

func (c *ClientWithResponses) PutTrustDomainByNameWithResponse(ctx context.Context, trustDomainName externalRef0.TrustDomainName, body PutTrustDomainByNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutTrustDomainByNameResponse, error)

func (*ClientWithResponses) PutTrustDomainWithBodyWithResponse

func (c *ClientWithResponses) PutTrustDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutTrustDomainResponse, error)

PutTrustDomainWithBodyWithResponse request with arbitrary body returning *PutTrustDomainResponse

func (*ClientWithResponses) PutTrustDomainWithResponse

func (c *ClientWithResponses) PutTrustDomainWithResponse(ctx context.Context, body PutTrustDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*PutTrustDomainResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetRelationships request
	GetRelationshipsWithResponse(ctx context.Context, params *GetRelationshipsParams, reqEditors ...RequestEditorFn) (*GetRelationshipsResponse, error)

	// PutRelationship request with any body
	PutRelationshipWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutRelationshipResponse, error)

	PutRelationshipWithResponse(ctx context.Context, body PutRelationshipJSONRequestBody, reqEditors ...RequestEditorFn) (*PutRelationshipResponse, error)

	// GetRelationshipByID request
	GetRelationshipByIDWithResponse(ctx context.Context, relationshipID externalRef0.UUID, reqEditors ...RequestEditorFn) (*GetRelationshipByIDResponse, error)

	// PutTrustDomain request with any body
	PutTrustDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutTrustDomainResponse, error)

	PutTrustDomainWithResponse(ctx context.Context, body PutTrustDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*PutTrustDomainResponse, error)

	// GetTrustDomainByName request
	GetTrustDomainByNameWithResponse(ctx context.Context, trustDomainName externalRef0.TrustDomainName, reqEditors ...RequestEditorFn) (*GetTrustDomainByNameResponse, error)

	// PutTrustDomainByName request with any body
	PutTrustDomainByNameWithBodyWithResponse(ctx context.Context, trustDomainName externalRef0.TrustDomainName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutTrustDomainByNameResponse, error)

	PutTrustDomainByNameWithResponse(ctx context.Context, trustDomainName externalRef0.TrustDomainName, body PutTrustDomainByNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutTrustDomainByNameResponse, error)

	// GetJoinToken request
	GetJoinTokenWithResponse(ctx context.Context, trustDomainName externalRef0.TrustDomainName, params *GetJoinTokenParams, reqEditors ...RequestEditorFn) (*GetJoinTokenResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Default

type Default = externalRef0.ApiError

Default defines model for Default.

type EchoRouter

type EchoRouter interface {
	CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}

This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration

type GetJoinTokenParams

type GetJoinTokenParams struct {
	// Ttl Time-to-Live (TTL) in seconds for the join token
	Ttl int32 `form:"ttl" json:"ttl"`
}

GetJoinTokenParams defines parameters for GetJoinToken.

type GetJoinTokenResponse

type GetJoinTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *JoinTokenResponse
	JSONDefault  *externalRef0.ApiError
}

func ParseGetJoinTokenResponse

func ParseGetJoinTokenResponse(rsp *http.Response) (*GetJoinTokenResponse, error)

ParseGetJoinTokenResponse parses an HTTP response from a GetJoinTokenWithResponse call

func (GetJoinTokenResponse) Status

func (r GetJoinTokenResponse) Status() string

Status returns HTTPResponse.Status

func (GetJoinTokenResponse) StatusCode

func (r GetJoinTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRelationshipByIDResponse

type GetRelationshipByIDResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.Relationship
	JSONDefault  *externalRef0.ApiError
}

func ParseGetRelationshipByIDResponse

func ParseGetRelationshipByIDResponse(rsp *http.Response) (*GetRelationshipByIDResponse, error)

ParseGetRelationshipByIDResponse parses an HTTP response from a GetRelationshipByIDWithResponse call

func (GetRelationshipByIDResponse) Status

Status returns HTTPResponse.Status

func (GetRelationshipByIDResponse) StatusCode

func (r GetRelationshipByIDResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRelationshipsParams

type GetRelationshipsParams struct {
	// Status relationship status from a Trust Domain perspective,
	Status *externalRef0.ConsentStatus `form:"status,omitempty" json:"status,omitempty"`

	// TrustDomainName TrustDomain
	TrustDomainName *externalRef0.TrustDomainName `form:"trustDomainName,omitempty" json:"trustDomainName,omitempty"`
}

GetRelationshipsParams defines parameters for GetRelationships.

type GetRelationshipsResponse

type GetRelationshipsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]externalRef0.Relationship
	JSONDefault  *externalRef0.ApiError
}

func ParseGetRelationshipsResponse

func ParseGetRelationshipsResponse(rsp *http.Response) (*GetRelationshipsResponse, error)

ParseGetRelationshipsResponse parses an HTTP response from a GetRelationshipsWithResponse call

func (GetRelationshipsResponse) Status

func (r GetRelationshipsResponse) Status() string

Status returns HTTPResponse.Status

func (GetRelationshipsResponse) StatusCode

func (r GetRelationshipsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTrustDomainByNameResponse

type GetTrustDomainByNameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.TrustDomain
	JSONDefault  *externalRef0.ApiError
}

func ParseGetTrustDomainByNameResponse

func ParseGetTrustDomainByNameResponse(rsp *http.Response) (*GetTrustDomainByNameResponse, error)

ParseGetTrustDomainByNameResponse parses an HTTP response from a GetTrustDomainByNameWithResponse call

func (GetTrustDomainByNameResponse) Status

Status returns HTTPResponse.Status

func (GetTrustDomainByNameResponse) StatusCode

func (r GetTrustDomainByNameResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type JoinTokenResponse

type JoinTokenResponse struct {
	Token externalRef0.JoinToken `json:"token"`
}

JoinTokenResponse defines model for JoinTokenResponse.

type PutRelationshipJSONRequestBody

type PutRelationshipJSONRequestBody = PutRelationshipRequest

PutRelationshipJSONRequestBody defines body for PutRelationship for application/json ContentType.

type PutRelationshipRequest

type PutRelationshipRequest struct {
	TrustDomainAName externalRef0.TrustDomainName `json:"trust_domain_a_name"`
	TrustDomainBName externalRef0.TrustDomainName `json:"trust_domain_b_name"`
}

PutRelationshipRequest defines model for PutRelationshipRequest.

func (*PutRelationshipRequest) ToEntity

func (r *PutRelationshipRequest) ToEntity() (*entity.Relationship, error)

type PutRelationshipResponse

type PutRelationshipResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.Relationship
	JSONDefault  *externalRef0.ApiError
}

func ParsePutRelationshipResponse

func ParsePutRelationshipResponse(rsp *http.Response) (*PutRelationshipResponse, error)

ParsePutRelationshipResponse parses an HTTP response from a PutRelationshipWithResponse call

func (PutRelationshipResponse) Status

func (r PutRelationshipResponse) Status() string

Status returns HTTPResponse.Status

func (PutRelationshipResponse) StatusCode

func (r PutRelationshipResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutTrustDomainByNameJSONRequestBody

type PutTrustDomainByNameJSONRequestBody = externalRef0.TrustDomain

PutTrustDomainByNameJSONRequestBody defines body for PutTrustDomainByName for application/json ContentType.

type PutTrustDomainByNameResponse

type PutTrustDomainByNameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.TrustDomain
	JSONDefault  *externalRef0.ApiError
}

func ParsePutTrustDomainByNameResponse

func ParsePutTrustDomainByNameResponse(rsp *http.Response) (*PutTrustDomainByNameResponse, error)

ParsePutTrustDomainByNameResponse parses an HTTP response from a PutTrustDomainByNameWithResponse call

func (PutTrustDomainByNameResponse) Status

Status returns HTTPResponse.Status

func (PutTrustDomainByNameResponse) StatusCode

func (r PutTrustDomainByNameResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutTrustDomainJSONRequestBody

type PutTrustDomainJSONRequestBody = PutTrustDomainRequest

PutTrustDomainJSONRequestBody defines body for PutTrustDomain for application/json ContentType.

type PutTrustDomainRequest

type PutTrustDomainRequest struct {
	Description *string                      `json:"description,omitempty"`
	Name        externalRef0.TrustDomainName `json:"name"`
}

PutTrustDomainRequest defines model for PutTrustDomainRequest.

func (*PutTrustDomainRequest) ToEntity

func (td *PutTrustDomainRequest) ToEntity() (*entity.TrustDomain, error)

type PutTrustDomainResponse

type PutTrustDomainResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *externalRef0.TrustDomain
	JSONDefault  *externalRef0.ApiError
}

func ParsePutTrustDomainResponse

func ParsePutTrustDomainResponse(rsp *http.Response) (*PutTrustDomainResponse, error)

ParsePutTrustDomainResponse parses an HTTP response from a PutTrustDomainWithResponse call

func (PutTrustDomainResponse) Status

func (r PutTrustDomainResponse) Status() string

Status returns HTTPResponse.Status

func (PutTrustDomainResponse) StatusCode

func (r PutTrustDomainResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ServerInterface

type ServerInterface interface {
	// Get relationships
	// (GET /relationships)
	GetRelationships(ctx echo.Context, params GetRelationshipsParams) error
	// Create a relationship request between two Trust Domains
	// (PUT /relationships)
	PutRelationship(ctx echo.Context) error
	// Get a specific relationship
	// (GET /relationships/{relationshipID})
	GetRelationshipByID(ctx echo.Context, relationshipID externalRef0.UUID) error
	// Add a specific trust domain
	// (PUT /trust-domain)
	PutTrustDomain(ctx echo.Context) error
	// Get a specific trust domain
	// (GET /trust-domain/{trustDomainName})
	GetTrustDomainByName(ctx echo.Context, trustDomainName externalRef0.TrustDomainName) error
	// Update a specific trust domain
	// (PUT /trust-domain/{trustDomainName})
	PutTrustDomainByName(ctx echo.Context, trustDomainName externalRef0.TrustDomainName) error
	// Get a join token for a specific Trust Domain
	// (GET /trust-domain/{trustDomainName}/join-token)
	GetJoinToken(ctx echo.Context, trustDomainName externalRef0.TrustDomainName, params GetJoinTokenParams) error
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

func (*ServerInterfaceWrapper) GetJoinToken

func (w *ServerInterfaceWrapper) GetJoinToken(ctx echo.Context) error

GetJoinToken converts echo context to params.

func (*ServerInterfaceWrapper) GetRelationshipByID

func (w *ServerInterfaceWrapper) GetRelationshipByID(ctx echo.Context) error

GetRelationshipByID converts echo context to params.

func (*ServerInterfaceWrapper) GetRelationships

func (w *ServerInterfaceWrapper) GetRelationships(ctx echo.Context) error

GetRelationships converts echo context to params.

func (*ServerInterfaceWrapper) GetTrustDomainByName

func (w *ServerInterfaceWrapper) GetTrustDomainByName(ctx echo.Context) error

GetTrustDomainByName converts echo context to params.

func (*ServerInterfaceWrapper) PutRelationship

func (w *ServerInterfaceWrapper) PutRelationship(ctx echo.Context) error

PutRelationship converts echo context to params.

func (*ServerInterfaceWrapper) PutTrustDomain

func (w *ServerInterfaceWrapper) PutTrustDomain(ctx echo.Context) error

PutTrustDomain converts echo context to params.

func (*ServerInterfaceWrapper) PutTrustDomainByName

func (w *ServerInterfaceWrapper) PutTrustDomainByName(ctx echo.Context) error

PutTrustDomainByName converts echo context to params.

Jump to

Keyboard shortcuts

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