Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type V1NetworkPeersListBadRequest
- func (o *V1NetworkPeersListBadRequest) Code() int
- func (o *V1NetworkPeersListBadRequest) Error() string
- func (o *V1NetworkPeersListBadRequest) GetPayload() *models.Error
- func (o *V1NetworkPeersListBadRequest) IsClientError() bool
- func (o *V1NetworkPeersListBadRequest) IsCode(code int) bool
- func (o *V1NetworkPeersListBadRequest) IsRedirect() bool
- func (o *V1NetworkPeersListBadRequest) IsServerError() bool
- func (o *V1NetworkPeersListBadRequest) IsSuccess() bool
- func (o *V1NetworkPeersListBadRequest) String() string
- type V1NetworkPeersListForbidden
- func (o *V1NetworkPeersListForbidden) Code() int
- func (o *V1NetworkPeersListForbidden) Error() string
- func (o *V1NetworkPeersListForbidden) GetPayload() *models.Error
- func (o *V1NetworkPeersListForbidden) IsClientError() bool
- func (o *V1NetworkPeersListForbidden) IsCode(code int) bool
- func (o *V1NetworkPeersListForbidden) IsRedirect() bool
- func (o *V1NetworkPeersListForbidden) IsServerError() bool
- func (o *V1NetworkPeersListForbidden) IsSuccess() bool
- func (o *V1NetworkPeersListForbidden) String() string
- type V1NetworkPeersListInternalServerError
- func (o *V1NetworkPeersListInternalServerError) Code() int
- func (o *V1NetworkPeersListInternalServerError) Error() string
- func (o *V1NetworkPeersListInternalServerError) GetPayload() *models.Error
- func (o *V1NetworkPeersListInternalServerError) IsClientError() bool
- func (o *V1NetworkPeersListInternalServerError) IsCode(code int) bool
- func (o *V1NetworkPeersListInternalServerError) IsRedirect() bool
- func (o *V1NetworkPeersListInternalServerError) IsServerError() bool
- func (o *V1NetworkPeersListInternalServerError) IsSuccess() bool
- func (o *V1NetworkPeersListInternalServerError) String() string
- type V1NetworkPeersListNotFound
- func (o *V1NetworkPeersListNotFound) Code() int
- func (o *V1NetworkPeersListNotFound) Error() string
- func (o *V1NetworkPeersListNotFound) GetPayload() *models.Error
- func (o *V1NetworkPeersListNotFound) IsClientError() bool
- func (o *V1NetworkPeersListNotFound) IsCode(code int) bool
- func (o *V1NetworkPeersListNotFound) IsRedirect() bool
- func (o *V1NetworkPeersListNotFound) IsServerError() bool
- func (o *V1NetworkPeersListNotFound) IsSuccess() bool
- func (o *V1NetworkPeersListNotFound) String() string
- type V1NetworkPeersListOK
- func (o *V1NetworkPeersListOK) Code() int
- func (o *V1NetworkPeersListOK) Error() string
- func (o *V1NetworkPeersListOK) GetPayload() *models.NetworkPeers
- func (o *V1NetworkPeersListOK) IsClientError() bool
- func (o *V1NetworkPeersListOK) IsCode(code int) bool
- func (o *V1NetworkPeersListOK) IsRedirect() bool
- func (o *V1NetworkPeersListOK) IsServerError() bool
- func (o *V1NetworkPeersListOK) IsSuccess() bool
- func (o *V1NetworkPeersListOK) String() string
- type V1NetworkPeersListParams
- func NewV1NetworkPeersListParams() *V1NetworkPeersListParams
- func NewV1NetworkPeersListParamsWithContext(ctx context.Context) *V1NetworkPeersListParams
- func NewV1NetworkPeersListParamsWithHTTPClient(client *http.Client) *V1NetworkPeersListParams
- func NewV1NetworkPeersListParamsWithTimeout(timeout time.Duration) *V1NetworkPeersListParams
- func (o *V1NetworkPeersListParams) SetContext(ctx context.Context)
- func (o *V1NetworkPeersListParams) SetDefaults()
- func (o *V1NetworkPeersListParams) SetHTTPClient(client *http.Client)
- func (o *V1NetworkPeersListParams) SetTimeout(timeout time.Duration)
- func (o *V1NetworkPeersListParams) WithContext(ctx context.Context) *V1NetworkPeersListParams
- func (o *V1NetworkPeersListParams) WithDefaults() *V1NetworkPeersListParams
- func (o *V1NetworkPeersListParams) WithHTTPClient(client *http.Client) *V1NetworkPeersListParams
- func (o *V1NetworkPeersListParams) WithTimeout(timeout time.Duration) *V1NetworkPeersListParams
- func (o *V1NetworkPeersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type V1NetworkPeersListReader
- type V1NetworkPeersListUnauthorized
- func (o *V1NetworkPeersListUnauthorized) Code() int
- func (o *V1NetworkPeersListUnauthorized) Error() string
- func (o *V1NetworkPeersListUnauthorized) GetPayload() *models.Error
- func (o *V1NetworkPeersListUnauthorized) IsClientError() bool
- func (o *V1NetworkPeersListUnauthorized) IsCode(code int) bool
- func (o *V1NetworkPeersListUnauthorized) IsRedirect() bool
- func (o *V1NetworkPeersListUnauthorized) IsServerError() bool
- func (o *V1NetworkPeersListUnauthorized) IsSuccess() bool
- func (o *V1NetworkPeersListUnauthorized) String() string
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 network peers API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) V1NetworkPeersList ¶
func (a *Client) V1NetworkPeersList(params *V1NetworkPeersListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*V1NetworkPeersListOK, error)
V1NetworkPeersList lists all network peers available in the workspace
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { V1NetworkPeersList(params *V1NetworkPeersListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*V1NetworkPeersListOK, 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 network peers API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new network peers API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new network peers API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type V1NetworkPeersListBadRequest ¶
V1NetworkPeersListBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewV1NetworkPeersListBadRequest ¶
func NewV1NetworkPeersListBadRequest() *V1NetworkPeersListBadRequest
NewV1NetworkPeersListBadRequest creates a V1NetworkPeersListBadRequest with default headers values
func (*V1NetworkPeersListBadRequest) Code ¶
func (o *V1NetworkPeersListBadRequest) Code() int
Code gets the status code for the v1 network peers list bad request response
func (*V1NetworkPeersListBadRequest) Error ¶
func (o *V1NetworkPeersListBadRequest) Error() string
func (*V1NetworkPeersListBadRequest) GetPayload ¶
func (o *V1NetworkPeersListBadRequest) GetPayload() *models.Error
func (*V1NetworkPeersListBadRequest) IsClientError ¶
func (o *V1NetworkPeersListBadRequest) IsClientError() bool
IsClientError returns true when this v1 network peers list bad request response has a 4xx status code
func (*V1NetworkPeersListBadRequest) IsCode ¶
func (o *V1NetworkPeersListBadRequest) IsCode(code int) bool
IsCode returns true when this v1 network peers list bad request response a status code equal to that given
func (*V1NetworkPeersListBadRequest) IsRedirect ¶
func (o *V1NetworkPeersListBadRequest) IsRedirect() bool
IsRedirect returns true when this v1 network peers list bad request response has a 3xx status code
func (*V1NetworkPeersListBadRequest) IsServerError ¶
func (o *V1NetworkPeersListBadRequest) IsServerError() bool
IsServerError returns true when this v1 network peers list bad request response has a 5xx status code
func (*V1NetworkPeersListBadRequest) IsSuccess ¶
func (o *V1NetworkPeersListBadRequest) IsSuccess() bool
IsSuccess returns true when this v1 network peers list bad request response has a 2xx status code
func (*V1NetworkPeersListBadRequest) String ¶
func (o *V1NetworkPeersListBadRequest) String() string
type V1NetworkPeersListForbidden ¶
V1NetworkPeersListForbidden describes a response with status code 403, with default header values.
Forbidden
func NewV1NetworkPeersListForbidden ¶
func NewV1NetworkPeersListForbidden() *V1NetworkPeersListForbidden
NewV1NetworkPeersListForbidden creates a V1NetworkPeersListForbidden with default headers values
func (*V1NetworkPeersListForbidden) Code ¶
func (o *V1NetworkPeersListForbidden) Code() int
Code gets the status code for the v1 network peers list forbidden response
func (*V1NetworkPeersListForbidden) Error ¶
func (o *V1NetworkPeersListForbidden) Error() string
func (*V1NetworkPeersListForbidden) GetPayload ¶
func (o *V1NetworkPeersListForbidden) GetPayload() *models.Error
func (*V1NetworkPeersListForbidden) IsClientError ¶
func (o *V1NetworkPeersListForbidden) IsClientError() bool
IsClientError returns true when this v1 network peers list forbidden response has a 4xx status code
func (*V1NetworkPeersListForbidden) IsCode ¶
func (o *V1NetworkPeersListForbidden) IsCode(code int) bool
IsCode returns true when this v1 network peers list forbidden response a status code equal to that given
func (*V1NetworkPeersListForbidden) IsRedirect ¶
func (o *V1NetworkPeersListForbidden) IsRedirect() bool
IsRedirect returns true when this v1 network peers list forbidden response has a 3xx status code
func (*V1NetworkPeersListForbidden) IsServerError ¶
func (o *V1NetworkPeersListForbidden) IsServerError() bool
IsServerError returns true when this v1 network peers list forbidden response has a 5xx status code
func (*V1NetworkPeersListForbidden) IsSuccess ¶
func (o *V1NetworkPeersListForbidden) IsSuccess() bool
IsSuccess returns true when this v1 network peers list forbidden response has a 2xx status code
func (*V1NetworkPeersListForbidden) String ¶
func (o *V1NetworkPeersListForbidden) String() string
type V1NetworkPeersListInternalServerError ¶
V1NetworkPeersListInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewV1NetworkPeersListInternalServerError ¶
func NewV1NetworkPeersListInternalServerError() *V1NetworkPeersListInternalServerError
NewV1NetworkPeersListInternalServerError creates a V1NetworkPeersListInternalServerError with default headers values
func (*V1NetworkPeersListInternalServerError) Code ¶
func (o *V1NetworkPeersListInternalServerError) Code() int
Code gets the status code for the v1 network peers list internal server error response
func (*V1NetworkPeersListInternalServerError) Error ¶
func (o *V1NetworkPeersListInternalServerError) Error() string
func (*V1NetworkPeersListInternalServerError) GetPayload ¶
func (o *V1NetworkPeersListInternalServerError) GetPayload() *models.Error
func (*V1NetworkPeersListInternalServerError) IsClientError ¶
func (o *V1NetworkPeersListInternalServerError) IsClientError() bool
IsClientError returns true when this v1 network peers list internal server error response has a 4xx status code
func (*V1NetworkPeersListInternalServerError) IsCode ¶
func (o *V1NetworkPeersListInternalServerError) IsCode(code int) bool
IsCode returns true when this v1 network peers list internal server error response a status code equal to that given
func (*V1NetworkPeersListInternalServerError) IsRedirect ¶
func (o *V1NetworkPeersListInternalServerError) IsRedirect() bool
IsRedirect returns true when this v1 network peers list internal server error response has a 3xx status code
func (*V1NetworkPeersListInternalServerError) IsServerError ¶
func (o *V1NetworkPeersListInternalServerError) IsServerError() bool
IsServerError returns true when this v1 network peers list internal server error response has a 5xx status code
func (*V1NetworkPeersListInternalServerError) IsSuccess ¶
func (o *V1NetworkPeersListInternalServerError) IsSuccess() bool
IsSuccess returns true when this v1 network peers list internal server error response has a 2xx status code
func (*V1NetworkPeersListInternalServerError) String ¶
func (o *V1NetworkPeersListInternalServerError) String() string
type V1NetworkPeersListNotFound ¶
V1NetworkPeersListNotFound describes a response with status code 404, with default header values.
Not Found
func NewV1NetworkPeersListNotFound ¶
func NewV1NetworkPeersListNotFound() *V1NetworkPeersListNotFound
NewV1NetworkPeersListNotFound creates a V1NetworkPeersListNotFound with default headers values
func (*V1NetworkPeersListNotFound) Code ¶
func (o *V1NetworkPeersListNotFound) Code() int
Code gets the status code for the v1 network peers list not found response
func (*V1NetworkPeersListNotFound) Error ¶
func (o *V1NetworkPeersListNotFound) Error() string
func (*V1NetworkPeersListNotFound) GetPayload ¶
func (o *V1NetworkPeersListNotFound) GetPayload() *models.Error
func (*V1NetworkPeersListNotFound) IsClientError ¶
func (o *V1NetworkPeersListNotFound) IsClientError() bool
IsClientError returns true when this v1 network peers list not found response has a 4xx status code
func (*V1NetworkPeersListNotFound) IsCode ¶
func (o *V1NetworkPeersListNotFound) IsCode(code int) bool
IsCode returns true when this v1 network peers list not found response a status code equal to that given
func (*V1NetworkPeersListNotFound) IsRedirect ¶
func (o *V1NetworkPeersListNotFound) IsRedirect() bool
IsRedirect returns true when this v1 network peers list not found response has a 3xx status code
func (*V1NetworkPeersListNotFound) IsServerError ¶
func (o *V1NetworkPeersListNotFound) IsServerError() bool
IsServerError returns true when this v1 network peers list not found response has a 5xx status code
func (*V1NetworkPeersListNotFound) IsSuccess ¶
func (o *V1NetworkPeersListNotFound) IsSuccess() bool
IsSuccess returns true when this v1 network peers list not found response has a 2xx status code
func (*V1NetworkPeersListNotFound) String ¶
func (o *V1NetworkPeersListNotFound) String() string
type V1NetworkPeersListOK ¶
type V1NetworkPeersListOK struct {
Payload *models.NetworkPeers
}
V1NetworkPeersListOK describes a response with status code 200, with default header values.
OK
func NewV1NetworkPeersListOK ¶
func NewV1NetworkPeersListOK() *V1NetworkPeersListOK
NewV1NetworkPeersListOK creates a V1NetworkPeersListOK with default headers values
func (*V1NetworkPeersListOK) Code ¶
func (o *V1NetworkPeersListOK) Code() int
Code gets the status code for the v1 network peers list o k response
func (*V1NetworkPeersListOK) Error ¶
func (o *V1NetworkPeersListOK) Error() string
func (*V1NetworkPeersListOK) GetPayload ¶
func (o *V1NetworkPeersListOK) GetPayload() *models.NetworkPeers
func (*V1NetworkPeersListOK) IsClientError ¶
func (o *V1NetworkPeersListOK) IsClientError() bool
IsClientError returns true when this v1 network peers list o k response has a 4xx status code
func (*V1NetworkPeersListOK) IsCode ¶
func (o *V1NetworkPeersListOK) IsCode(code int) bool
IsCode returns true when this v1 network peers list o k response a status code equal to that given
func (*V1NetworkPeersListOK) IsRedirect ¶
func (o *V1NetworkPeersListOK) IsRedirect() bool
IsRedirect returns true when this v1 network peers list o k response has a 3xx status code
func (*V1NetworkPeersListOK) IsServerError ¶
func (o *V1NetworkPeersListOK) IsServerError() bool
IsServerError returns true when this v1 network peers list o k response has a 5xx status code
func (*V1NetworkPeersListOK) IsSuccess ¶
func (o *V1NetworkPeersListOK) IsSuccess() bool
IsSuccess returns true when this v1 network peers list o k response has a 2xx status code
func (*V1NetworkPeersListOK) String ¶
func (o *V1NetworkPeersListOK) String() string
type V1NetworkPeersListParams ¶
type V1NetworkPeersListParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
V1NetworkPeersListParams contains all the parameters to send to the API endpoint
for the v1 network peers list operation. Typically these are written to a http.Request.
func NewV1NetworkPeersListParams ¶
func NewV1NetworkPeersListParams() *V1NetworkPeersListParams
NewV1NetworkPeersListParams creates a new V1NetworkPeersListParams 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 NewV1NetworkPeersListParamsWithContext ¶
func NewV1NetworkPeersListParamsWithContext(ctx context.Context) *V1NetworkPeersListParams
NewV1NetworkPeersListParamsWithContext creates a new V1NetworkPeersListParams object with the ability to set a context for a request.
func NewV1NetworkPeersListParamsWithHTTPClient ¶
func NewV1NetworkPeersListParamsWithHTTPClient(client *http.Client) *V1NetworkPeersListParams
NewV1NetworkPeersListParamsWithHTTPClient creates a new V1NetworkPeersListParams object with the ability to set a custom HTTPClient for a request.
func NewV1NetworkPeersListParamsWithTimeout ¶
func NewV1NetworkPeersListParamsWithTimeout(timeout time.Duration) *V1NetworkPeersListParams
NewV1NetworkPeersListParamsWithTimeout creates a new V1NetworkPeersListParams object with the ability to set a timeout on a request.
func (*V1NetworkPeersListParams) SetContext ¶
func (o *V1NetworkPeersListParams) SetContext(ctx context.Context)
SetContext adds the context to the v1 network peers list params
func (*V1NetworkPeersListParams) SetDefaults ¶
func (o *V1NetworkPeersListParams) SetDefaults()
SetDefaults hydrates default values in the v1 network peers list params (not the query body).
All values with no default are reset to their zero value.
func (*V1NetworkPeersListParams) SetHTTPClient ¶
func (o *V1NetworkPeersListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the v1 network peers list params
func (*V1NetworkPeersListParams) SetTimeout ¶
func (o *V1NetworkPeersListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the v1 network peers list params
func (*V1NetworkPeersListParams) WithContext ¶
func (o *V1NetworkPeersListParams) WithContext(ctx context.Context) *V1NetworkPeersListParams
WithContext adds the context to the v1 network peers list params
func (*V1NetworkPeersListParams) WithDefaults ¶
func (o *V1NetworkPeersListParams) WithDefaults() *V1NetworkPeersListParams
WithDefaults hydrates default values in the v1 network peers list params (not the query body).
All values with no default are reset to their zero value.
func (*V1NetworkPeersListParams) WithHTTPClient ¶
func (o *V1NetworkPeersListParams) WithHTTPClient(client *http.Client) *V1NetworkPeersListParams
WithHTTPClient adds the HTTPClient to the v1 network peers list params
func (*V1NetworkPeersListParams) WithTimeout ¶
func (o *V1NetworkPeersListParams) WithTimeout(timeout time.Duration) *V1NetworkPeersListParams
WithTimeout adds the timeout to the v1 network peers list params
func (*V1NetworkPeersListParams) WriteToRequest ¶
func (o *V1NetworkPeersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type V1NetworkPeersListReader ¶
type V1NetworkPeersListReader struct {
// contains filtered or unexported fields
}
V1NetworkPeersListReader is a Reader for the V1NetworkPeersList structure.
func (*V1NetworkPeersListReader) ReadResponse ¶
func (o *V1NetworkPeersListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type V1NetworkPeersListUnauthorized ¶
type V1NetworkPeersListUnauthorized struct {
}V1NetworkPeersListUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewV1NetworkPeersListUnauthorized ¶
func NewV1NetworkPeersListUnauthorized() *V1NetworkPeersListUnauthorized
NewV1NetworkPeersListUnauthorized creates a V1NetworkPeersListUnauthorized with default headers values
func (*V1NetworkPeersListUnauthorized) Code ¶
func (o *V1NetworkPeersListUnauthorized) Code() int
Code gets the status code for the v1 network peers list unauthorized response
func (*V1NetworkPeersListUnauthorized) Error ¶
func (o *V1NetworkPeersListUnauthorized) Error() string
func (*V1NetworkPeersListUnauthorized) GetPayload ¶
func (o *V1NetworkPeersListUnauthorized) GetPayload() *models.Error
func (*V1NetworkPeersListUnauthorized) IsClientError ¶
func (o *V1NetworkPeersListUnauthorized) IsClientError() bool
IsClientError returns true when this v1 network peers list unauthorized response has a 4xx status code
func (*V1NetworkPeersListUnauthorized) IsCode ¶
func (o *V1NetworkPeersListUnauthorized) IsCode(code int) bool
IsCode returns true when this v1 network peers list unauthorized response a status code equal to that given
func (*V1NetworkPeersListUnauthorized) IsRedirect ¶
func (o *V1NetworkPeersListUnauthorized) IsRedirect() bool
IsRedirect returns true when this v1 network peers list unauthorized response has a 3xx status code
func (*V1NetworkPeersListUnauthorized) IsServerError ¶
func (o *V1NetworkPeersListUnauthorized) IsServerError() bool
IsServerError returns true when this v1 network peers list unauthorized response has a 5xx status code
func (*V1NetworkPeersListUnauthorized) IsSuccess ¶
func (o *V1NetworkPeersListUnauthorized) IsSuccess() bool
IsSuccess returns true when this v1 network peers list unauthorized response has a 2xx status code
func (*V1NetworkPeersListUnauthorized) String ¶
func (o *V1NetworkPeersListUnauthorized) String() string