security_certificates

package
v0.0.0-...-f4869d1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCertificateConflict

type AddCertificateConflict struct {
}

AddCertificateConflict describes a response with status code 409, with default header values.

The certificate already exists in the system.

func NewAddCertificateConflict

func NewAddCertificateConflict() *AddCertificateConflict

NewAddCertificateConflict creates a AddCertificateConflict with default headers values

func (*AddCertificateConflict) Code

func (o *AddCertificateConflict) Code() int

Code gets the status code for the add certificate conflict response

func (*AddCertificateConflict) Error

func (o *AddCertificateConflict) Error() string

func (*AddCertificateConflict) IsClientError

func (o *AddCertificateConflict) IsClientError() bool

IsClientError returns true when this add certificate conflict response has a 4xx status code

func (*AddCertificateConflict) IsCode

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

IsCode returns true when this add certificate conflict response a status code equal to that given

func (*AddCertificateConflict) IsRedirect

func (o *AddCertificateConflict) IsRedirect() bool

IsRedirect returns true when this add certificate conflict response has a 3xx status code

func (*AddCertificateConflict) IsServerError

func (o *AddCertificateConflict) IsServerError() bool

IsServerError returns true when this add certificate conflict response has a 5xx status code

func (*AddCertificateConflict) IsSuccess

func (o *AddCertificateConflict) IsSuccess() bool

IsSuccess returns true when this add certificate conflict response has a 2xx status code

func (*AddCertificateConflict) String

func (o *AddCertificateConflict) String() string

type AddCertificateCreated

type AddCertificateCreated struct {
	Payload *models.APICertificate
}

AddCertificateCreated describes a response with status code 201, with default header values.

The certificate was successfully added.

func NewAddCertificateCreated

func NewAddCertificateCreated() *AddCertificateCreated

NewAddCertificateCreated creates a AddCertificateCreated with default headers values

func (*AddCertificateCreated) Code

func (o *AddCertificateCreated) Code() int

Code gets the status code for the add certificate created response

func (*AddCertificateCreated) Error

func (o *AddCertificateCreated) Error() string

func (*AddCertificateCreated) GetPayload

func (o *AddCertificateCreated) GetPayload() *models.APICertificate

func (*AddCertificateCreated) IsClientError

func (o *AddCertificateCreated) IsClientError() bool

IsClientError returns true when this add certificate created response has a 4xx status code

func (*AddCertificateCreated) IsCode

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

IsCode returns true when this add certificate created response a status code equal to that given

func (*AddCertificateCreated) IsRedirect

func (o *AddCertificateCreated) IsRedirect() bool

IsRedirect returns true when this add certificate created response has a 3xx status code

func (*AddCertificateCreated) IsServerError

func (o *AddCertificateCreated) IsServerError() bool

IsServerError returns true when this add certificate created response has a 5xx status code

func (*AddCertificateCreated) IsSuccess

func (o *AddCertificateCreated) IsSuccess() bool

IsSuccess returns true when this add certificate created response has a 2xx status code

func (*AddCertificateCreated) String

func (o *AddCertificateCreated) String() string

type AddCertificateForbidden

type AddCertificateForbidden struct {
}

AddCertificateForbidden describes a response with status code 403, with default header values.

Insufficient permissions to add certificate to the trust store.

func NewAddCertificateForbidden

func NewAddCertificateForbidden() *AddCertificateForbidden

NewAddCertificateForbidden creates a AddCertificateForbidden with default headers values

func (*AddCertificateForbidden) Code

func (o *AddCertificateForbidden) Code() int

Code gets the status code for the add certificate forbidden response

func (*AddCertificateForbidden) Error

func (o *AddCertificateForbidden) Error() string

func (*AddCertificateForbidden) IsClientError

func (o *AddCertificateForbidden) IsClientError() bool

IsClientError returns true when this add certificate forbidden response has a 4xx status code

func (*AddCertificateForbidden) IsCode

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

