sign_up

package
v0.0.0-...-c010844 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: AGPL-3.0 Imports: 11 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 sign up API

func (*Client) RequestAccess

func (a *Client) RequestAccess(params *RequestAccessParams, opts ...ClientOption) (*RequestAccessOK, error)

RequestAccess request access API

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	RequestAccess(params *RequestAccessParams, opts ...ClientOption) (*RequestAccessOK, 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 sign up API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new sign up 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 sign up 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 RequestAccessDefault

type RequestAccessDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

RequestAccessDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewRequestAccessDefault

func NewRequestAccessDefault(code int) *RequestAccessDefault

NewRequestAccessDefault creates a RequestAccessDefault with default headers values

func (*RequestAccessDefault) Code

func (o *RequestAccessDefault) Code() int

Code gets the status code for the request access default response

func (*RequestAccessDefault) Error

func (o *RequestAccessDefault) Error() string

func (*RequestAccessDefault) GetPayload

func (o *RequestAccessDefault) GetPayload() *models.RPCStatus

func (*RequestAccessDefault) IsClientError

func (o *RequestAccessDefault) IsClientError() bool

IsClientError returns true when this request access default response has a 4xx status code

func (*RequestAccessDefault) IsCode

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

IsCode returns true when this request access default response a status code equal to that given

func (*RequestAccessDefault) IsRedirect

func (o *RequestAccessDefault) IsRedirect() bool

IsRedirect returns true when this request access default response has a 3xx status code

func (*RequestAccessDefault) IsServerError

func (o *RequestAccessDefault) IsServerError() bool

IsServerError returns true when this request access default response has a 5xx status code

func (*RequestAccessDefault) IsSuccess

func (o *RequestAccessDefault) IsSuccess() bool

IsSuccess returns true when this request access default response has a 2xx status code

func (*RequestAccessDefault) String

func (o *RequestAccessDefault) String() string

type RequestAccessOK

type RequestAccessOK struct {
	Payload models.RequestAccessReply
}

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

A successful response.

func NewRequestAccessOK

func NewRequestAccessOK() *RequestAccessOK

NewRequestAccessOK creates a RequestAccessOK with default headers values

func (*RequestAccessOK) Code

func (o *RequestAccessOK) Code() int

Code gets the status code for the request access o k response

func (*RequestAccessOK) Error

func (o *RequestAccessOK) Error() string

func (*RequestAccessOK) GetPayload

func (o *RequestAccessOK) GetPayload() models.RequestAccessReply

func (*RequestAccessOK) IsClientError

func (o *RequestAccessOK) IsClientError() bool

IsClientError returns true when this request access o k response has a 4xx status code

func (*RequestAccessOK) IsCode

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

IsCode returns true when this request access o k response a status code equal to that given

func (*RequestAccessOK) IsRedirect

func (o *RequestAccessOK) IsRedirect() bool

IsRedirect returns true when this request access o k response has a 3xx status code

func (*RequestAccessOK) IsServerError

func (o *RequestAccessOK) IsServerError() bool

IsServerError returns true when this request access o k response has a 5xx status code

func (*RequestAccessOK) IsSuccess

func (o *RequestAccessOK) IsSuccess() bool

IsSuccess returns true when this request access o k response has a 2xx status code

func (*RequestAccessOK) String

func (o *RequestAccessOK) String() string

type RequestAccessParams

type RequestAccessParams struct {

	// Body.
	Body *models.RequestAccessRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RequestAccessParams contains all the parameters to send to the API endpoint

for the request access operation.

Typically these are written to a http.Request.

func NewRequestAccessParams

func NewRequestAccessParams() *RequestAccessParams

NewRequestAccessParams creates a new RequestAccessParams 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 NewRequestAccessParamsWithContext

func NewRequestAccessParamsWithContext(ctx context.Context) *RequestAccessParams

NewRequestAccessParamsWithContext creates a new RequestAccessParams object with the ability to set a context for a request.

func NewRequestAccessParamsWithHTTPClient

func NewRequestAccessParamsWithHTTPClient(client *http.Client) *RequestAccessParams

NewRequestAccessParamsWithHTTPClient creates a new RequestAccessParams object with the ability to set a custom HTTPClient for a request.

func NewRequestAccessParamsWithTimeout

func NewRequestAccessParamsWithTimeout(timeout time.Duration) *RequestAccessParams

NewRequestAccessParamsWithTimeout creates a new RequestAccessParams object with the ability to set a timeout on a request.

func (*RequestAccessParams) SetBody

SetBody adds the body to the request access params

func (*RequestAccessParams) SetContext

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

SetContext adds the context to the request access params

func (*RequestAccessParams) SetDefaults

func (o *RequestAccessParams) SetDefaults()

SetDefaults hydrates default values in the request access params (not the query body).

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

func (*RequestAccessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the request access params

func (*RequestAccessParams) SetTimeout

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

SetTimeout adds the timeout to the request access params

func (*RequestAccessParams) WithBody

WithBody adds the body to the request access params

func (*RequestAccessParams) WithContext

WithContext adds the context to the request access params

func (*RequestAccessParams) WithDefaults

func (o *RequestAccessParams) WithDefaults() *RequestAccessParams

WithDefaults hydrates default values in the request access params (not the query body).

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

func (*RequestAccessParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the request access params

func (*RequestAccessParams) WithTimeout

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

WithTimeout adds the timeout to the request access params

func (*RequestAccessParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RequestAccessReader

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

RequestAccessReader is a Reader for the RequestAccess structure.

func (*RequestAccessReader) ReadResponse

func (o *RequestAccessReader) 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