nodeinfo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for nodeinfo API

func (*Client) NodeInfoGet

func (a *Client) NodeInfoGet(params *NodeInfoGetParams, opts ...ClientOption) (*NodeInfoGetOK, error)

NodeInfoGet returns a compliant nodeinfo response to node info queries

See: https://nodeinfo.diaspora.software/schema.html

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	NodeInfoGet(params *NodeInfoGetParams, opts ...ClientOption) (*NodeInfoGetOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new nodeinfo API client.

type NodeInfoGetOK

type NodeInfoGetOK struct {
	Payload *models.Nodeinfo
}

NodeInfoGetOK describes a response with status code 200, with default header values.

NodeInfoGetOK node info get o k

func NewNodeInfoGetOK

func NewNodeInfoGetOK() *NodeInfoGetOK

NewNodeInfoGetOK creates a NodeInfoGetOK with default headers values

func (*NodeInfoGetOK) Code

func (o *NodeInfoGetOK) Code() int

Code gets the status code for the node info get o k response

func (*NodeInfoGetOK) Error

func (o *NodeInfoGetOK) Error() string

func (*NodeInfoGetOK) GetPayload

func (o *NodeInfoGetOK) GetPayload() *models.Nodeinfo

func (*NodeInfoGetOK) IsClientError

func (o *NodeInfoGetOK) IsClientError() bool

IsClientError returns true when this node info get o k response has a 4xx status code

func (*NodeInfoGetOK) IsCode

func (o *NodeInfoGetOK) IsCode(code int) bool

IsCode returns true when this node info get o k response a status code equal to that given

func (*NodeInfoGetOK) IsRedirect

func (o *NodeInfoGetOK) IsRedirect() bool

IsRedirect returns true when this node info get o k response has a 3xx status code

func (*NodeInfoGetOK) IsServerError

func (o *NodeInfoGetOK) IsServerError() bool

IsServerError returns true when this node info get o k response has a 5xx status code

func (*NodeInfoGetOK) IsSuccess

func (o *NodeInfoGetOK) IsSuccess() bool

IsSuccess returns true when this node info get o k response has a 2xx status code

func (*NodeInfoGetOK) String

func (o *NodeInfoGetOK) String() string

type NodeInfoGetParams

type NodeInfoGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

NodeInfoGetParams contains all the parameters to send to the API endpoint

for the node info get operation.

Typically these are written to a http.Request.

func NewNodeInfoGetParams

func NewNodeInfoGetParams() *NodeInfoGetParams

NewNodeInfoGetParams creates a new NodeInfoGetParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewNodeInfoGetParamsWithContext

func NewNodeInfoGetParamsWithContext(ctx context.Context) *NodeInfoGetParams

NewNodeInfoGetParamsWithContext creates a new NodeInfoGetParams object with the ability to set a context for a request.

func NewNodeInfoGetParamsWithHTTPClient

func NewNodeInfoGetParamsWithHTTPClient(client *http.Client) *NodeInfoGetParams

NewNodeInfoGetParamsWithHTTPClient creates a new NodeInfoGetParams object with the ability to set a custom HTTPClient for a request.

func NewNodeInfoGetParamsWithTimeout

func NewNodeInfoGetParamsWithTimeout(timeout time.Duration) *NodeInfoGetParams

NewNodeInfoGetParamsWithTimeout creates a new NodeInfoGetParams object with the ability to set a timeout on a request.

func (*NodeInfoGetParams) SetContext

func (o *NodeInfoGetParams) SetContext(ctx context.Context)

SetContext adds the context to the node info get params

func (*NodeInfoGetParams) SetDefaults

func (o *NodeInfoGetParams) SetDefaults()

SetDefaults hydrates default values in the node info get params (not the query body).

All values with no default are reset to their zero value.

func (*NodeInfoGetParams) SetHTTPClient

func (o *NodeInfoGetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the node info get params

func (*NodeInfoGetParams) SetTimeout

func (o *NodeInfoGetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the node info get params

func (*NodeInfoGetParams) WithContext

func (o *NodeInfoGetParams) WithContext(ctx context.Context) *NodeInfoGetParams

WithContext adds the context to the node info get params

func (*NodeInfoGetParams) WithDefaults

func (o *NodeInfoGetParams) WithDefaults() *NodeInfoGetParams

WithDefaults hydrates default values in the node info get params (not the query body).

All values with no default are reset to their zero value.

func (*NodeInfoGetParams) WithHTTPClient

func (o *NodeInfoGetParams) WithHTTPClient(client *http.Client) *NodeInfoGetParams

WithHTTPClient adds the HTTPClient to the node info get params

func (*NodeInfoGetParams) WithTimeout

func (o *NodeInfoGetParams) WithTimeout(timeout time.Duration) *NodeInfoGetParams

WithTimeout adds the timeout to the node info get params

func (*NodeInfoGetParams) WriteToRequest

func (o *NodeInfoGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type NodeInfoGetReader

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

NodeInfoGetReader is a Reader for the NodeInfoGet structure.

func (*NodeInfoGetReader) ReadResponse

func (o *NodeInfoGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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