client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

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

Code generated by gitlab.com/ginfra/ginfra version (devel) 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 NewGiConfigDeregisterServiceRequest

func NewGiConfigDeregisterServiceRequest(server string, deployment string, name string, params *GiConfigDeregisterServiceParams) (*http.Request, error)

NewGiConfigDeregisterServiceRequest generates requests for GiConfigDeregisterService

func NewGiConfigPortalRequest

func NewGiConfigPortalRequest(server string, operation GiConfigPortalParamsOperation, deployment string, params *GiConfigPortalParams, body GiConfigPortalJSONRequestBody) (*http.Request, error)

NewGiConfigPortalRequest calls the generic GiConfigPortal builder with application/json body

func NewGiConfigPortalRequestWithBody

func NewGiConfigPortalRequestWithBody(server string, operation GiConfigPortalParamsOperation, deployment string, params *GiConfigPortalParams, contentType string, body io.Reader) (*http.Request, error)

NewGiConfigPortalRequestWithBody generates requests for GiConfigPortal with any type of body

func NewGiConfigQueryConfigRequest

func NewGiConfigQueryConfigRequest(server string, params *GiConfigQueryConfigParams) (*http.Request, error)

NewGiConfigQueryConfigRequest generates requests for GiConfigQueryConfig

func NewGiConfigRegisterInstanceRequest

func NewGiConfigRegisterInstanceRequest(server string, params *GiConfigRegisterInstanceParams, body GiConfigRegisterInstanceJSONRequestBody) (*http.Request, error)

NewGiConfigRegisterInstanceRequest calls the generic GiConfigRegisterInstance builder with application/json body

func NewGiConfigRegisterInstanceRequestWithBody

func NewGiConfigRegisterInstanceRequestWithBody(server string, params *GiConfigRegisterInstanceParams, contentType string, body io.Reader) (*http.Request, error)

NewGiConfigRegisterInstanceRequestWithBody generates requests for GiConfigRegisterInstance with any type of body

func NewGiConfigRegisterServiceRequest

func NewGiConfigRegisterServiceRequest(server string, params *GiConfigRegisterServiceParams, body GiConfigRegisterServiceJSONRequestBody) (*http.Request, error)

NewGiConfigRegisterServiceRequest calls the generic GiConfigRegisterService builder with application/json body

func NewGiConfigRegisterServiceRequestWithBody

func NewGiConfigRegisterServiceRequestWithBody(server string, params *GiConfigRegisterServiceParams, contentType string, body io.Reader) (*http.Request, error)

NewGiConfigRegisterServiceRequestWithBody generates requests for GiConfigRegisterService with any type of body

func NewGiConfigSetConfigRequest

func NewGiConfigSetConfigRequest(server string, params *GiConfigSetConfigParams, body GiConfigSetConfigJSONRequestBody) (*http.Request, error)

NewGiConfigSetConfigRequest calls the generic GiConfigSetConfig builder with application/json body

func NewGiConfigSetConfigRequestWithBody

func NewGiConfigSetConfigRequestWithBody(server string, params *GiConfigSetConfigParams, contentType string, body io.Reader) (*http.Request, error)

NewGiConfigSetConfigRequestWithBody generates requests for GiConfigSetConfig with any type of body

func NewGiDiscoverPortalRequest

func NewGiDiscoverPortalRequest(server string, deployment string, serviceclass string, params *GiDiscoverPortalParams) (*http.Request, error)

NewGiDiscoverPortalRequest generates requests for GiDiscoverPortal

func NewGiDiscoverServiceRequest

func NewGiDiscoverServiceRequest(server string, deployment string, serviceclass string, params *GiDiscoverServiceParams) (*http.Request, error)

NewGiDiscoverServiceRequest generates requests for GiDiscoverService

func NewGiGetSpecificsRequest

func NewGiGetSpecificsRequest(server string) (*http.Request, error)

NewGiGetSpecificsRequest generates requests for GiGetSpecifics

func NewGiRemoveConfigRequest

func NewGiRemoveConfigRequest(server string, params *GiRemoveConfigParams) (*http.Request, error)

NewGiRemoveConfigRequest generates requests for GiRemoveConfig

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 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) GiConfigDeregisterService

