Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateProfile(params *CreateProfileParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateProfileOK, error)
- func (a *Client) DeleteProfile(params *DeleteProfileParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteProfileNoContent, error)
- func (a *Client) GetProfile(params *GetProfileParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProfileOK, error)
- func (a *Client) GetProfiles(params *GetProfilesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProfilesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateProfile(params *UpdateProfileParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateProfileOK, error)
- type ClientOption
- type ClientService
- type CreateProfileDefault
- type CreateProfileOK
- type CreateProfileParams
- func (o *CreateProfileParams) SetContext(ctx context.Context)
- func (o *CreateProfileParams) SetDefaults()
- func (o *CreateProfileParams) SetHTTPClient(client *http.Client)
- func (o *CreateProfileParams) SetRequest(request *models.WireGuardProfileCreateRequest)
- func (o *CreateProfileParams) SetTimeout(timeout time.Duration)
- func (o *CreateProfileParams) WithContext(ctx context.Context) *CreateProfileParams
- func (o *CreateProfileParams) WithDefaults() *CreateProfileParams
- func (o *CreateProfileParams) WithHTTPClient(client *http.Client) *CreateProfileParams
- func (o *CreateProfileParams) WithRequest(request *models.WireGuardProfileCreateRequest) *CreateProfileParams
- func (o *CreateProfileParams) WithTimeout(timeout time.Duration) *CreateProfileParams
- func (o *CreateProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateProfileReader
- type DeleteProfileDefault
- type DeleteProfileNoContent
- type DeleteProfileParams
- func (o *DeleteProfileParams) SetContext(ctx context.Context)
- func (o *DeleteProfileParams) SetDefaults()
- func (o *DeleteProfileParams) SetHTTPClient(client *http.Client)
- func (o *DeleteProfileParams) SetProfileID(profileID strfmt.UUID)
- func (o *DeleteProfileParams) SetTimeout(timeout time.Duration)
- func (o *DeleteProfileParams) WithContext(ctx context.Context) *DeleteProfileParams
- func (o *DeleteProfileParams) WithDefaults() *DeleteProfileParams
- func (o *DeleteProfileParams) WithHTTPClient(client *http.Client) *DeleteProfileParams
- func (o *DeleteProfileParams) WithProfileID(profileID strfmt.UUID) *DeleteProfileParams
- func (o *DeleteProfileParams) WithTimeout(timeout time.Duration) *DeleteProfileParams
- func (o *DeleteProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteProfileReader
- type GetProfileDefault
- type GetProfileOK
- type GetProfileParams
- func (o *GetProfileParams) SetContext(ctx context.Context)
- func (o *GetProfileParams) SetDefaults()
- func (o *GetProfileParams) SetHTTPClient(client *http.Client)
- func (o *GetProfileParams) SetProfileID(profileID strfmt.UUID)
- func (o *GetProfileParams) SetTimeout(timeout time.Duration)
- func (o *GetProfileParams) WithContext(ctx context.Context) *GetProfileParams
- func (o *GetProfileParams) WithDefaults() *GetProfileParams
- func (o *GetProfileParams) WithHTTPClient(client *http.Client) *GetProfileParams
- func (o *GetProfileParams) WithProfileID(profileID strfmt.UUID) *GetProfileParams
- func (o *GetProfileParams) WithTimeout(timeout time.Duration) *GetProfileParams
- func (o *GetProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProfileReader
- type GetProfilesDefault
- type GetProfilesOK
- type GetProfilesParams
- func (o *GetProfilesParams) SetContext(ctx context.Context)
- func (o *GetProfilesParams) SetDefaults()
- func (o *GetProfilesParams) SetHTTPClient(client *http.Client)
- func (o *GetProfilesParams) SetTimeout(timeout time.Duration)
- func (o *GetProfilesParams) WithContext(ctx context.Context) *GetProfilesParams
- func (o *GetProfilesParams) WithDefaults() *GetProfilesParams
- func (o *GetProfilesParams) WithHTTPClient(client *http.Client) *GetProfilesParams
- func (o *GetProfilesParams) WithTimeout(timeout time.Duration) *GetProfilesParams
- func (o *GetProfilesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProfilesReader
- type UpdateProfileDefault
- type UpdateProfileOK
- type UpdateProfileParams
- func (o *UpdateProfileParams) SetContext(ctx context.Context)
- func (o *UpdateProfileParams) SetDefaults()
- func (o *UpdateProfileParams) SetHTTPClient(client *http.Client)
- func (o *UpdateProfileParams) SetProfileID(profileID strfmt.UUID)
- func (o *UpdateProfileParams) SetRequest(request *models.WireGuardProfileUpdateRequest)
- func (o *UpdateProfileParams) SetTimeout(timeout time.Duration)
- func (o *UpdateProfileParams) WithContext(ctx context.Context) *UpdateProfileParams
- func (o *UpdateProfileParams) WithDefaults() *UpdateProfileParams
- func (o *UpdateProfileParams) WithHTTPClient(client *http.Client) *UpdateProfileParams
- func (o *UpdateProfileParams) WithProfileID(profileID strfmt.UUID) *UpdateProfileParams
- func (o *UpdateProfileParams) WithRequest(request *models.WireGuardProfileUpdateRequest) *UpdateProfileParams
- func (o *UpdateProfileParams) WithTimeout(timeout time.Duration) *UpdateProfileParams
- func (o *UpdateProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateProfileReader
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 wireguard API
func (*Client) CreateProfile ¶
func (a *Client) CreateProfile(params *CreateProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProfileOK, error)
CreateProfile creates new wire guard profile
func (*Client) DeleteProfile ¶
func (a *Client) DeleteProfile(params *DeleteProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProfileNoContent, error)
DeleteProfile deletes wire guarg profile
func (*Client) GetProfile ¶
func (a *Client) GetProfile(params *GetProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProfileOK, error)
GetProfile retrieves wire guarg profile
func (*Client) GetProfiles ¶
func (a *Client) GetProfiles(params *GetProfilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProfilesOK, error)
GetProfiles retrieves list of wire guard profiles
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateProfile ¶
func (a *Client) UpdateProfile(params *UpdateProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProfileOK, error)
UpdateProfile updates profile
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateProfile(params *CreateProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProfileOK, error) DeleteProfile(params *DeleteProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProfileNoContent, error) GetProfile(params *GetProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProfileOK, error) GetProfiles(params *GetProfilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProfilesOK, error) UpdateProfile(params *UpdateProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProfileOK, 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 wireguard API client.
type CreateProfileDefault ¶
type CreateProfileDefault struct { Payload *models.Error // contains filtered or unexported fields }
CreateProfileDefault describes a response with status code -1, with default header values.
Unexpected error
func NewCreateProfileDefault ¶
func NewCreateProfileDefault(code int) *CreateProfileDefault
NewCreateProfileDefault creates a CreateProfileDefault with default headers values
func (*CreateProfileDefault) Code ¶
func (o *CreateProfileDefault) Code() int
Code gets the status code for the create profile default response
func (*CreateProfileDefault) Error ¶
func (o *CreateProfileDefault) Error() string
func (*CreateProfileDefault) GetPayload ¶
func (o *CreateProfileDefault) GetPayload() *models.Error
type CreateProfileOK ¶
type CreateProfileOK struct {
Payload *models.WireGuardProfile
}
CreateProfileOK describes a response with status code 200, with default header values.
OK
func NewCreateProfileOK ¶
func NewCreateProfileOK() *CreateProfileOK
NewCreateProfileOK creates a CreateProfileOK with default headers values
func (*CreateProfileOK) Error ¶
func (o *CreateProfileOK) Error() string
func (*CreateProfileOK) GetPayload ¶
func (o *CreateProfileOK) GetPayload() *models.WireGuardProfile
type CreateProfileParams ¶
type CreateProfileParams struct { // Request. Request *models.WireGuardProfileCreateRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateProfileParams contains all the parameters to send to the API endpoint
for the create profile operation. Typically these are written to a http.Request.
func NewCreateProfileParams ¶
func NewCreateProfileParams() *CreateProfileParams
NewCreateProfileParams creates a new CreateProfileParams 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 NewCreateProfileParamsWithContext ¶
func NewCreateProfileParamsWithContext(ctx context.Context) *CreateProfileParams
NewCreateProfileParamsWithContext creates a new CreateProfileParams object with the ability to set a context for a request.
func NewCreateProfileParamsWithHTTPClient ¶
func NewCreateProfileParamsWithHTTPClient(client *http.Client) *CreateProfileParams
NewCreateProfileParamsWithHTTPClient creates a new CreateProfileParams object with the ability to set a custom HTTPClient for a request.
func NewCreateProfileParamsWithTimeout ¶
func NewCreateProfileParamsWithTimeout(timeout time.Duration) *CreateProfileParams
NewCreateProfileParamsWithTimeout creates a new CreateProfileParams object with the ability to set a timeout on a request.
func (*CreateProfileParams) SetContext ¶
func (o *CreateProfileParams) SetContext(ctx context.Context)
SetContext adds the context to the create profile params
func (*CreateProfileParams) SetDefaults ¶
func (o *CreateProfileParams) SetDefaults()
SetDefaults hydrates default values in the create profile params (not the query body).
All values with no default are reset to their zero value.
func (*CreateProfileParams) SetHTTPClient ¶
func (o *CreateProfileParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create profile params
func (*CreateProfileParams) SetRequest ¶
func (o *CreateProfileParams) SetRequest(request *models.WireGuardProfileCreateRequest)
SetRequest adds the request to the create profile params
func (*CreateProfileParams) SetTimeout ¶
func (o *CreateProfileParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create profile params
func (*CreateProfileParams) WithContext ¶
func (o *CreateProfileParams) WithContext(ctx context.Context) *CreateProfileParams
WithContext adds the context to the create profile params
func (*CreateProfileParams) WithDefaults ¶
func (o *CreateProfileParams) WithDefaults() *CreateProfileParams
WithDefaults hydrates default values in the create profile params (not the query body).
All values with no default are reset to their zero value.
func (*CreateProfileParams) WithHTTPClient ¶
func (o *CreateProfileParams) WithHTTPClient(client *http.Client) *CreateProfileParams
WithHTTPClient adds the HTTPClient to the create profile params
func (*CreateProfileParams) WithRequest ¶
func (o *CreateProfileParams) WithRequest(request *models.WireGuardProfileCreateRequest) *CreateProfileParams
WithRequest adds the request to the create profile params
func (*CreateProfileParams) WithTimeout ¶
func (o *CreateProfileParams) WithTimeout(timeout time.Duration) *CreateProfileParams
WithTimeout adds the timeout to the create profile params
func (*CreateProfileParams) WriteToRequest ¶
func (o *CreateProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateProfileReader ¶
type CreateProfileReader struct {
// contains filtered or unexported fields
}
CreateProfileReader is a Reader for the CreateProfile structure.
func (*CreateProfileReader) ReadResponse ¶
func (o *CreateProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteProfileDefault ¶
type DeleteProfileDefault struct { Payload *models.Error // contains filtered or unexported fields }
DeleteProfileDefault describes a response with status code -1, with default header values.
Unexpected error
func NewDeleteProfileDefault ¶
func NewDeleteProfileDefault(code int) *DeleteProfileDefault
NewDeleteProfileDefault creates a DeleteProfileDefault with default headers values
func (*DeleteProfileDefault) Code ¶
func (o *DeleteProfileDefault) Code() int
Code gets the status code for the delete profile default response
func (*DeleteProfileDefault) Error ¶
func (o *DeleteProfileDefault) Error() string
func (*DeleteProfileDefault) GetPayload ¶
func (o *DeleteProfileDefault) GetPayload() *models.Error
type DeleteProfileNoContent ¶
type DeleteProfileNoContent struct { }
DeleteProfileNoContent describes a response with status code 204, with default header values.
No content
func NewDeleteProfileNoContent ¶
func NewDeleteProfileNoContent() *DeleteProfileNoContent
NewDeleteProfileNoContent creates a DeleteProfileNoContent with default headers values
func (*DeleteProfileNoContent) Error ¶
func (o *DeleteProfileNoContent) Error() string
type DeleteProfileParams ¶
type DeleteProfileParams struct { // ProfileID. // // Format: uuid ProfileID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteProfileParams contains all the parameters to send to the API endpoint
for the delete profile operation. Typically these are written to a http.Request.
func NewDeleteProfileParams ¶
func NewDeleteProfileParams() *DeleteProfileParams
NewDeleteProfileParams creates a new DeleteProfileParams 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 NewDeleteProfileParamsWithContext ¶
func NewDeleteProfileParamsWithContext(ctx context.Context) *DeleteProfileParams
NewDeleteProfileParamsWithContext creates a new DeleteProfileParams object with the ability to set a context for a request.
func NewDeleteProfileParamsWithHTTPClient ¶
func NewDeleteProfileParamsWithHTTPClient(client *http.Client) *DeleteProfileParams
NewDeleteProfileParamsWithHTTPClient creates a new DeleteProfileParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteProfileParamsWithTimeout ¶
func NewDeleteProfileParamsWithTimeout(timeout time.Duration) *DeleteProfileParams
NewDeleteProfileParamsWithTimeout creates a new DeleteProfileParams object with the ability to set a timeout on a request.
func (*DeleteProfileParams) SetContext ¶
func (o *DeleteProfileParams) SetContext(ctx context.Context)
SetContext adds the context to the delete profile params
func (*DeleteProfileParams) SetDefaults ¶
func (o *DeleteProfileParams) SetDefaults()
SetDefaults hydrates default values in the delete profile params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteProfileParams) SetHTTPClient ¶
func (o *DeleteProfileParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete profile params
func (*DeleteProfileParams) SetProfileID ¶
func (o *DeleteProfileParams) SetProfileID(profileID strfmt.UUID)
SetProfileID adds the profileId to the delete profile params
func (*DeleteProfileParams) SetTimeout ¶
func (o *DeleteProfileParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete profile params
func (*DeleteProfileParams) WithContext ¶
func (o *DeleteProfileParams) WithContext(ctx context.Context) *DeleteProfileParams
WithContext adds the context to the delete profile params
func (*DeleteProfileParams) WithDefaults ¶
func (o *DeleteProfileParams) WithDefaults() *DeleteProfileParams
WithDefaults hydrates default values in the delete profile params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteProfileParams) WithHTTPClient ¶
func (o *DeleteProfileParams) WithHTTPClient(client *http.Client) *DeleteProfileParams
WithHTTPClient adds the HTTPClient to the delete profile params
func (*DeleteProfileParams) WithProfileID ¶
func (o *DeleteProfileParams) WithProfileID(profileID strfmt.UUID) *DeleteProfileParams
WithProfileID adds the profileID to the delete profile params
func (*DeleteProfileParams) WithTimeout ¶
func (o *DeleteProfileParams) WithTimeout(timeout time.Duration) *DeleteProfileParams
WithTimeout adds the timeout to the delete profile params
func (*DeleteProfileParams) WriteToRequest ¶
func (o *DeleteProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteProfileReader ¶
type DeleteProfileReader struct {
// contains filtered or unexported fields
}
DeleteProfileReader is a Reader for the DeleteProfile structure.
func (*DeleteProfileReader) ReadResponse ¶
func (o *DeleteProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProfileDefault ¶
GetProfileDefault describes a response with status code -1, with default header values.
Unexpected error
func NewGetProfileDefault ¶
func NewGetProfileDefault(code int) *GetProfileDefault
NewGetProfileDefault creates a GetProfileDefault with default headers values
func (*GetProfileDefault) Code ¶
func (o *GetProfileDefault) Code() int
Code gets the status code for the get profile default response
func (*GetProfileDefault) Error ¶
func (o *GetProfileDefault) Error() string
func (*GetProfileDefault) GetPayload ¶
func (o *GetProfileDefault) GetPayload() *models.Error
type GetProfileOK ¶
type GetProfileOK struct {
Payload *models.WireGuardProfile
}
GetProfileOK describes a response with status code 200, with default header values.
OK
func NewGetProfileOK ¶
func NewGetProfileOK() *GetProfileOK
NewGetProfileOK creates a GetProfileOK with default headers values
func (*GetProfileOK) Error ¶
func (o *GetProfileOK) Error() string
func (*GetProfileOK) GetPayload ¶
func (o *GetProfileOK) GetPayload() *models.WireGuardProfile
type GetProfileParams ¶
type GetProfileParams struct { // ProfileID. // // Format: uuid ProfileID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProfileParams contains all the parameters to send to the API endpoint
for the get profile operation. Typically these are written to a http.Request.
func NewGetProfileParams ¶
func NewGetProfileParams() *GetProfileParams
NewGetProfileParams creates a new GetProfileParams 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 NewGetProfileParamsWithContext ¶
func NewGetProfileParamsWithContext(ctx context.Context) *GetProfileParams
NewGetProfileParamsWithContext creates a new GetProfileParams object with the ability to set a context for a request.
func NewGetProfileParamsWithHTTPClient ¶
func NewGetProfileParamsWithHTTPClient(client *http.Client) *GetProfileParams
NewGetProfileParamsWithHTTPClient creates a new GetProfileParams object with the ability to set a custom HTTPClient for a request.
func NewGetProfileParamsWithTimeout ¶
func NewGetProfileParamsWithTimeout(timeout time.Duration) *GetProfileParams
NewGetProfileParamsWithTimeout creates a new GetProfileParams object with the ability to set a timeout on a request.
func (*GetProfileParams) SetContext ¶
func (o *GetProfileParams) SetContext(ctx context.Context)
SetContext adds the context to the get profile params
func (*GetProfileParams) SetDefaults ¶
func (o *GetProfileParams) SetDefaults()
SetDefaults hydrates default values in the get profile params (not the query body).
All values with no default are reset to their zero value.
func (*GetProfileParams) SetHTTPClient ¶
func (o *GetProfileParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get profile params
func (*GetProfileParams) SetProfileID ¶
func (o *GetProfileParams) SetProfileID(profileID strfmt.UUID)
SetProfileID adds the profileId to the get profile params
func (*GetProfileParams) SetTimeout ¶
func (o *GetProfileParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get profile params
func (*GetProfileParams) WithContext ¶
func (o *GetProfileParams) WithContext(ctx context.Context) *GetProfileParams
WithContext adds the context to the get profile params
func (*GetProfileParams) WithDefaults ¶
func (o *GetProfileParams) WithDefaults() *GetProfileParams
WithDefaults hydrates default values in the get profile params (not the query body).
All values with no default are reset to their zero value.
func (*GetProfileParams) WithHTTPClient ¶
func (o *GetProfileParams) WithHTTPClient(client *http.Client) *GetProfileParams
WithHTTPClient adds the HTTPClient to the get profile params
func (*GetProfileParams) WithProfileID ¶
func (o *GetProfileParams) WithProfileID(profileID strfmt.UUID) *GetProfileParams
WithProfileID adds the profileID to the get profile params
func (*GetProfileParams) WithTimeout ¶
func (o *GetProfileParams) WithTimeout(timeout time.Duration) *GetProfileParams
WithTimeout adds the timeout to the get profile params
func (*GetProfileParams) WriteToRequest ¶
func (o *GetProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProfileReader ¶
type GetProfileReader struct {
// contains filtered or unexported fields
}
GetProfileReader is a Reader for the GetProfile structure.
func (*GetProfileReader) ReadResponse ¶
func (o *GetProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProfilesDefault ¶
GetProfilesDefault describes a response with status code -1, with default header values.
Unexpected error
func NewGetProfilesDefault ¶
func NewGetProfilesDefault(code int) *GetProfilesDefault
NewGetProfilesDefault creates a GetProfilesDefault with default headers values
func (*GetProfilesDefault) Code ¶
func (o *GetProfilesDefault) Code() int
Code gets the status code for the get profiles default response
func (*GetProfilesDefault) Error ¶
func (o *GetProfilesDefault) Error() string
func (*GetProfilesDefault) GetPayload ¶
func (o *GetProfilesDefault) GetPayload() *models.Error
type GetProfilesOK ¶
type GetProfilesOK struct {
Payload []*models.WireGuardProfile
}
GetProfilesOK describes a response with status code 200, with default header values.
OK
func NewGetProfilesOK ¶
func NewGetProfilesOK() *GetProfilesOK
NewGetProfilesOK creates a GetProfilesOK with default headers values
func (*GetProfilesOK) Error ¶
func (o *GetProfilesOK) Error() string
func (*GetProfilesOK) GetPayload ¶
func (o *GetProfilesOK) GetPayload() []*models.WireGuardProfile
type GetProfilesParams ¶
type GetProfilesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProfilesParams contains all the parameters to send to the API endpoint
for the get profiles operation. Typically these are written to a http.Request.
func NewGetProfilesParams ¶
func NewGetProfilesParams() *GetProfilesParams
NewGetProfilesParams creates a new GetProfilesParams 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 NewGetProfilesParamsWithContext ¶
func NewGetProfilesParamsWithContext(ctx context.Context) *GetProfilesParams
NewGetProfilesParamsWithContext creates a new GetProfilesParams object with the ability to set a context for a request.
func NewGetProfilesParamsWithHTTPClient ¶
func NewGetProfilesParamsWithHTTPClient(client *http.Client) *GetProfilesParams
NewGetProfilesParamsWithHTTPClient creates a new GetProfilesParams object with the ability to set a custom HTTPClient for a request.
func NewGetProfilesParamsWithTimeout ¶
func NewGetProfilesParamsWithTimeout(timeout time.Duration) *GetProfilesParams
NewGetProfilesParamsWithTimeout creates a new GetProfilesParams object with the ability to set a timeout on a request.
func (*GetProfilesParams) SetContext ¶
func (o *GetProfilesParams) SetContext(ctx context.Context)
SetContext adds the context to the get profiles params
func (*GetProfilesParams) SetDefaults ¶
func (o *GetProfilesParams) SetDefaults()
SetDefaults hydrates default values in the get profiles params (not the query body).
All values with no default are reset to their zero value.
func (*GetProfilesParams) SetHTTPClient ¶
func (o *GetProfilesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get profiles params
func (*GetProfilesParams) SetTimeout ¶
func (o *GetProfilesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get profiles params
func (*GetProfilesParams) WithContext ¶
func (o *GetProfilesParams) WithContext(ctx context.Context) *GetProfilesParams
WithContext adds the context to the get profiles params
func (*GetProfilesParams) WithDefaults ¶
func (o *GetProfilesParams) WithDefaults() *GetProfilesParams
WithDefaults hydrates default values in the get profiles params (not the query body).
All values with no default are reset to their zero value.
func (*GetProfilesParams) WithHTTPClient ¶
func (o *GetProfilesParams) WithHTTPClient(client *http.Client) *GetProfilesParams
WithHTTPClient adds the HTTPClient to the get profiles params
func (*GetProfilesParams) WithTimeout ¶
func (o *GetProfilesParams) WithTimeout(timeout time.Duration) *GetProfilesParams
WithTimeout adds the timeout to the get profiles params
func (*GetProfilesParams) WriteToRequest ¶
func (o *GetProfilesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProfilesReader ¶
type GetProfilesReader struct {
// contains filtered or unexported fields
}
GetProfilesReader is a Reader for the GetProfiles structure.
func (*GetProfilesReader) ReadResponse ¶
func (o *GetProfilesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateProfileDefault ¶
type UpdateProfileDefault struct { Payload *models.Error // contains filtered or unexported fields }
UpdateProfileDefault describes a response with status code -1, with default header values.
error
func NewUpdateProfileDefault ¶
func NewUpdateProfileDefault(code int) *UpdateProfileDefault
NewUpdateProfileDefault creates a UpdateProfileDefault with default headers values
func (*UpdateProfileDefault) Code ¶
func (o *UpdateProfileDefault) Code() int
Code gets the status code for the update profile default response
func (*UpdateProfileDefault) Error ¶
func (o *UpdateProfileDefault) Error() string
func (*UpdateProfileDefault) GetPayload ¶
func (o *UpdateProfileDefault) GetPayload() *models.Error
type UpdateProfileOK ¶
type UpdateProfileOK struct {
Payload *models.WireGuardProfile
}
UpdateProfileOK describes a response with status code 200, with default header values.
OK
func NewUpdateProfileOK ¶
func NewUpdateProfileOK() *UpdateProfileOK
NewUpdateProfileOK creates a UpdateProfileOK with default headers values
func (*UpdateProfileOK) Error ¶
func (o *UpdateProfileOK) Error() string
func (*UpdateProfileOK) GetPayload ¶
func (o *UpdateProfileOK) GetPayload() *models.WireGuardProfile
type UpdateProfileParams ¶
type UpdateProfileParams struct { // ProfileID. // // Format: uuid ProfileID strfmt.UUID // Request. Request *models.WireGuardProfileUpdateRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateProfileParams contains all the parameters to send to the API endpoint
for the update profile operation. Typically these are written to a http.Request.
func NewUpdateProfileParams ¶
func NewUpdateProfileParams() *UpdateProfileParams
NewUpdateProfileParams creates a new UpdateProfileParams 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 NewUpdateProfileParamsWithContext ¶
func NewUpdateProfileParamsWithContext(ctx context.Context) *UpdateProfileParams
NewUpdateProfileParamsWithContext creates a new UpdateProfileParams object with the ability to set a context for a request.
func NewUpdateProfileParamsWithHTTPClient ¶
func NewUpdateProfileParamsWithHTTPClient(client *http.Client) *UpdateProfileParams
NewUpdateProfileParamsWithHTTPClient creates a new UpdateProfileParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateProfileParamsWithTimeout ¶
func NewUpdateProfileParamsWithTimeout(timeout time.Duration) *UpdateProfileParams
NewUpdateProfileParamsWithTimeout creates a new UpdateProfileParams object with the ability to set a timeout on a request.
func (*UpdateProfileParams) SetContext ¶
func (o *UpdateProfileParams) SetContext(ctx context.Context)
SetContext adds the context to the update profile params
func (*UpdateProfileParams) SetDefaults ¶
func (o *UpdateProfileParams) SetDefaults()
SetDefaults hydrates default values in the update profile params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateProfileParams) SetHTTPClient ¶
func (o *UpdateProfileParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update profile params
func (*UpdateProfileParams) SetProfileID ¶
func (o *UpdateProfileParams) SetProfileID(profileID strfmt.UUID)
SetProfileID adds the profileId to the update profile params
func (*UpdateProfileParams) SetRequest ¶
func (o *UpdateProfileParams) SetRequest(request *models.WireGuardProfileUpdateRequest)
SetRequest adds the request to the update profile params
func (*UpdateProfileParams) SetTimeout ¶
func (o *UpdateProfileParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update profile params
func (*UpdateProfileParams) WithContext ¶
func (o *UpdateProfileParams) WithContext(ctx context.Context) *UpdateProfileParams
WithContext adds the context to the update profile params
func (*UpdateProfileParams) WithDefaults ¶
func (o *UpdateProfileParams) WithDefaults() *UpdateProfileParams
WithDefaults hydrates default values in the update profile params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateProfileParams) WithHTTPClient ¶
func (o *UpdateProfileParams) WithHTTPClient(client *http.Client) *UpdateProfileParams
WithHTTPClient adds the HTTPClient to the update profile params
func (*UpdateProfileParams) WithProfileID ¶
func (o *UpdateProfileParams) WithProfileID(profileID strfmt.UUID) *UpdateProfileParams
WithProfileID adds the profileID to the update profile params
func (*UpdateProfileParams) WithRequest ¶
func (o *UpdateProfileParams) WithRequest(request *models.WireGuardProfileUpdateRequest) *UpdateProfileParams
WithRequest adds the request to the update profile params
func (*UpdateProfileParams) WithTimeout ¶
func (o *UpdateProfileParams) WithTimeout(timeout time.Duration) *UpdateProfileParams
WithTimeout adds the timeout to the update profile params
func (*UpdateProfileParams) WriteToRequest ¶
func (o *UpdateProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateProfileReader ¶
type UpdateProfileReader struct {
// contains filtered or unexported fields
}
UpdateProfileReader is a Reader for the UpdateProfile structure.
func (*UpdateProfileReader) ReadResponse ¶
func (o *UpdateProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.