certificate_service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.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 CertificateServiceCreateCertificateDefault

type CertificateServiceCreateCertificateDefault struct {
	Payload *models.RuntimeError
	// contains filtered or unexported fields
}
CertificateServiceCreateCertificateDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewCertificateServiceCreateCertificateDefault

func NewCertificateServiceCreateCertificateDefault(code int) *CertificateServiceCreateCertificateDefault

NewCertificateServiceCreateCertificateDefault creates a CertificateServiceCreateCertificateDefault with default headers values

func (*CertificateServiceCreateCertificateDefault) Code

Code gets the status code for the certificate service create certificate default response

func (*CertificateServiceCreateCertificateDefault) Error

func (*CertificateServiceCreateCertificateDefault) GetPayload

type CertificateServiceCreateCertificateOK

type CertificateServiceCreateCertificateOK struct {
	Payload *models.V1alpha1RepositoryCertificateList
}
CertificateServiceCreateCertificateOK describes a response with status code 200, with default header values.

A successful response.

func NewCertificateServiceCreateCertificateOK

func NewCertificateServiceCreateCertificateOK() *CertificateServiceCreateCertificateOK

NewCertificateServiceCreateCertificateOK creates a CertificateServiceCreateCertificateOK with default headers values

func (*CertificateServiceCreateCertificateOK) Error

func (*CertificateServiceCreateCertificateOK) GetPayload

type CertificateServiceCreateCertificateParams

