vpn

package
v0.28.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 11 Imported by: 1

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 vpn API

func (*Client) GetVPNAuthKey

func (a *Client) GetVPNAuthKey(params *GetVPNAuthKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVPNAuthKeyOK, error)

GetVPNAuthKey creates auth key to connect to project s v p n

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 {
	GetVPNAuthKey(params *GetVPNAuthKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVPNAuthKeyOK, 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 vpn API client.

type GetVPNAuthKeyDefault

type GetVPNAuthKeyDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

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

Error

func NewGetVPNAuthKeyDefault

func NewGetVPNAuthKeyDefault(code int) *GetVPNAuthKeyDefault

NewGetVPNAuthKeyDefault creates a GetVPNAuthKeyDefault with default headers values

func (*GetVPNAuthKeyDefault) Code

func (o *GetVPNAuthKeyDefault) Code() int

Code gets the status code for the get v p n auth key default response

func (*GetVPNAuthKeyDefault) Error

func (o *GetVPNAuthKeyDefault) Error() string

func (*GetVPNAuthKeyDefault) GetPayload

func (*GetVPNAuthKeyDefault) IsClientError

func (o *GetVPNAuthKeyDefault) IsClientError() bool

IsClientError returns true when this get v p n auth key default response has a 4xx status code

func (*GetVPNAuthKeyDefault) IsCode

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

IsCode returns true when this get v p n auth key default response a status code equal to that given

func (*GetVPNAuthKeyDefault) IsRedirect

func (o *GetVPNAuthKeyDefault) IsRedirect() bool

IsRedirect returns true when this get v p n auth key default response has a 3xx status code

func (*GetVPNAuthKeyDefault) IsServerError

func (o *GetVPNAuthKeyDefault) IsServerError() bool

IsServerError returns true when this get v p n auth key default response has a 5xx status code

func (*GetVPNAuthKeyDefault) IsSuccess

func (o *GetVPNAuthKeyDefault) IsSuccess() bool

IsSuccess returns true when this get v p n auth key default response has a 2xx status code

func (*GetVPNAuthKeyDefault) String

func (o *GetVPNAuthKeyDefault) String() string

type GetVPNAuthKeyOK

type GetVPNAuthKeyOK struct {
	Payload *models.V1VPNResponse
}

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

OK

func NewGetVPNAuthKeyOK

func NewGetVPNAuthKeyOK() *GetVPNAuthKeyOK

NewGetVPNAuthKeyOK creates a GetVPNAuthKeyOK with default headers values

func (*GetVPNAuthKeyOK) Code added in v0.22.1

func (o *GetVPNAuthKeyOK) Code() int

Code gets the status code for the get v p n auth key o k response

func (*GetVPNAuthKeyOK) Error

func (o *GetVPNAuthKeyOK) Error() string

func (*GetVPNAuthKeyOK) GetPayload

func (o *GetVPNAuthKeyOK) GetPayload() *models.V1VPNResponse

func (*GetVPNAuthKeyOK) IsClientError

func (o *GetVPNAuthKeyOK) IsClientError() bool

IsClientError returns true when this get v p n auth key o k response has a 4xx status code

func (*GetVPNAuthKeyOK) IsCode

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

IsCode returns true when this get v p n auth key o k response a status code equal to that given

func (*GetVPNAuthKeyOK) IsRedirect

func (o *GetVPNAuthKeyOK) IsRedirect() bool

IsRedirect returns true when this get v p n auth key o k response has a 3xx status code

func (*GetVPNAuthKeyOK) IsServerError

func (o *GetVPNAuthKeyOK) IsServerError() bool

IsServerError returns true when this get v p n auth key o k response has a 5xx status code

func (*GetVPNAuthKeyOK) IsSuccess

func (o *GetVPNAuthKeyOK) IsSuccess() bool

IsSuccess returns true when this get v p n auth key o k response has a 2xx status code

func (*GetVPNAuthKeyOK) String

func (o *GetVPNAuthKeyOK) String() string

type GetVPNAuthKeyParams

type GetVPNAuthKeyParams struct {

	// Body.
	Body *models.V1VPNRequest

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

GetVPNAuthKeyParams contains all the parameters to send to the API endpoint

for the get v p n auth key operation.

Typically these are written to a http.Request.

func NewGetVPNAuthKeyParams

func NewGetVPNAuthKeyParams() *GetVPNAuthKeyParams

NewGetVPNAuthKeyParams creates a new GetVPNAuthKeyParams 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 NewGetVPNAuthKeyParamsWithContext

func NewGetVPNAuthKeyParamsWithContext(ctx context.Context) *GetVPNAuthKeyParams

NewGetVPNAuthKeyParamsWithContext creates a new GetVPNAuthKeyParams object with the ability to set a context for a request.

func NewGetVPNAuthKeyParamsWithHTTPClient

func NewGetVPNAuthKeyParamsWithHTTPClient(client *http.Client) *GetVPNAuthKeyParams

NewGetVPNAuthKeyParamsWithHTTPClient creates a new GetVPNAuthKeyParams object with the ability to set a custom HTTPClient for a request.

func NewGetVPNAuthKeyParamsWithTimeout

func NewGetVPNAuthKeyParamsWithTimeout(timeout time.Duration) *GetVPNAuthKeyParams

NewGetVPNAuthKeyParamsWithTimeout creates a new GetVPNAuthKeyParams object with the ability to set a timeout on a request.

func (*GetVPNAuthKeyParams) SetBody

func (o *GetVPNAuthKeyParams) SetBody(body *models.V1VPNRequest)

SetBody adds the body to the get v p n auth key params

func (*GetVPNAuthKeyParams) SetContext

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

SetContext adds the context to the get v p n auth key params

func (*GetVPNAuthKeyParams) SetDefaults

func (o *GetVPNAuthKeyParams) SetDefaults()

SetDefaults hydrates default values in the get v p n auth key params (not the query body).

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

func (*GetVPNAuthKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v p n auth key params

func (*GetVPNAuthKeyParams) SetTimeout

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

SetTimeout adds the timeout to the get v p n auth key params

func (*GetVPNAuthKeyParams) WithBody

WithBody adds the body to the get v p n auth key params

func (*GetVPNAuthKeyParams) WithContext

WithContext adds the context to the get v p n auth key params

func (*GetVPNAuthKeyParams) WithDefaults

func (o *GetVPNAuthKeyParams) WithDefaults() *GetVPNAuthKeyParams

WithDefaults hydrates default values in the get v p n auth key params (not the query body).

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

func (*GetVPNAuthKeyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get v p n auth key params

func (*GetVPNAuthKeyParams) WithTimeout

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

WithTimeout adds the timeout to the get v p n auth key params

func (*GetVPNAuthKeyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetVPNAuthKeyReader

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

GetVPNAuthKeyReader is a Reader for the GetVPNAuthKey structure.

func (*GetVPNAuthKeyReader) ReadResponse

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