operations

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 10 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 operations API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) SigningCert

func (a *Client) SigningCert(params *SigningCertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SigningCertCreated, error)

SigningCert create a cert, return content with a location header (with URL to CTL entry)

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	SigningCert(params *SigningCertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SigningCertCreated, 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 operations API client.

type SigningCertBadRequest

type SigningCertBadRequest struct {
	ContentType string

	Payload *models.Error
}
SigningCertBadRequest describes a response with status code 400, with default header values.

The content supplied to the server was invalid

func NewSigningCertBadRequest

func NewSigningCertBadRequest() *SigningCertBadRequest

NewSigningCertBadRequest creates a SigningCertBadRequest with default headers values

func (*SigningCertBadRequest) Error

func (o *SigningCertBadRequest) Error() string

func (*SigningCertBadRequest) GetPayload

func (o *SigningCertBadRequest) GetPayload() *models.Error

type SigningCertCreated

type SigningCertCreated struct {
	Payload string
}
SigningCertCreated describes a response with status code 201, with default header values.

Generated Certificate Chain

func NewSigningCertCreated

func NewSigningCertCreated() *SigningCertCreated

NewSigningCertCreated creates a SigningCertCreated with default headers values

func (*SigningCertCreated) Error

func (o *SigningCertCreated) Error() string

func (*SigningCertCreated) GetPayload

func (o *SigningCertCreated) GetPayload() string

type SigningCertDefault

type SigningCertDefault struct {
	ContentType string

	Payload *models.Error
	// contains filtered or unexported fields
}
SigningCertDefault describes a response with status code -1, with default header values.

There was an internal error in the server while processing the request

func NewSigningCertDefault

func NewSigningCertDefault(code int) *SigningCertDefault

NewSigningCertDefault creates a SigningCertDefault with default headers values

func (*SigningCertDefault) Code

func (o *SigningCertDefault) Code() int

Code gets the status code for the signing cert default response

func (*SigningCertDefault) Error

func (o *SigningCertDefault) Error() string

func (*SigningCertDefault) GetPayload

func (o *SigningCertDefault) GetPayload() *models.Error

type SigningCertParams

type SigningCertParams struct {

	/* CertificateRequest.

	   Request for signing certificate
	*/
	CertificateRequest *models.CertificateRequest

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

SigningCertParams contains all the parameters to send to the API endpoint

for the signing cert operation.

Typically these are written to a http.Request.

func NewSigningCertParams

func NewSigningCertParams() *SigningCertParams

NewSigningCertParams creates a new SigningCertParams 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 NewSigningCertParamsWithContext

func NewSigningCertParamsWithContext(ctx context.Context) *SigningCertParams

NewSigningCertParamsWithContext creates a new SigningCertParams object with the ability to set a context for a request.

func NewSigningCertParamsWithHTTPClient

func NewSigningCertParamsWithHTTPClient(client *http.Client) *SigningCertParams

NewSigningCertParamsWithHTTPClient creates a new SigningCertParams object with the ability to set a custom HTTPClient for a request.

func NewSigningCertParamsWithTimeout

func NewSigningCertParamsWithTimeout(timeout time.Duration) *SigningCertParams

NewSigningCertParamsWithTimeout creates a new SigningCertParams object with the ability to set a timeout on a request.

func (*SigningCertParams) SetCertificateRequest

func (o *SigningCertParams) SetCertificateRequest(certificateRequest *models.CertificateRequest)

SetCertificateRequest adds the certificateRequest to the signing cert params

func (*SigningCertParams) SetContext

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

SetContext adds the context to the signing cert params

func (*SigningCertParams) SetDefaults

func (o *SigningCertParams) SetDefaults()

SetDefaults hydrates default values in the signing cert params (not the query body).

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

func (*SigningCertParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the signing cert params

func (*SigningCertParams) SetTimeout

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

SetTimeout adds the timeout to the signing cert params

func (*SigningCertParams) WithCertificateRequest

func (o *SigningCertParams) WithCertificateRequest(certificateRequest *models.CertificateRequest) *SigningCertParams

WithCertificateRequest adds the certificateRequest to the signing cert params

func (*SigningCertParams) WithContext

func (o *SigningCertParams) WithContext(ctx context.Context) *SigningCertParams

WithContext adds the context to the signing cert params

func (*SigningCertParams) WithDefaults

func (o *SigningCertParams) WithDefaults() *SigningCertParams

WithDefaults hydrates default values in the signing cert params (not the query body).

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

func (*SigningCertParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the signing cert params

func (*SigningCertParams) WithTimeout

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

WithTimeout adds the timeout to the signing cert params

func (*SigningCertParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SigningCertReader

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

SigningCertReader is a Reader for the SigningCert structure.

func (*SigningCertReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SigningCertUnauthorized

type SigningCertUnauthorized struct {
	ContentType string

	/* Information about required authentication to access server
	 */
	WWWAuthenticate string

	Payload *models.Error
}
SigningCertUnauthorized describes a response with status code 401, with default header values.

The request could not be authorized

func NewSigningCertUnauthorized

func NewSigningCertUnauthorized() *SigningCertUnauthorized

NewSigningCertUnauthorized creates a SigningCertUnauthorized with default headers values

func (*SigningCertUnauthorized) Error

func (o *SigningCertUnauthorized) Error() string

func (*SigningCertUnauthorized) GetPayload

func (o *SigningCertUnauthorized) GetPayload() *models.Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL