g_p_g_key_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 Client

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

Client for g p g key service API

func (*Client) GPGKeyServiceCreate

func (a *Client) GPGKeyServiceCreate(params *GPGKeyServiceCreateParams, opts ...ClientOption) (*GPGKeyServiceCreateOK, error)

GPGKeyServiceCreate creates one or more g p g public keys in the server s configuration

func (*Client) GPGKeyServiceDelete

func (a *Client) GPGKeyServiceDelete(params *GPGKeyServiceDeleteParams, opts ...ClientOption) (*GPGKeyServiceDeleteOK, error)

GPGKeyServiceDelete deletes specified g p g public key from the server s configuration

func (*Client) GPGKeyServiceGet

func (a *Client) GPGKeyServiceGet(params *GPGKeyServiceGetParams, opts ...ClientOption) (*GPGKeyServiceGetOK, error)

GPGKeyServiceGet gets information about specified g p g public key from the server

func (*Client) GPGKeyServiceList

func (a *Client) GPGKeyServiceList(params *GPGKeyServiceListParams, opts ...ClientOption) (*GPGKeyServiceListOK, error)

GPGKeyServiceList 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 {
	GPGKeyServiceCreate(params *GPGKeyServiceCreateParams, opts ...ClientOption) (*GPGKeyServiceCreateOK, error)

	GPGKeyServiceDelete(params *GPGKeyServiceDeleteParams, opts ...ClientOption) (*GPGKeyServiceDeleteOK, error)

	GPGKeyServiceGet(params *GPGKeyServiceGetParams, opts ...ClientOption) (*GPGKeyServiceGetOK, error)

	GPGKeyServiceList(params *GPGKeyServiceListParams, opts ...ClientOption) (*GPGKeyServiceListOK, 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 g p g key service API client.

type GPGKeyServiceCreateDefault

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

An unexpected error response.

func NewGPGKeyServiceCreateDefault

func NewGPGKeyServiceCreateDefault(code int) *GPGKeyServiceCreateDefault

NewGPGKeyServiceCreateDefault creates a GPGKeyServiceCreateDefault with default headers values

func (*GPGKeyServiceCreateDefault) Code

func (o *GPGKeyServiceCreateDefault) Code() int

Code gets the status code for the g p g key service create default response

func (*GPGKeyServiceCreateDefault) Error

func (*GPGKeyServiceCreateDefault) GetPayload

type GPGKeyServiceCreateOK

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

A successful response.

func NewGPGKeyServiceCreateOK

func NewGPGKeyServiceCreateOK() *GPGKeyServiceCreateOK

NewGPGKeyServiceCreateOK creates a GPGKeyServiceCreateOK with default headers values

func (*GPGKeyServiceCreateOK) Error

func (o *GPGKeyServiceCreateOK) Error() string

func (*GPGKeyServiceCreateOK) GetPayload

type GPGKeyServiceCreateParams

type GPGKeyServiceCreateParams struct {

	/* Body.

	   Raw key data of the GPG key(s) to create
	*/
	Body *models.V1alpha1GnuPGPublicKey

	/* Upsert.

	   Whether to upsert already existing public keys.
	*/
	Upsert *bool

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

GPGKeyServiceCreateParams contains all the parameters to send to the API endpoint

for the g p g key service create operation.

Typically these are written to a http.Request.

func NewGPGKeyServiceCreateParams

func NewGPGKeyServiceCreateParams() *GPGKeyServiceCreateParams

NewGPGKeyServiceCreateParams creates a new GPGKeyServiceCreateParams 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 NewGPGKeyServiceCreateParamsWithContext

func NewGPGKeyServiceCreateParamsWithContext(ctx context.Context) *GPGKeyServiceCreateParams

NewGPGKeyServiceCreateParamsWithContext creates a new GPGKeyServiceCreateParams object with the ability to set a context for a request.

func NewGPGKeyServiceCreateParamsWithHTTPClient

func NewGPGKeyServiceCreateParamsWithHTTPClient(client *http.Client) *GPGKeyServiceCreateParams

NewGPGKeyServiceCreateParamsWithHTTPClient creates a new GPGKeyServiceCreateParams object with the ability to set a custom HTTPClient for a request.

func NewGPGKeyServiceCreateParamsWithTimeout

func NewGPGKeyServiceCreateParamsWithTimeout(timeout time.Duration) *GPGKeyServiceCreateParams

NewGPGKeyServiceCreateParamsWithTimeout creates a new GPGKeyServiceCreateParams object with the ability to set a timeout on a request.

func (*GPGKeyServiceCreateParams) SetBody

SetBody adds the body to the g p g key service create params

func (*GPGKeyServiceCreateParams) SetContext

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

SetContext adds the context to the g p g key service create params

func (*GPGKeyServiceCreateParams) SetDefaults

func (o *GPGKeyServiceCreateParams) SetDefaults()

SetDefaults hydrates default values in the g p g key service create params (not the query body).

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

func (*GPGKeyServiceCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the g p g key service create params

func (*GPGKeyServiceCreateParams) SetTimeout

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

SetTimeout adds the timeout to the g p g key service create params

func (*GPGKeyServiceCreateParams) SetUpsert

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

SetUpsert adds the upsert to the g p g key service create params

func (*GPGKeyServiceCreateParams) WithBody

WithBody adds the body to the g p g key service create params

func (*GPGKeyServiceCreateParams) WithContext

WithContext adds the context to the g p g key service create params

func (*GPGKeyServiceCreateParams) WithDefaults

WithDefaults hydrates default values in the g p g key service create params (not the query body).

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

func (*GPGKeyServiceCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the g p g key service create params

func (*GPGKeyServiceCreateParams) WithTimeout

WithTimeout adds the timeout to the g p g key service create params

func (*GPGKeyServiceCreateParams) WithUpsert

WithUpsert adds the upsert to the g p g key service create params

func (*GPGKeyServiceCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GPGKeyServiceCreateReader

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

GPGKeyServiceCreateReader is a Reader for the GPGKeyServiceCreate structure.

func (*GPGKeyServiceCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GPGKeyServiceDeleteDefault

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

An unexpected error response.

func NewGPGKeyServiceDeleteDefault

func NewGPGKeyServiceDeleteDefault(code int) *GPGKeyServiceDeleteDefault

NewGPGKeyServiceDeleteDefault creates a GPGKeyServiceDeleteDefault with default headers values

func (*GPGKeyServiceDeleteDefault) Code

func (o *GPGKeyServiceDeleteDefault) Code() int

Code gets the status code for the g p g key service delete default response

func (*GPGKeyServiceDeleteDefault) Error

func (*GPGKeyServiceDeleteDefault) GetPayload

type GPGKeyServiceDeleteOK

type GPGKeyServiceDeleteOK struct {
	Payload models.GpgkeyGnuPGPublicKeyResponse
}
GPGKeyServiceDeleteOK describes a response with status code 200, with default header values.

A successful response.

func NewGPGKeyServiceDeleteOK

func NewGPGKeyServiceDeleteOK() *GPGKeyServiceDeleteOK

NewGPGKeyServiceDeleteOK creates a GPGKeyServiceDeleteOK with default headers values

func (*GPGKeyServiceDeleteOK) Error

func (o *GPGKeyServiceDeleteOK) Error() string

func (*GPGKeyServiceDeleteOK) GetPayload

type GPGKeyServiceDeleteParams

type GPGKeyServiceDeleteParams struct {

	/* KeyID.

	   The GPG key ID to query for.
	*/
	KeyID *string

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

GPGKeyServiceDeleteParams contains all the parameters to send to the API endpoint

for the g p g key service delete operation.

Typically these are written to a http.Request.

func NewGPGKeyServiceDeleteParams

func NewGPGKeyServiceDeleteParams() *GPGKeyServiceDeleteParams

NewGPGKeyServiceDeleteParams creates a new GPGKeyServiceDeleteParams 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 NewGPGKeyServiceDeleteParamsWithContext

func NewGPGKeyServiceDeleteParamsWithContext(ctx context.Context) *GPGKeyServiceDeleteParams

NewGPGKeyServiceDeleteParamsWithContext creates a new GPGKeyServiceDeleteParams object with the ability to set a context for a request.

func NewGPGKeyServiceDeleteParamsWithHTTPClient

func NewGPGKeyServiceDeleteParamsWithHTTPClient(client *http.Client) *GPGKeyServiceDeleteParams

NewGPGKeyServiceDeleteParamsWithHTTPClient creates a new GPGKeyServiceDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewGPGKeyServiceDeleteParamsWithTimeout

func NewGPGKeyServiceDeleteParamsWithTimeout(timeout time.Duration) *GPGKeyServiceDeleteParams

NewGPGKeyServiceDeleteParamsWithTimeout creates a new GPGKeyServiceDeleteParams object with the ability to set a timeout on a request.

func (*GPGKeyServiceDeleteParams) SetContext

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

SetContext adds the context to the g p g key service delete params

func (*GPGKeyServiceDeleteParams) SetDefaults

func (o *GPGKeyServiceDeleteParams) SetDefaults()

SetDefaults hydrates default values in the g p g key service delete params (not the query body).

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

func (*GPGKeyServiceDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the g p g key service delete params

func (*GPGKeyServiceDeleteParams) SetKeyID

func (o *GPGKeyServiceDeleteParams) SetKeyID(keyID *string)

SetKeyID adds the keyId to the g p g key service delete params

func (*GPGKeyServiceDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the g p g key service delete params

func (*GPGKeyServiceDeleteParams) WithContext

WithContext adds the context to the g p g key service delete params

func (*GPGKeyServiceDeleteParams) WithDefaults

WithDefaults hydrates default values in the g p g key service delete params (not the query body).

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

func (*GPGKeyServiceDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the g p g key service delete params

func (*GPGKeyServiceDeleteParams) WithKeyID

WithKeyID adds the keyID to the g p g key service delete params

func (*GPGKeyServiceDeleteParams) WithTimeout

WithTimeout adds the timeout to the g p g key service delete params

func (*GPGKeyServiceDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GPGKeyServiceDeleteReader

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

GPGKeyServiceDeleteReader is a Reader for the GPGKeyServiceDelete structure.

func (*GPGKeyServiceDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GPGKeyServiceGetDefault

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

An unexpected error response.

func NewGPGKeyServiceGetDefault

func NewGPGKeyServiceGetDefault(code int) *GPGKeyServiceGetDefault

NewGPGKeyServiceGetDefault creates a GPGKeyServiceGetDefault with default headers values

func (*GPGKeyServiceGetDefault) Code

func (o *GPGKeyServiceGetDefault) Code() int

Code gets the status code for the g p g key service get default response

func (*GPGKeyServiceGetDefault) Error

func (o *GPGKeyServiceGetDefault) Error() string

func (*GPGKeyServiceGetDefault) GetPayload

func (o *GPGKeyServiceGetDefault) GetPayload() *models.RuntimeError

type GPGKeyServiceGetOK

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

A successful response.

func NewGPGKeyServiceGetOK

func NewGPGKeyServiceGetOK() *GPGKeyServiceGetOK

NewGPGKeyServiceGetOK creates a GPGKeyServiceGetOK with default headers values

func (*GPGKeyServiceGetOK) Error

func (o *GPGKeyServiceGetOK) Error() string

func (*GPGKeyServiceGetOK) GetPayload

type GPGKeyServiceGetParams

type GPGKeyServiceGetParams struct {

	/* KeyID.

	   The GPG key ID to query for
	*/
	KeyID string

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

GPGKeyServiceGetParams contains all the parameters to send to the API endpoint

for the g p g key service get operation.

Typically these are written to a http.Request.

func NewGPGKeyServiceGetParams

func NewGPGKeyServiceGetParams() *GPGKeyServiceGetParams

NewGPGKeyServiceGetParams creates a new GPGKeyServiceGetParams 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 NewGPGKeyServiceGetParamsWithContext

func NewGPGKeyServiceGetParamsWithContext(ctx context.Context) *GPGKeyServiceGetParams

NewGPGKeyServiceGetParamsWithContext creates a new GPGKeyServiceGetParams object with the ability to set a context for a request.

func NewGPGKeyServiceGetParamsWithHTTPClient

func NewGPGKeyServiceGetParamsWithHTTPClient(client *http.Client) *GPGKeyServiceGetParams

NewGPGKeyServiceGetParamsWithHTTPClient creates a new GPGKeyServiceGetParams object with the ability to set a custom HTTPClient for a request.

func NewGPGKeyServiceGetParamsWithTimeout

func NewGPGKeyServiceGetParamsWithTimeout(timeout time.Duration) *GPGKeyServiceGetParams

NewGPGKeyServiceGetParamsWithTimeout creates a new GPGKeyServiceGetParams object with the ability to set a timeout on a request.

func (*GPGKeyServiceGetParams) SetContext

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

SetContext adds the context to the g p g key service get params

func (*GPGKeyServiceGetParams) SetDefaults

func (o *GPGKeyServiceGetParams) SetDefaults()

SetDefaults hydrates default values in the g p g key service get params (not the query body).

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

func (*GPGKeyServiceGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the g p g key service get params

func (*GPGKeyServiceGetParams) SetKeyID

func (o *GPGKeyServiceGetParams) SetKeyID(keyID string)

SetKeyID adds the keyId to the g p g key service get params

func (*GPGKeyServiceGetParams) SetTimeout

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

SetTimeout adds the timeout to the g p g key service get params

func (*GPGKeyServiceGetParams) WithContext

WithContext adds the context to the g p g key service get params

func (*GPGKeyServiceGetParams) WithDefaults

WithDefaults hydrates default values in the g p g key service get params (not the query body).

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

func (*GPGKeyServiceGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the g p g key service get params

func (*GPGKeyServiceGetParams) WithKeyID

WithKeyID adds the keyID to the g p g key service get params

func (*GPGKeyServiceGetParams) WithTimeout

WithTimeout adds the timeout to the g p g key service get params

func (*GPGKeyServiceGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GPGKeyServiceGetReader

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

GPGKeyServiceGetReader is a Reader for the GPGKeyServiceGet structure.

func (*GPGKeyServiceGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GPGKeyServiceListDefault

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

An unexpected error response.

func NewGPGKeyServiceListDefault

func NewGPGKeyServiceListDefault(code int) *GPGKeyServiceListDefault

NewGPGKeyServiceListDefault creates a GPGKeyServiceListDefault with default headers values

func (*GPGKeyServiceListDefault) Code

func (o *GPGKeyServiceListDefault) Code() int

Code gets the status code for the g p g key service list default response

func (*GPGKeyServiceListDefault) Error

func (o *GPGKeyServiceListDefault) Error() string

func (*GPGKeyServiceListDefault) GetPayload

func (o *GPGKeyServiceListDefault) GetPayload() *models.RuntimeError

type GPGKeyServiceListOK

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

A successful response.

func NewGPGKeyServiceListOK

func NewGPGKeyServiceListOK() *GPGKeyServiceListOK

NewGPGKeyServiceListOK creates a GPGKeyServiceListOK with default headers values

func (*GPGKeyServiceListOK) Error

func (o *GPGKeyServiceListOK) Error() string

func (*GPGKeyServiceListOK) GetPayload

type GPGKeyServiceListParams

type GPGKeyServiceListParams struct {

	/* KeyID.

	   The GPG key ID to query for.
	*/
	KeyID *string

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

GPGKeyServiceListParams contains all the parameters to send to the API endpoint

for the g p g key service list operation.

Typically these are written to a http.Request.

func NewGPGKeyServiceListParams

func NewGPGKeyServiceListParams() *GPGKeyServiceListParams

NewGPGKeyServiceListParams creates a new GPGKeyServiceListParams 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 NewGPGKeyServiceListParamsWithContext

func NewGPGKeyServiceListParamsWithContext(ctx context.Context) *GPGKeyServiceListParams

NewGPGKeyServiceListParamsWithContext creates a new GPGKeyServiceListParams object with the ability to set a context for a request.

func NewGPGKeyServiceListParamsWithHTTPClient

func NewGPGKeyServiceListParamsWithHTTPClient(client *http.Client) *GPGKeyServiceListParams

NewGPGKeyServiceListParamsWithHTTPClient creates a new GPGKeyServiceListParams object with the ability to set a custom HTTPClient for a request.

func NewGPGKeyServiceListParamsWithTimeout

func NewGPGKeyServiceListParamsWithTimeout(timeout time.Duration) *GPGKeyServiceListParams

NewGPGKeyServiceListParamsWithTimeout creates a new GPGKeyServiceListParams object with the ability to set a timeout on a request.

func (*GPGKeyServiceListParams) SetContext

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

SetContext adds the context to the g p g key service list params

func (*GPGKeyServiceListParams) SetDefaults

func (o *GPGKeyServiceListParams) SetDefaults()

SetDefaults hydrates default values in the g p g key service list params (not the query body).

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

func (*GPGKeyServiceListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the g p g key service list params

func (*GPGKeyServiceListParams) SetKeyID

func (o *GPGKeyServiceListParams) SetKeyID(keyID *string)

SetKeyID adds the keyId to the g p g key service list params

func (*GPGKeyServiceListParams) SetTimeout

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

SetTimeout adds the timeout to the g p g key service list params

func (*GPGKeyServiceListParams) WithContext

WithContext adds the context to the g p g key service list params

func (*GPGKeyServiceListParams) WithDefaults

WithDefaults hydrates default values in the g p g key service list params (not the query body).

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

func (*GPGKeyServiceListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the g p g key service list params

func (*GPGKeyServiceListParams) WithKeyID

WithKeyID adds the keyID to the g p g key service list params

func (*GPGKeyServiceListParams) WithTimeout

WithTimeout adds the timeout to the g p g key service list params

func (*GPGKeyServiceListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GPGKeyServiceListReader

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

GPGKeyServiceListReader is a Reader for the GPGKeyServiceList structure.

func (*GPGKeyServiceListReader) ReadResponse

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