type CertificateServiceCreateCertificateParams struct {

	/* Body.

	   List of certificates to be created
	*/
	Body *models.V1alpha1RepositoryCertificateList

	/* Upsert.

	   Whether to upsert already existing certificates.
	*/
	Upsert *bool

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

CertificateServiceCreateCertificateParams contains all the parameters to send to the API endpoint

for the certificate service create certificate operation.

Typically these are written to a http.Request.

func NewCertificateServiceCreateCertificateParams

func NewCertificateServiceCreateCertificateParams() *CertificateServiceCreateCertificateParams

NewCertificateServiceCreateCertificateParams creates a new CertificateServiceCreateCertificateParams 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 NewCertificateServiceCreateCertificateParamsWithContext

func NewCertificateServiceCreateCertificateParamsWithContext(ctx context.Context) *CertificateServiceCreateCertificateParams

NewCertificateServiceCreateCertificateParamsWithContext creates a new CertificateServiceCreateCertificateParams object with the ability to set a context for a request.

func NewCertificateServiceCreateCertificateParamsWithHTTPClient

func NewCertificateServiceCreateCertificateParamsWithHTTPClient(client *http.Client) *CertificateServiceCreateCertificateParams

NewCertificateServiceCreateCertificateParamsWithHTTPClient creates a new CertificateServiceCreateCertificateParams object with the ability to set a custom HTTPClient for a request.

func NewCertificateServiceCreateCertificateParamsWithTimeout

func NewCertificateServiceCreateCertificateParamsWithTimeout(timeout time.Duration) *CertificateServiceCreateCertificateParams

NewCertificateServiceCreateCertificateParamsWithTimeout creates a new CertificateServiceCreateCertificateParams object with the ability to set a timeout on a request.

func (*CertificateServiceCreateCertificateParams) SetBody

SetBody adds the body to the certificate service create certificate params

func (*CertificateServiceCreateCertificateParams) SetContext

SetContext adds the context to the certificate service create certificate params

func (*CertificateServiceCreateCertificateParams) SetDefaults

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

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

func (*CertificateServiceCreateCertificateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the certificate service create certificate params

func (*CertificateServiceCreateCertificateParams) SetTimeout

SetTimeout adds the timeout to the certificate service create certificate params

func (*CertificateServiceCreateCertificateParams) SetUpsert

func (o *CertificateServiceCreateCertificateParams) SetUpsert(upsert *bool)

SetUpsert adds the upsert to the certificate service create certificate params

func (*CertificateServiceCreateCertificateParams) WithBody

WithBody adds the body to the certificate service create certificate params

func (*CertificateServiceCreateCertificateParams) WithContext

WithContext adds the context to the certificate service create certificate params

func (*CertificateServiceCreateCertificateParams) WithDefaults

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

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

func (*CertificateServiceCreateCertificateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the certificate service create certificate params

func (*CertificateServiceCreateCertificateParams) WithTimeout

WithTimeout adds the timeout to the certificate service create certificate params

func (*CertificateServiceCreateCertificateParams) WithUpsert

WithUpsert adds the upsert to the certificate service create certificate params

func (*CertificateServiceCreateCertificateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CertificateServiceCreateCertificateReader

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

CertificateServiceCreateCertificateReader is a Reader for the CertificateServiceCreateCertificate structure.

func (*CertificateServiceCreateCertificateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CertificateServiceDeleteCertificateDefault

type CertificateServiceDeleteCertificateDefault struct {
	Payload *models.RuntimeError
	// contains filtered or unexported fields
}
CertificateServiceDeleteCertificateDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewCertificateServiceDeleteCertificateDefault

func NewCertificateServiceDeleteCertificateDefault(code int) *CertificateServiceDeleteCertificateDefault

NewCertificateServiceDeleteCertificateDefault creates a CertificateServiceDeleteCertificateDefault with default headers values

func (*CertificateServiceDeleteCertificateDefault) Code

Code gets the status code for the certificate service delete certificate default response

func (*CertificateServiceDeleteCertificateDefault) Error

func (*CertificateServiceDeleteCertificateDefault) GetPayload

type CertificateServiceDeleteCertificateOK

type CertificateServiceDeleteCertificateOK struct {
	Payload *models.V1alpha1RepositoryCertificateList
}
CertificateServiceDeleteCertificateOK describes a response with status code 200, with default header values.

A successful response.

func NewCertificateServiceDeleteCertificateOK

func NewCertificateServiceDeleteCertificateOK() *CertificateServiceDeleteCertificateOK

NewCertificateServiceDeleteCertificateOK creates a CertificateServiceDeleteCertificateOK with default headers values

func (*CertificateServiceDeleteCertificateOK) Error

func (*CertificateServiceDeleteCertificateOK) GetPayload

type CertificateServiceDeleteCertificateParams

type CertificateServiceDeleteCertificateParams struct {

	/* CertSubType.

	   The sub type of the certificate to match (protocol dependent, usually only used for ssh certs).
	*/
	CertSubType *string

	/* CertType.

	   The type of the certificate to match (ssh or https).
	*/
	CertType *string

	/* HostNamePattern.

	   A file-glob pattern (not regular expression) the host name has to match.
	*/
	HostNamePattern *string

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

CertificateServiceDeleteCertificateParams contains all the parameters to send to the API endpoint

for the certificate service delete certificate operation.

Typically these are written to a http.Request.

func NewCertificateServiceDeleteCertificateParams

func NewCertificateServiceDeleteCertificateParams() *CertificateServiceDeleteCertificateParams

NewCertificateServiceDeleteCertificateParams creates a new CertificateServiceDeleteCertificateParams 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 NewCertificateServiceDeleteCertificateParamsWithContext

func NewCertificateServiceDeleteCertificateParamsWithContext(ctx context.Context) *CertificateServiceDeleteCertificateParams

NewCertificateServiceDeleteCertificateParamsWithContext creates a new CertificateServiceDeleteCertificateParams object with the ability to set a context for a request.

func NewCertificateServiceDeleteCertificateParamsWithHTTPClient

func NewCertificateServiceDeleteCertificateParamsWithHTTPClient(client *http.Client) *CertificateServiceDeleteCertificateParams

NewCertificateServiceDeleteCertificateParamsWithHTTPClient creates a new CertificateServiceDeleteCertificateParams object with the ability to set a custom HTTPClient for a request.

func NewCertificateServiceDeleteCertificateParamsWithTimeout

func NewCertificateServiceDeleteCertificateParamsWithTimeout(timeout time.Duration) *CertificateServiceDeleteCertificateParams

NewCertificateServiceDeleteCertificateParamsWithTimeout creates a new CertificateServiceDeleteCertificateParams object with the ability to set a timeout on a request.

func (*CertificateServiceDeleteCertificateParams) SetCertSubType

func (o *CertificateServiceDeleteCertificateParams) SetCertSubType(certSubType *string)

SetCertSubType adds the certSubType to the certificate service delete certificate params

func (*CertificateServiceDeleteCertificateParams) SetCertType

func (o *CertificateServiceDeleteCertificateParams) SetCertType(certType *string)

SetCertType adds the certType to the certificate service delete certificate params

func (*CertificateServiceDeleteCertificateParams) SetContext

SetContext adds the context to the certificate service delete certificate params

func (*CertificateServiceDeleteCertificateParams) SetDefaults

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

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

func (*CertificateServiceDeleteCertificateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the certificate service delete certificate params

func (*CertificateServiceDeleteCertificateParams) SetHostNamePattern

func (o *CertificateServiceDeleteCertificateParams) SetHostNamePattern(hostNamePattern *string)

SetHostNamePattern adds the hostNamePattern to the certificate service delete certificate params

func (*CertificateServiceDeleteCertificateParams) SetTimeout

SetTimeout adds the timeout to the certificate service delete certificate params

func (*CertificateServiceDeleteCertificateParams) WithCertSubType

WithCertSubType adds the certSubType to the certificate service delete certificate params

func (*CertificateServiceDeleteCertificateParams) WithCertType

WithCertType adds the certType to the certificate service delete certificate params

func (*CertificateServiceDeleteCertificateParams) WithContext

WithContext adds the context to the certificate service delete certificate params

func (*CertificateServiceDeleteCertificateParams) WithDefaults

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

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

func (*CertificateServiceDeleteCertificateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the certificate service delete certificate params

func (*CertificateServiceDeleteCertificateParams) WithHostNamePattern

WithHostNamePattern adds the hostNamePattern to the certificate service delete certificate params

func (*CertificateServiceDeleteCertificateParams) WithTimeout

WithTimeout adds the timeout to the certificate service delete certificate params

func (*CertificateServiceDeleteCertificateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CertificateServiceDeleteCertificateReader

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

CertificateServiceDeleteCertificateReader is a Reader for the CertificateServiceDeleteCertificate structure.

func (*CertificateServiceDeleteCertificateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CertificateServiceListCertificatesDefault

type CertificateServiceListCertificatesDefault struct {
	Payload *models.RuntimeError
	// contains filtered or unexported fields
}
CertificateServiceListCertificatesDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewCertificateServiceListCertificatesDefault

func NewCertificateServiceListCertificatesDefault(code int) *CertificateServiceListCertificatesDefault

NewCertificateServiceListCertificatesDefault creates a CertificateServiceListCertificatesDefault with default headers values

func (*CertificateServiceListCertificatesDefault) Code

Code gets the status code for the certificate service list certificates default response

func (*CertificateServiceListCertificatesDefault) Error

func (*CertificateServiceListCertificatesDefault) GetPayload

type CertificateServiceListCertificatesOK

type CertificateServiceListCertificatesOK struct {
	Payload *models.V1alpha1RepositoryCertificateList
}
CertificateServiceListCertificatesOK describes a response with status code 200, with default header values.

A successful response.

func NewCertificateServiceListCertificatesOK

func NewCertificateServiceListCertificatesOK() *CertificateServiceListCertificatesOK

NewCertificateServiceListCertificatesOK creates a CertificateServiceListCertificatesOK with default headers values

func (*CertificateServiceListCertificatesOK) Error

func (*CertificateServiceListCertificatesOK) GetPayload

type CertificateServiceListCertificatesParams

type CertificateServiceListCertificatesParams struct {

	/* CertSubType.

	   The sub type of the certificate to match (protocol dependent, usually only used for ssh certs).
	*/
	CertSubType *string

	/* CertType.

	   The type of the certificate to match (ssh or https).
	*/
	CertType *string

	/* HostNamePattern.

	   A file-glob pattern (not regular expression) the host name has to match.
	*/
	HostNamePattern *string

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

CertificateServiceListCertificatesParams contains all the parameters to send to the API endpoint

for the certificate service list certificates operation.

Typically these are written to a http.Request.

func NewCertificateServiceListCertificatesParams

func NewCertificateServiceListCertificatesParams() *CertificateServiceListCertificatesParams

NewCertificateServiceListCertificatesParams creates a new CertificateServiceListCertificatesParams 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 NewCertificateServiceListCertificatesParamsWithContext

func NewCertificateServiceListCertificatesParamsWithContext(ctx context.Context) *CertificateServiceListCertificatesParams

NewCertificateServiceListCertificatesParamsWithContext creates a new CertificateServiceListCertificatesParams object with the ability to set a context for a request.

func NewCertificateServiceListCertificatesParamsWithHTTPClient

func NewCertificateServiceListCertificatesParamsWithHTTPClient(client *http.Client) *CertificateServiceListCertificatesParams

NewCertificateServiceListCertificatesParamsWithHTTPClient creates a new CertificateServiceListCertificatesParams object with the ability to set a custom HTTPClient for a request.

func NewCertificateServiceListCertificatesParamsWithTimeout

func NewCertificateServiceListCertificatesParamsWithTimeout(timeout time.Duration) *CertificateServiceListCertificatesParams

NewCertificateServiceListCertificatesParamsWithTimeout creates a new CertificateServiceListCertificatesParams object with the ability to set a timeout on a request.

func (*CertificateServiceListCertificatesParams) SetCertSubType

func (o *CertificateServiceListCertificatesParams) SetCertSubType(certSubType *string)

SetCertSubType adds the certSubType to the certificate service list certificates params

func (*CertificateServiceListCertificatesParams) SetCertType

func (o *CertificateServiceListCertificatesParams) SetCertType(certType *string)

SetCertType adds the certType to the certificate service list certificates params

func (*CertificateServiceListCertificatesParams) SetContext

SetContext adds the context to the certificate service list certificates params

func (*CertificateServiceListCertificatesParams) SetDefaults

SetDefaults hydrates default values in the certificate service list certificates params (not the query body).

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

func (*CertificateServiceListCertificatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the certificate service list certificates params

func (*CertificateServiceListCertificatesParams) SetHostNamePattern

func (o *CertificateServiceListCertificatesParams) SetHostNamePattern(hostNamePattern *string)

SetHostNamePattern adds the hostNamePattern to the certificate service list certificates params

func (*CertificateServiceListCertificatesParams) SetTimeout

SetTimeout adds the timeout to the certificate service list certificates params

func (*CertificateServiceListCertificatesParams) WithCertSubType

WithCertSubType adds the certSubType to the certificate service list certificates params

func (*CertificateServiceListCertificatesParams) WithCertType

WithCertType adds the certType to the certificate service list certificates params

func (*CertificateServiceListCertificatesParams) WithContext

WithContext adds the context to the certificate service list certificates params

func (*CertificateServiceListCertificatesParams) WithDefaults

WithDefaults hydrates default values in the certificate service list certificates params (not the query body).

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

func (*CertificateServiceListCertificatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the certificate service list certificates params

func (*CertificateServiceListCertificatesParams) WithHostNamePattern

WithHostNamePattern adds the hostNamePattern to the certificate service list certificates params

func (*CertificateServiceListCertificatesParams) WithTimeout

WithTimeout adds the timeout to the certificate service list certificates params

func (*CertificateServiceListCertificatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CertificateServiceListCertificatesReader

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

CertificateServiceListCertificatesReader is a Reader for the CertificateServiceListCertificates structure.

func (*CertificateServiceListCertificatesReader) ReadResponse

func (o *CertificateServiceListCertificatesReader) 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 certificate service API

func (*Client) CertificateServiceCreateCertificate

func (a *Client) CertificateServiceCreateCertificate(params *CertificateServiceCreateCertificateParams, opts ...ClientOption) (*CertificateServiceCreateCertificateOK, error)

CertificateServiceCreateCertificate creates repository certificates on the server

func (*Client) CertificateServiceDeleteCertificate

func (a *Client) CertificateServiceDeleteCertificate(params *CertificateServiceDeleteCertificateParams, opts ...ClientOption) (*CertificateServiceDeleteCertificateOK, error)

CertificateServiceDeleteCertificate deletes the certificates that match the repository certificate query

func (*Client) CertificateServiceListCertificates

func (a *Client) CertificateServiceListCertificates(params *CertificateServiceListCertificatesParams, opts ...ClientOption) (*CertificateServiceListCertificatesOK, error)

CertificateServiceListCertificates lists all available repository certificates

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 {
	CertificateServiceCreateCertificate(params *CertificateServiceCreateCertificateParams, opts ...ClientOption) (*CertificateServiceCreateCertificateOK, error)

	CertificateServiceDeleteCertificate(params *CertificateServiceDeleteCertificateParams, opts ...ClientOption) (*CertificateServiceDeleteCertificateOK, error)

	CertificateServiceListCertificates(params *CertificateServiceListCertificatesParams, opts ...ClientOption) (*CertificateServiceListCertificatesOK, 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 certificate service API client.

Jump to

Keyboard shortcuts

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