func (c *Client) GiConfigDeregisterService(ctx context.Context, deployment string, name string, params *GiConfigDeregisterServiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GiConfigPortal

func (c *Client) GiConfigPortal(ctx context.Context, operation GiConfigPortalParamsOperation, deployment string, params *GiConfigPortalParams, body GiConfigPortalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GiConfigPortalWithBody

func (c *Client) GiConfigPortalWithBody(ctx context.Context, operation GiConfigPortalParamsOperation, deployment string, params *GiConfigPortalParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GiConfigQueryConfig

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

func (*Client) GiConfigRegisterInstance

func (c *Client) GiConfigRegisterInstance(ctx context.Context, params *GiConfigRegisterInstanceParams, body GiConfigRegisterInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GiConfigRegisterInstanceWithBody

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

func (*Client) GiConfigRegisterService

func (c *Client) GiConfigRegisterService(ctx context.Context, params *GiConfigRegisterServiceParams, body GiConfigRegisterServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GiConfigRegisterServiceWithBody

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

func (*Client) GiConfigSetConfig

func (c *Client) GiConfigSetConfig(ctx context.Context, params *GiConfigSetConfigParams, body GiConfigSetConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GiConfigSetConfigWithBody

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

func (*Client) GiDiscoverPortal

func (c *Client) GiDiscoverPortal(ctx context.Context, deployment string, serviceclass string, params *GiDiscoverPortalParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GiDiscoverService

func (c *Client) GiDiscoverService(ctx context.Context, deployment string, serviceclass string, params *GiDiscoverServiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GiGetSpecifics

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

func (*Client) GiRemoveConfig

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

type ClientInterface

type ClientInterface interface {
	// GiConfigDeregisterService request
	GiConfigDeregisterService(ctx context.Context, deployment string, name string, params *GiConfigDeregisterServiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GiDiscoverPortal request
	GiDiscoverPortal(ctx context.Context, deployment string, serviceclass string, params *GiDiscoverPortalParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GiDiscoverService request
	GiDiscoverService(ctx context.Context, deployment string, serviceclass string, params *GiDiscoverServiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	GiConfigRegisterInstance(ctx context.Context, params *GiConfigRegisterInstanceParams, body GiConfigRegisterInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GiConfigPortalWithBody request with any body
	GiConfigPortalWithBody(ctx context.Context, operation GiConfigPortalParamsOperation, deployment string, params *GiConfigPortalParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GiConfigPortal(ctx context.Context, operation GiConfigPortalParamsOperation, deployment string, params *GiConfigPortalParams, body GiConfigPortalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GiConfigQueryConfig request
	GiConfigQueryConfig(ctx context.Context, params *GiConfigQueryConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	GiConfigRegisterService(ctx context.Context, params *GiConfigRegisterServiceParams, body GiConfigRegisterServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GiRemoveConfig request
	GiRemoveConfig(ctx context.Context, params *GiRemoveConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	GiConfigSetConfig(ctx context.Context, params *GiConfigSetConfigParams, body GiConfigSetConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GiGetSpecifics request
	GiGetSpecifics(ctx context.Context, 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) GiConfigDeregisterServiceWithResponse

func (c *ClientWithResponses) GiConfigDeregisterServiceWithResponse(ctx context.Context, deployment string, name string, params *GiConfigDeregisterServiceParams, reqEditors ...RequestEditorFn) (*GiConfigDeregisterServiceResponse, error)

GiConfigDeregisterServiceWithResponse request returning *GiConfigDeregisterServiceResponse

func (*ClientWithResponses) GiConfigPortalWithBodyWithResponse

func (c *ClientWithResponses) GiConfigPortalWithBodyWithResponse(ctx context.Context, operation GiConfigPortalParamsOperation, deployment string, params *GiConfigPortalParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GiConfigPortalResponse, error)

GiConfigPortalWithBodyWithResponse request with arbitrary body returning *GiConfigPortalResponse

func (*ClientWithResponses) GiConfigPortalWithResponse

func (c *ClientWithResponses) GiConfigPortalWithResponse(ctx context.Context, operation GiConfigPortalParamsOperation, deployment string, params *GiConfigPortalParams, body GiConfigPortalJSONRequestBody, reqEditors ...RequestEditorFn) (*GiConfigPortalResponse, error)

func (*ClientWithResponses) GiConfigQueryConfigWithResponse

func (c *ClientWithResponses) GiConfigQueryConfigWithResponse(ctx context.Context, params *GiConfigQueryConfigParams, reqEditors ...RequestEditorFn) (*GiConfigQueryConfigResponse, error)

GiConfigQueryConfigWithResponse request returning *GiConfigQueryConfigResponse

func (*ClientWithResponses) GiConfigRegisterInstanceWithBodyWithResponse

func (c *ClientWithResponses) GiConfigRegisterInstanceWithBodyWithResponse(ctx context.Context, params *GiConfigRegisterInstanceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GiConfigRegisterInstanceResponse, error)

GiConfigRegisterInstanceWithBodyWithResponse request with arbitrary body returning *GiConfigRegisterInstanceResponse

func (*ClientWithResponses) GiConfigRegisterInstanceWithResponse

func (c *ClientWithResponses) GiConfigRegisterInstanceWithResponse(ctx context.Context, params *GiConfigRegisterInstanceParams, body GiConfigRegisterInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*GiConfigRegisterInstanceResponse, error)

func (*ClientWithResponses) GiConfigRegisterServiceWithBodyWithResponse

func (c *ClientWithResponses) GiConfigRegisterServiceWithBodyWithResponse(ctx context.Context, params *GiConfigRegisterServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GiConfigRegisterServiceResponse, error)

GiConfigRegisterServiceWithBodyWithResponse request with arbitrary body returning *GiConfigRegisterServiceResponse

func (*ClientWithResponses) GiConfigRegisterServiceWithResponse

func (c *ClientWithResponses) GiConfigRegisterServiceWithResponse(ctx context.Context, params *GiConfigRegisterServiceParams, body GiConfigRegisterServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*GiConfigRegisterServiceResponse, error)

func (*ClientWithResponses) GiConfigSetConfigWithBodyWithResponse

func (c *ClientWithResponses) GiConfigSetConfigWithBodyWithResponse(ctx context.Context, params *GiConfigSetConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GiConfigSetConfigResponse, error)

GiConfigSetConfigWithBodyWithResponse request with arbitrary body returning *GiConfigSetConfigResponse

func (*ClientWithResponses) GiConfigSetConfigWithResponse

func (c *ClientWithResponses) GiConfigSetConfigWithResponse(ctx context.Context, params *GiConfigSetConfigParams, body GiConfigSetConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*GiConfigSetConfigResponse, error)

func (*ClientWithResponses) GiDiscoverPortalWithResponse

func (c *ClientWithResponses) GiDiscoverPortalWithResponse(ctx context.Context, deployment string, serviceclass string, params *GiDiscoverPortalParams, reqEditors ...RequestEditorFn) (*GiDiscoverPortalResponse, error)

GiDiscoverPortalWithResponse request returning *GiDiscoverPortalResponse

func (*ClientWithResponses) GiDiscoverServiceWithResponse

func (c *ClientWithResponses) GiDiscoverServiceWithResponse(ctx context.Context, deployment string, serviceclass string, params *GiDiscoverServiceParams, reqEditors ...RequestEditorFn) (*GiDiscoverServiceResponse, error)

GiDiscoverServiceWithResponse request returning *GiDiscoverServiceResponse

func (*ClientWithResponses) GiGetSpecificsWithResponse

func (c *ClientWithResponses) GiGetSpecificsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GiGetSpecificsResponse, error)

GiGetSpecificsWithResponse request returning *GiGetSpecificsResponse

func (*ClientWithResponses) GiRemoveConfigWithResponse

func (c *ClientWithResponses) GiRemoveConfigWithResponse(ctx context.Context, params *GiRemoveConfigParams, reqEditors ...RequestEditorFn) (*GiRemoveConfigResponse, error)

GiRemoveConfigWithResponse request returning *GiRemoveConfigResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GiConfigDeregisterServiceWithResponse request
	GiConfigDeregisterServiceWithResponse(ctx context.Context, deployment string, name string, params *GiConfigDeregisterServiceParams, reqEditors ...RequestEditorFn) (*GiConfigDeregisterServiceResponse, error)

	// GiDiscoverPortalWithResponse request
	GiDiscoverPortalWithResponse(ctx context.Context, deployment string, serviceclass string, params *GiDiscoverPortalParams, reqEditors ...RequestEditorFn) (*GiDiscoverPortalResponse, error)

	// GiDiscoverServiceWithResponse request
	GiDiscoverServiceWithResponse(ctx context.Context, deployment string, serviceclass string, params *GiDiscoverServiceParams, reqEditors ...RequestEditorFn) (*GiDiscoverServiceResponse, error)

	// GiConfigRegisterInstanceWithBodyWithResponse request with any body
	GiConfigRegisterInstanceWithBodyWithResponse(ctx context.Context, params *GiConfigRegisterInstanceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GiConfigRegisterInstanceResponse, error)

	GiConfigRegisterInstanceWithResponse(ctx context.Context, params *GiConfigRegisterInstanceParams, body GiConfigRegisterInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*GiConfigRegisterInstanceResponse, error)

	// GiConfigPortalWithBodyWithResponse request with any body
	GiConfigPortalWithBodyWithResponse(ctx context.Context, operation GiConfigPortalParamsOperation, deployment string, params *GiConfigPortalParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GiConfigPortalResponse, error)

	GiConfigPortalWithResponse(ctx context.Context, operation GiConfigPortalParamsOperation, deployment string, params *GiConfigPortalParams, body GiConfigPortalJSONRequestBody, reqEditors ...RequestEditorFn) (*GiConfigPortalResponse, error)

	// GiConfigQueryConfigWithResponse request
	GiConfigQueryConfigWithResponse(ctx context.Context, params *GiConfigQueryConfigParams, reqEditors ...RequestEditorFn) (*GiConfigQueryConfigResponse, error)

	// GiConfigRegisterServiceWithBodyWithResponse request with any body
	GiConfigRegisterServiceWithBodyWithResponse(ctx context.Context, params *GiConfigRegisterServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GiConfigRegisterServiceResponse, error)

	GiConfigRegisterServiceWithResponse(ctx context.Context, params *GiConfigRegisterServiceParams, body GiConfigRegisterServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*GiConfigRegisterServiceResponse, error)

	// GiRemoveConfigWithResponse request
	GiRemoveConfigWithResponse(ctx context.Context, params *GiRemoveConfigParams, reqEditors ...RequestEditorFn) (*GiRemoveConfigResponse, error)

	// GiConfigSetConfigWithBodyWithResponse request with any body
	GiConfigSetConfigWithBodyWithResponse(ctx context.Context, params *GiConfigSetConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GiConfigSetConfigResponse, error)

	GiConfigSetConfigWithResponse(ctx context.Context, params *GiConfigSetConfigParams, body GiConfigSetConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*GiConfigSetConfigResponse, error)

	// GiGetSpecificsWithResponse request
	GiGetSpecificsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GiGetSpecificsResponse, error)
}

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

type GiConfigDeregisterServiceResponse

type GiConfigDeregisterServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ConfigServiceRegistrationResponse
	JSON400      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGiConfigDeregisterServiceResponse

func ParseGiConfigDeregisterServiceResponse(rsp *http.Response) (*GiConfigDeregisterServiceResponse, error)

ParseGiConfigDeregisterServiceResponse parses an HTTP response from a GiConfigDeregisterServiceWithResponse call

func (GiConfigDeregisterServiceResponse) Status

Status returns HTTPResponse.Status

func (GiConfigDeregisterServiceResponse) StatusCode

func (r GiConfigDeregisterServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GiConfigPortalResponse

type GiConfigPortalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGiConfigPortalResponse

func ParseGiConfigPortalResponse(rsp *http.Response) (*GiConfigPortalResponse, error)

ParseGiConfigPortalResponse parses an HTTP response from a GiConfigPortalWithResponse call

func (GiConfigPortalResponse) Status

func (r GiConfigPortalResponse) Status() string

Status returns HTTPResponse.Status

func (GiConfigPortalResponse) StatusCode

func (r GiConfigPortalResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GiConfigQueryConfigResponse

type GiConfigQueryConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ConfigQueryResponse
	JSON400      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGiConfigQueryConfigResponse

func ParseGiConfigQueryConfigResponse(rsp *http.Response) (*GiConfigQueryConfigResponse, error)

ParseGiConfigQueryConfigResponse parses an HTTP response from a GiConfigQueryConfigWithResponse call

func (GiConfigQueryConfigResponse) Status

Status returns HTTPResponse.Status

func (GiConfigQueryConfigResponse) StatusCode

func (r GiConfigQueryConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GiConfigRegisterInstanceResponse

type GiConfigRegisterInstanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ConfigServiceRegistrationResponse
	JSON400      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGiConfigRegisterInstanceResponse

func ParseGiConfigRegisterInstanceResponse(rsp *http.Response) (*GiConfigRegisterInstanceResponse, error)

ParseGiConfigRegisterInstanceResponse parses an HTTP response from a GiConfigRegisterInstanceWithResponse call

func (GiConfigRegisterInstanceResponse) Status

Status returns HTTPResponse.Status

func (GiConfigRegisterInstanceResponse) StatusCode

func (r GiConfigRegisterInstanceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GiConfigRegisterServiceResponse

type GiConfigRegisterServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ConfigServiceRegistrationResponse
	JSON400      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGiConfigRegisterServiceResponse

func ParseGiConfigRegisterServiceResponse(rsp *http.Response) (*GiConfigRegisterServiceResponse, error)

ParseGiConfigRegisterServiceResponse parses an HTTP response from a GiConfigRegisterServiceWithResponse call

func (GiConfigRegisterServiceResponse) Status

Status returns HTTPResponse.Status

func (GiConfigRegisterServiceResponse) StatusCode

func (r GiConfigRegisterServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GiConfigSetConfigResponse

type GiConfigSetConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGiConfigSetConfigResponse

func ParseGiConfigSetConfigResponse(rsp *http.Response) (*GiConfigSetConfigResponse, error)

ParseGiConfigSetConfigResponse parses an HTTP response from a GiConfigSetConfigWithResponse call

func (GiConfigSetConfigResponse) Status

func (r GiConfigSetConfigResponse) Status() string

Status returns HTTPResponse.Status

func (GiConfigSetConfigResponse) StatusCode

func (r GiConfigSetConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GiDiscoverPortalResponse

type GiDiscoverPortalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DiscoverPortalResponse
	JSON400      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGiDiscoverPortalResponse

func ParseGiDiscoverPortalResponse(rsp *http.Response) (*GiDiscoverPortalResponse, error)

ParseGiDiscoverPortalResponse parses an HTTP response from a GiDiscoverPortalWithResponse call

func (GiDiscoverPortalResponse) Status

func (r GiDiscoverPortalResponse) Status() string

Status returns HTTPResponse.Status

func (GiDiscoverPortalResponse) StatusCode

func (r GiDiscoverPortalResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GiDiscoverServiceResponse

type GiDiscoverServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DiscoverServiceResponse
	JSON400      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGiDiscoverServiceResponse

func ParseGiDiscoverServiceResponse(rsp *http.Response) (*GiDiscoverServiceResponse, error)

ParseGiDiscoverServiceResponse parses an HTTP response from a GiDiscoverServiceWithResponse call

func (GiDiscoverServiceResponse) Status

func (r GiDiscoverServiceResponse) Status() string

Status returns HTTPResponse.Status

func (GiDiscoverServiceResponse) StatusCode

func (r GiDiscoverServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GiGetSpecificsResponse

type GiGetSpecificsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Specifics
	JSON500      *ErrorResponse
}

func ParseGiGetSpecificsResponse

func ParseGiGetSpecificsResponse(rsp *http.Response) (*GiGetSpecificsResponse, error)

ParseGiGetSpecificsResponse parses an HTTP response from a GiGetSpecificsWithResponse call

func (GiGetSpecificsResponse) Status

func (r GiGetSpecificsResponse) Status() string

Status returns HTTPResponse.Status

func (GiGetSpecificsResponse) StatusCode

func (r GiGetSpecificsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GiRemoveConfigResponse

type GiRemoveConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGiRemoveConfigResponse

func ParseGiRemoveConfigResponse(rsp *http.Response) (*GiRemoveConfigResponse, error)

ParseGiRemoveConfigResponse parses an HTTP response from a GiRemoveConfigWithResponse call

func (GiRemoveConfigResponse) Status

func (r GiRemoveConfigResponse) Status() string

Status returns HTTPResponse.Status

func (GiRemoveConfigResponse) StatusCode

func (r GiRemoveConfigResponse) 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 RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

Jump to

Keyboard shortcuts

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