IsCode returns true when this add certificate forbidden response a status code equal to that given

func (*AddCertificateForbidden) IsRedirect

func (o *AddCertificateForbidden) IsRedirect() bool

IsRedirect returns true when this add certificate forbidden response has a 3xx status code

func (*AddCertificateForbidden) IsServerError

func (o *AddCertificateForbidden) IsServerError() bool

IsServerError returns true when this add certificate forbidden response has a 5xx status code

func (*AddCertificateForbidden) IsSuccess

func (o *AddCertificateForbidden) IsSuccess() bool

IsSuccess returns true when this add certificate forbidden response has a 2xx status code

func (*AddCertificateForbidden) String

func (o *AddCertificateForbidden) String() string

type AddCertificateParams

type AddCertificateParams struct {

	/* Body.

	   The certificate to add encoded in PEM format
	*/
	Body string

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

AddCertificateParams contains all the parameters to send to the API endpoint

for the add certificate operation.

Typically these are written to a http.Request.

func NewAddCertificateParams

func NewAddCertificateParams() *AddCertificateParams

NewAddCertificateParams creates a new AddCertificateParams 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 NewAddCertificateParamsWithContext

func NewAddCertificateParamsWithContext(ctx context.Context) *AddCertificateParams

NewAddCertificateParamsWithContext creates a new AddCertificateParams object with the ability to set a context for a request.

func NewAddCertificateParamsWithHTTPClient

func NewAddCertificateParamsWithHTTPClient(client *http.Client) *AddCertificateParams

NewAddCertificateParamsWithHTTPClient creates a new AddCertificateParams object with the ability to set a custom HTTPClient for a request.

func NewAddCertificateParamsWithTimeout

func NewAddCertificateParamsWithTimeout(timeout time.Duration) *AddCertificateParams

NewAddCertificateParamsWithTimeout creates a new AddCertificateParams object with the ability to set a timeout on a request.

func (*AddCertificateParams) SetBody

func (o *AddCertificateParams) SetBody(body string)

SetBody adds the body to the add certificate params

func (*AddCertificateParams) SetContext

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

SetContext adds the context to the add certificate params

func (*AddCertificateParams) SetDefaults

func (o *AddCertificateParams) SetDefaults()

SetDefaults hydrates default values in the add certificate params (not the query body).

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

func (*AddCertificateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add certificate params

func (*AddCertificateParams) SetTimeout

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

SetTimeout adds the timeout to the add certificate params

func (*AddCertificateParams) WithBody

WithBody adds the body to the add certificate params

func (*AddCertificateParams) WithContext

WithContext adds the context to the add certificate params

func (*AddCertificateParams) WithDefaults

func (o *AddCertificateParams) WithDefaults() *AddCertificateParams

WithDefaults hydrates default values in the add certificate params (not the query body).

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

func (*AddCertificateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add certificate params

func (*AddCertificateParams) WithTimeout

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

WithTimeout adds the timeout to the add certificate params

func (*AddCertificateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddCertificateReader

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

AddCertificateReader is a Reader for the AddCertificate structure.

func (*AddCertificateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for security certificates API

func (*Client) AddCertificate

func (a *Client) AddCertificate(params *AddCertificateParams, opts ...ClientOption) (*AddCertificateCreated, error)

AddCertificate adds a certificate to the trust store

func (*Client) GetTrustStoreCertificates

func (a *Client) GetTrustStoreCertificates(params *GetTrustStoreCertificatesParams, opts ...ClientOption) (*GetTrustStoreCertificatesOK, error)

GetTrustStoreCertificates retrieves a list of certificates added to the trust store

func (*Client) RemoveCertificate

func (a *Client) RemoveCertificate(params *RemoveCertificateParams, opts ...ClientOption) error

RemoveCertificate removes a certificate in the trust store

func (*Client) RetrieveCertificate

func (a *Client) RetrieveCertificate(params *RetrieveCertificateParams, opts ...ClientOption) (*RetrieveCertificateOK, error)

RetrieveCertificate helpers method to retrieve certificate details from a remote system

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 {
	AddCertificate(params *AddCertificateParams, opts ...ClientOption) (*AddCertificateCreated, error)

	GetTrustStoreCertificates(params *GetTrustStoreCertificatesParams, opts ...ClientOption) (*GetTrustStoreCertificatesOK, error)

	RemoveCertificate(params *RemoveCertificateParams, opts ...ClientOption) error

	RetrieveCertificate(params *RetrieveCertificateParams, opts ...ClientOption) (*RetrieveCertificateOK, 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 security certificates API client.

type GetTrustStoreCertificatesForbidden

type GetTrustStoreCertificatesForbidden struct {
}

GetTrustStoreCertificatesForbidden describes a response with status code 403, with default header values.

Insufficient permissions to list certificates in the trust store.

func NewGetTrustStoreCertificatesForbidden

func NewGetTrustStoreCertificatesForbidden() *GetTrustStoreCertificatesForbidden

NewGetTrustStoreCertificatesForbidden creates a GetTrustStoreCertificatesForbidden with default headers values

func (*GetTrustStoreCertificatesForbidden) Code

Code gets the status code for the get trust store certificates forbidden response

func (*GetTrustStoreCertificatesForbidden) Error

func (*GetTrustStoreCertificatesForbidden) IsClientError

func (o *GetTrustStoreCertificatesForbidden) IsClientError() bool

IsClientError returns true when this get trust store certificates forbidden response has a 4xx status code

func (*GetTrustStoreCertificatesForbidden) IsCode

IsCode returns true when this get trust store certificates forbidden response a status code equal to that given

func (*GetTrustStoreCertificatesForbidden) IsRedirect

func (o *GetTrustStoreCertificatesForbidden) IsRedirect() bool

IsRedirect returns true when this get trust store certificates forbidden response has a 3xx status code

func (*GetTrustStoreCertificatesForbidden) IsServerError

func (o *GetTrustStoreCertificatesForbidden) IsServerError() bool

IsServerError returns true when this get trust store certificates forbidden response has a 5xx status code

func (*GetTrustStoreCertificatesForbidden) IsSuccess

IsSuccess returns true when this get trust store certificates forbidden response has a 2xx status code

func (*GetTrustStoreCertificatesForbidden) String

type GetTrustStoreCertificatesOK

type GetTrustStoreCertificatesOK struct {
	Payload []*models.APICertificate
}

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

successful operation

func NewGetTrustStoreCertificatesOK

func NewGetTrustStoreCertificatesOK() *GetTrustStoreCertificatesOK

NewGetTrustStoreCertificatesOK creates a GetTrustStoreCertificatesOK with default headers values

func (*GetTrustStoreCertificatesOK) Code

func (o *GetTrustStoreCertificatesOK) Code() int

Code gets the status code for the get trust store certificates o k response

func (*GetTrustStoreCertificatesOK) Error

func (*GetTrustStoreCertificatesOK) GetPayload

func (*GetTrustStoreCertificatesOK) IsClientError

func (o *GetTrustStoreCertificatesOK) IsClientError() bool

IsClientError returns true when this get trust store certificates o k response has a 4xx status code

func (*GetTrustStoreCertificatesOK) IsCode

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

IsCode returns true when this get trust store certificates o k response a status code equal to that given

func (*GetTrustStoreCertificatesOK) IsRedirect

func (o *GetTrustStoreCertificatesOK) IsRedirect() bool

IsRedirect returns true when this get trust store certificates o k response has a 3xx status code

func (*GetTrustStoreCertificatesOK) IsServerError

func (o *GetTrustStoreCertificatesOK) IsServerError() bool

IsServerError returns true when this get trust store certificates o k response has a 5xx status code

func (*GetTrustStoreCertificatesOK) IsSuccess

func (o *GetTrustStoreCertificatesOK) IsSuccess() bool

IsSuccess returns true when this get trust store certificates o k response has a 2xx status code

func (*GetTrustStoreCertificatesOK) String

func (o *GetTrustStoreCertificatesOK) String() string

type GetTrustStoreCertificatesParams

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

GetTrustStoreCertificatesParams contains all the parameters to send to the API endpoint

for the get trust store certificates operation.

Typically these are written to a http.Request.

func NewGetTrustStoreCertificatesParams

func NewGetTrustStoreCertificatesParams() *GetTrustStoreCertificatesParams

NewGetTrustStoreCertificatesParams creates a new GetTrustStoreCertificatesParams 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 NewGetTrustStoreCertificatesParamsWithContext

func NewGetTrustStoreCertificatesParamsWithContext(ctx context.Context) *GetTrustStoreCertificatesParams

NewGetTrustStoreCertificatesParamsWithContext creates a new GetTrustStoreCertificatesParams object with the ability to set a context for a request.

func NewGetTrustStoreCertificatesParamsWithHTTPClient

func NewGetTrustStoreCertificatesParamsWithHTTPClient(client *http.Client) *GetTrustStoreCertificatesParams

NewGetTrustStoreCertificatesParamsWithHTTPClient creates a new GetTrustStoreCertificatesParams object with the ability to set a custom HTTPClient for a request.

func NewGetTrustStoreCertificatesParamsWithTimeout

func NewGetTrustStoreCertificatesParamsWithTimeout(timeout time.Duration) *GetTrustStoreCertificatesParams

NewGetTrustStoreCertificatesParamsWithTimeout creates a new GetTrustStoreCertificatesParams object with the ability to set a timeout on a request.

func (*GetTrustStoreCertificatesParams) SetContext

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

SetContext adds the context to the get trust store certificates params

func (*GetTrustStoreCertificatesParams) SetDefaults

func (o *GetTrustStoreCertificatesParams) SetDefaults()

SetDefaults hydrates default values in the get trust store certificates params (not the query body).

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

func (*GetTrustStoreCertificatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get trust store certificates params

func (*GetTrustStoreCertificatesParams) SetTimeout

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

SetTimeout adds the timeout to the get trust store certificates params

func (*GetTrustStoreCertificatesParams) WithContext

WithContext adds the context to the get trust store certificates params

func (*GetTrustStoreCertificatesParams) WithDefaults

WithDefaults hydrates default values in the get trust store certificates params (not the query body).

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

func (*GetTrustStoreCertificatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get trust store certificates params

func (*GetTrustStoreCertificatesParams) WithTimeout

WithTimeout adds the timeout to the get trust store certificates params

func (*GetTrustStoreCertificatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTrustStoreCertificatesReader

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

GetTrustStoreCertificatesReader is a Reader for the GetTrustStoreCertificates structure.

func (*GetTrustStoreCertificatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RemoveCertificateForbidden

type RemoveCertificateForbidden struct {
}

RemoveCertificateForbidden describes a response with status code 403, with default header values.

Insufficient permissions to remove certificate from the trust store

func NewRemoveCertificateForbidden

func NewRemoveCertificateForbidden() *RemoveCertificateForbidden

NewRemoveCertificateForbidden creates a RemoveCertificateForbidden with default headers values

func (*RemoveCertificateForbidden) Code

func (o *RemoveCertificateForbidden) Code() int

Code gets the status code for the remove certificate forbidden response

func (*RemoveCertificateForbidden) Error

func (*RemoveCertificateForbidden) IsClientError

func (o *RemoveCertificateForbidden) IsClientError() bool

IsClientError returns true when this remove certificate forbidden response has a 4xx status code

func (*RemoveCertificateForbidden) IsCode

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

IsCode returns true when this remove certificate forbidden response a status code equal to that given

func (*RemoveCertificateForbidden) IsRedirect

func (o *RemoveCertificateForbidden) IsRedirect() bool

IsRedirect returns true when this remove certificate forbidden response has a 3xx status code

func (*RemoveCertificateForbidden) IsServerError

func (o *RemoveCertificateForbidden) IsServerError() bool

IsServerError returns true when this remove certificate forbidden response has a 5xx status code

func (*RemoveCertificateForbidden) IsSuccess

func (o *RemoveCertificateForbidden) IsSuccess() bool

IsSuccess returns true when this remove certificate forbidden response has a 2xx status code

func (*RemoveCertificateForbidden) String

func (o *RemoveCertificateForbidden) String() string

type RemoveCertificateParams

type RemoveCertificateParams struct {

	/* ID.

	   The id of the certificate that should be removed.
	*/
	ID string

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

RemoveCertificateParams contains all the parameters to send to the API endpoint

for the remove certificate operation.

Typically these are written to a http.Request.

func NewRemoveCertificateParams

func NewRemoveCertificateParams() *RemoveCertificateParams

NewRemoveCertificateParams creates a new RemoveCertificateParams 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 NewRemoveCertificateParamsWithContext

func NewRemoveCertificateParamsWithContext(ctx context.Context) *RemoveCertificateParams

NewRemoveCertificateParamsWithContext creates a new RemoveCertificateParams object with the ability to set a context for a request.

func NewRemoveCertificateParamsWithHTTPClient

func NewRemoveCertificateParamsWithHTTPClient(client *http.Client) *RemoveCertificateParams

NewRemoveCertificateParamsWithHTTPClient creates a new RemoveCertificateParams object with the ability to set a custom HTTPClient for a request.

func NewRemoveCertificateParamsWithTimeout

func NewRemoveCertificateParamsWithTimeout(timeout time.Duration) *RemoveCertificateParams

NewRemoveCertificateParamsWithTimeout creates a new RemoveCertificateParams object with the ability to set a timeout on a request.

func (*RemoveCertificateParams) SetContext

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

SetContext adds the context to the remove certificate params

func (*RemoveCertificateParams) SetDefaults

func (o *RemoveCertificateParams) SetDefaults()

SetDefaults hydrates default values in the remove certificate params (not the query body).

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

func (*RemoveCertificateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the remove certificate params

func (*RemoveCertificateParams) SetID

func (o *RemoveCertificateParams) SetID(id string)

SetID adds the id to the remove certificate params

func (*RemoveCertificateParams) SetTimeout

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

SetTimeout adds the timeout to the remove certificate params

func (*RemoveCertificateParams) WithContext

WithContext adds the context to the remove certificate params

func (*RemoveCertificateParams) WithDefaults

WithDefaults hydrates default values in the remove certificate params (not the query body).

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

func (*RemoveCertificateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the remove certificate params

func (*RemoveCertificateParams) WithID

WithID adds the id to the remove certificate params

func (*RemoveCertificateParams) WithTimeout

WithTimeout adds the timeout to the remove certificate params

func (*RemoveCertificateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RemoveCertificateReader

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

RemoveCertificateReader is a Reader for the RemoveCertificate structure.

func (*RemoveCertificateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RetrieveCertificateBadRequest

type RetrieveCertificateBadRequest struct {
}

RetrieveCertificateBadRequest describes a response with status code 400, with default header values.

A certificate could not be retrieved, see the message for details.

func NewRetrieveCertificateBadRequest

func NewRetrieveCertificateBadRequest() *RetrieveCertificateBadRequest

NewRetrieveCertificateBadRequest creates a RetrieveCertificateBadRequest with default headers values

func (*RetrieveCertificateBadRequest) Code

Code gets the status code for the retrieve certificate bad request response

func (*RetrieveCertificateBadRequest) Error

func (*RetrieveCertificateBadRequest) IsClientError

func (o *RetrieveCertificateBadRequest) IsClientError() bool

IsClientError returns true when this retrieve certificate bad request response has a 4xx status code

func (*RetrieveCertificateBadRequest) IsCode

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

IsCode returns true when this retrieve certificate bad request response a status code equal to that given

func (*RetrieveCertificateBadRequest) IsRedirect

func (o *RetrieveCertificateBadRequest) IsRedirect() bool

IsRedirect returns true when this retrieve certificate bad request response has a 3xx status code

func (*RetrieveCertificateBadRequest) IsServerError

func (o *RetrieveCertificateBadRequest) IsServerError() bool

IsServerError returns true when this retrieve certificate bad request response has a 5xx status code

func (*RetrieveCertificateBadRequest) IsSuccess

func (o *RetrieveCertificateBadRequest) IsSuccess() bool

IsSuccess returns true when this retrieve certificate bad request response has a 2xx status code

func (*RetrieveCertificateBadRequest) String

type RetrieveCertificateForbidden

type RetrieveCertificateForbidden struct {
}

RetrieveCertificateForbidden describes a response with status code 403, with default header values.

Insufficient permissions to retrieve remote certificate.

func NewRetrieveCertificateForbidden

func NewRetrieveCertificateForbidden() *RetrieveCertificateForbidden

NewRetrieveCertificateForbidden creates a RetrieveCertificateForbidden with default headers values

func (*RetrieveCertificateForbidden) Code

Code gets the status code for the retrieve certificate forbidden response

func (*RetrieveCertificateForbidden) Error

func (*RetrieveCertificateForbidden) IsClientError

func (o *RetrieveCertificateForbidden) IsClientError() bool

IsClientError returns true when this retrieve certificate forbidden response has a 4xx status code

func (*RetrieveCertificateForbidden) IsCode

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

IsCode returns true when this retrieve certificate forbidden response a status code equal to that given

func (*RetrieveCertificateForbidden) IsRedirect

func (o *RetrieveCertificateForbidden) IsRedirect() bool

IsRedirect returns true when this retrieve certificate forbidden response has a 3xx status code

func (*RetrieveCertificateForbidden) IsServerError

func (o *RetrieveCertificateForbidden) IsServerError() bool

IsServerError returns true when this retrieve certificate forbidden response has a 5xx status code

func (*RetrieveCertificateForbidden) IsSuccess

func (o *RetrieveCertificateForbidden) IsSuccess() bool

IsSuccess returns true when this retrieve certificate forbidden response has a 2xx status code

func (*RetrieveCertificateForbidden) String

type RetrieveCertificateOK

type RetrieveCertificateOK struct {
	Payload *models.APICertificate
}

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

successful operation

func NewRetrieveCertificateOK

func NewRetrieveCertificateOK() *RetrieveCertificateOK

NewRetrieveCertificateOK creates a RetrieveCertificateOK with default headers values

func (*RetrieveCertificateOK) Code

func (o *RetrieveCertificateOK) Code() int

Code gets the status code for the retrieve certificate o k response

func (*RetrieveCertificateOK) Error

func (o *RetrieveCertificateOK) Error() string

func (*RetrieveCertificateOK) GetPayload

func (o *RetrieveCertificateOK) GetPayload() *models.APICertificate

func (*RetrieveCertificateOK) IsClientError

func (o *RetrieveCertificateOK) IsClientError() bool

IsClientError returns true when this retrieve certificate o k response has a 4xx status code

func (*RetrieveCertificateOK) IsCode

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

IsCode returns true when this retrieve certificate o k response a status code equal to that given

func (*RetrieveCertificateOK) IsRedirect

func (o *RetrieveCertificateOK) IsRedirect() bool

IsRedirect returns true when this retrieve certificate o k response has a 3xx status code

func (*RetrieveCertificateOK) IsServerError

func (o *RetrieveCertificateOK) IsServerError() bool

IsServerError returns true when this retrieve certificate o k response has a 5xx status code

func (*RetrieveCertificateOK) IsSuccess

func (o *RetrieveCertificateOK) IsSuccess() bool

IsSuccess returns true when this retrieve certificate o k response has a 2xx status code

func (*RetrieveCertificateOK) String

func (o *RetrieveCertificateOK) String() string

type RetrieveCertificateParams

type RetrieveCertificateParams struct {

	/* Host.

	   The remote system's host name
	*/
	Host string

	/* Port.

	   The port on the remote system to connect to

	   Format: int32
	   Default: 443
	*/
	Port *int32

	/* ProtocolHint.

	   An optional hint of the protocol to try for the connection
	*/
	ProtocolHint *string

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

RetrieveCertificateParams contains all the parameters to send to the API endpoint

for the retrieve certificate operation.

Typically these are written to a http.Request.

func NewRetrieveCertificateParams

func NewRetrieveCertificateParams() *RetrieveCertificateParams

NewRetrieveCertificateParams creates a new RetrieveCertificateParams 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 NewRetrieveCertificateParamsWithContext

func NewRetrieveCertificateParamsWithContext(ctx context.Context) *RetrieveCertificateParams

NewRetrieveCertificateParamsWithContext creates a new RetrieveCertificateParams object with the ability to set a context for a request.

func NewRetrieveCertificateParamsWithHTTPClient

func NewRetrieveCertificateParamsWithHTTPClient(client *http.Client) *RetrieveCertificateParams

NewRetrieveCertificateParamsWithHTTPClient creates a new RetrieveCertificateParams object with the ability to set a custom HTTPClient for a request.

func NewRetrieveCertificateParamsWithTimeout

func NewRetrieveCertificateParamsWithTimeout(timeout time.Duration) *RetrieveCertificateParams

NewRetrieveCertificateParamsWithTimeout creates a new RetrieveCertificateParams object with the ability to set a timeout on a request.

func (*RetrieveCertificateParams) SetContext

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

SetContext adds the context to the retrieve certificate params

func (*RetrieveCertificateParams) SetDefaults

func (o *RetrieveCertificateParams) SetDefaults()

SetDefaults hydrates default values in the retrieve certificate params (not the query body).

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

func (*RetrieveCertificateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the retrieve certificate params

func (*RetrieveCertificateParams) SetHost

func (o *RetrieveCertificateParams) SetHost(host string)

SetHost adds the host to the retrieve certificate params

func (*RetrieveCertificateParams) SetPort

func (o *RetrieveCertificateParams) SetPort(port *int32)

SetPort adds the port to the retrieve certificate params

func (*RetrieveCertificateParams) SetProtocolHint

func (o *RetrieveCertificateParams) SetProtocolHint(protocolHint *string)

SetProtocolHint adds the protocolHint to the retrieve certificate params

func (*RetrieveCertificateParams) SetTimeout

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

SetTimeout adds the timeout to the retrieve certificate params

func (*RetrieveCertificateParams) WithContext

WithContext adds the context to the retrieve certificate params

func (*RetrieveCertificateParams) WithDefaults

WithDefaults hydrates default values in the retrieve certificate params (not the query body).

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

func (*RetrieveCertificateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the retrieve certificate params

func (*RetrieveCertificateParams) WithHost

WithHost adds the host to the retrieve certificate params

func (*RetrieveCertificateParams) WithPort

WithPort adds the port to the retrieve certificate params

func (*RetrieveCertificateParams) WithProtocolHint

func (o *RetrieveCertificateParams) WithProtocolHint(protocolHint *string) *RetrieveCertificateParams

WithProtocolHint adds the protocolHint to the retrieve certificate params

func (*RetrieveCertificateParams) WithTimeout

WithTimeout adds the timeout to the retrieve certificate params

func (*RetrieveCertificateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RetrieveCertificateReader

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

RetrieveCertificateReader is a Reader for the RetrieveCertificate structure.

func (*RetrieveCertificateReader) ReadResponse

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