enroll

package
v0.26.18 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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 enroll API

func (*Client) Enroll

func (a *Client) Enroll(params *EnrollParams, opts ...ClientOption) (*EnrollOK, error)

Enroll enrolls an identity via one time token

present a OTT and CSR to receive a long-lived client certificate

func (*Client) EnrollCa

func (a *Client) EnrollCa(params *EnrollCaParams, opts ...ClientOption) (*EnrollCaOK, error)
EnrollCa enrolls an identity with a pre exchanged certificate

For CA auto enrollment, an identity is not created beforehand.

Instead one will be created during enrollment. The client will present a client certificate that is signed by a Certificate Authority that has been added and verified (See POST /cas and POST /cas/{id}/verify).

During this process no CSRs are requires as the client should already be in possession of a valid certificate.

func (*Client) EnrollErOtt

func (a *Client) EnrollErOtt(params *EnrollErOttParams, opts ...ClientOption) (*EnrollErOttOK, error)

EnrollErOtt enrolls an edge router

Enrolls an edge-router via a one-time-token to establish a certificate based identity.

func (*Client) EnrollOtt

func (a *Client) EnrollOtt(params *EnrollOttParams, opts ...ClientOption) (*EnrollOttOK, error)
EnrollOtt enrolls an identity via one time token

Enroll an identity via a one-time-token which is supplied via a query string parameter. This enrollment method

expects a PEM encoded CSRs to be provided for fulfillment. It is up to the enrolling identity to manage the private key backing the CSR request.

func (*Client) EnrollOttCa

func (a *Client) EnrollOttCa(params *EnrollOttCaParams, opts ...ClientOption) (*EnrollOttCaOK, error)
EnrollOttCa enrolls an identity via one time token with a pre exchanged client certificate

Enroll an identity via a one-time-token that also requires a pre-exchanged client certificate to match a

Certificate Authority that has been added and verified (See POST /cas and POST /cas{id}/verify). The client must present a client certificate signed by CA associated with the enrollment. This enrollment is similar to CA auto enrollment except that is required the identity to be pre-created.

As the client certificate has been pre-exchanged there is no CSR input to this enrollment method.

func (*Client) ErnollUpdb

func (a *Client) ErnollUpdb(params *ErnollUpdbParams, opts ...ClientOption) (*ErnollUpdbOK, error)

ErnollUpdb enrolls an identity via one time token

Enrolls an identity via a one-time-token to establish an initial username and password combination

func (*Client) ExtendRouterEnrollment

func (a *Client) ExtendRouterEnrollment(params *ExtendRouterEnrollmentParams, opts ...ClientOption) (*ExtendRouterEnrollmentOK, error)
ExtendRouterEnrollment extends the life of a currently enrolled router s certificates

Allows a router to extend its certificates' expiration date by

using its current and valid client certificate to submit a CSR. This CSR may be passed in using a new private key, thus allowing private key rotation or swapping.

After completion any new connections must be made with certificates returned from a 200 OK response. The previous client certificate is rendered invalid for use with the controller even if it has not expired.

This request must be made using the existing, valid, client certificate.

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 {
	Enroll(params *EnrollParams, opts ...ClientOption) (*EnrollOK, error)

	EnrollCa(params *EnrollCaParams, opts ...ClientOption) (*EnrollCaOK, error)

	EnrollErOtt(params *EnrollErOttParams, opts ...ClientOption) (*EnrollErOttOK, error)

	EnrollOtt(params *EnrollOttParams, opts ...ClientOption) (*EnrollOttOK, error)

	EnrollOttCa(params *EnrollOttCaParams, opts ...ClientOption) (*EnrollOttCaOK, error)

	ErnollUpdb(params *ErnollUpdbParams, opts ...ClientOption) (*ErnollUpdbOK, error)

	ExtendRouterEnrollment(params *ExtendRouterEnrollmentParams, opts ...ClientOption) (*ExtendRouterEnrollmentOK, 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 enroll API client.

type EnrollCaNotFound

type EnrollCaNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
EnrollCaNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewEnrollCaNotFound

func NewEnrollCaNotFound() *EnrollCaNotFound

NewEnrollCaNotFound creates a EnrollCaNotFound with default headers values

func (*EnrollCaNotFound) Error

func (o *EnrollCaNotFound) Error() string

func (*EnrollCaNotFound) GetPayload

func (o *EnrollCaNotFound) GetPayload() *rest_model.APIErrorEnvelope

type EnrollCaOK

type EnrollCaOK struct {
	Payload *rest_model.Empty
}
EnrollCaOK describes a response with status code 200, with default header values.

Base empty response

func NewEnrollCaOK

func NewEnrollCaOK() *EnrollCaOK

NewEnrollCaOK creates a EnrollCaOK with default headers values

func (*EnrollCaOK) Error

func (o *EnrollCaOK) Error() string

func (*EnrollCaOK) GetPayload

func (o *EnrollCaOK) GetPayload() *rest_model.Empty

type EnrollCaParams

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

EnrollCaParams contains all the parameters to send to the API endpoint

for the enroll ca operation.

Typically these are written to a http.Request.

func NewEnrollCaParams

func NewEnrollCaParams() *EnrollCaParams

NewEnrollCaParams creates a new EnrollCaParams 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 NewEnrollCaParamsWithContext

func NewEnrollCaParamsWithContext(ctx context.Context) *EnrollCaParams

NewEnrollCaParamsWithContext creates a new EnrollCaParams object with the ability to set a context for a request.

func NewEnrollCaParamsWithHTTPClient

func NewEnrollCaParamsWithHTTPClient(client *http.Client) *EnrollCaParams

NewEnrollCaParamsWithHTTPClient creates a new EnrollCaParams object with the ability to set a custom HTTPClient for a request.

func NewEnrollCaParamsWithTimeout

func NewEnrollCaParamsWithTimeout(timeout time.Duration) *EnrollCaParams

NewEnrollCaParamsWithTimeout creates a new EnrollCaParams object with the ability to set a timeout on a request.

func (*EnrollCaParams) SetContext

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

SetContext adds the context to the enroll ca params

func (*EnrollCaParams) SetDefaults

func (o *EnrollCaParams) SetDefaults()

SetDefaults hydrates default values in the enroll ca params (not the query body).

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

func (*EnrollCaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the enroll ca params

func (*EnrollCaParams) SetTimeout

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

SetTimeout adds the timeout to the enroll ca params

func (*EnrollCaParams) WithContext

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

WithContext adds the context to the enroll ca params

func (*EnrollCaParams) WithDefaults

func (o *EnrollCaParams) WithDefaults() *EnrollCaParams

WithDefaults hydrates default values in the enroll ca params (not the query body).

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

func (*EnrollCaParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the enroll ca params

func (*EnrollCaParams) WithTimeout

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

WithTimeout adds the timeout to the enroll ca params

func (*EnrollCaParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EnrollCaReader

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

EnrollCaReader is a Reader for the EnrollCa structure.

func (*EnrollCaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EnrollCaTooManyRequests added in v0.26.0

type EnrollCaTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
EnrollCaTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewEnrollCaTooManyRequests added in v0.26.0

func NewEnrollCaTooManyRequests() *EnrollCaTooManyRequests

NewEnrollCaTooManyRequests creates a EnrollCaTooManyRequests with default headers values

func (*EnrollCaTooManyRequests) Error added in v0.26.0

func (o *EnrollCaTooManyRequests) Error() string

func (*EnrollCaTooManyRequests) GetPayload added in v0.26.0

type EnrollErOttOK

type EnrollErOttOK struct {
	Payload *rest_model.EnrollmentCertsEnvelope
}
EnrollErOttOK describes a response with status code 200, with default header values.

A response containing the edge routers signed certificates (server chain, server cert, CAs).

func NewEnrollErOttOK

func NewEnrollErOttOK() *EnrollErOttOK

NewEnrollErOttOK creates a EnrollErOttOK with default headers values

func (*EnrollErOttOK) Error

func (o *EnrollErOttOK) Error() string

func (*EnrollErOttOK) GetPayload

type EnrollErOttParams

type EnrollErOttParams struct {

	// Token.
	//
	// Format: uuid
	Token strfmt.UUID

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

EnrollErOttParams contains all the parameters to send to the API endpoint

for the enroll er ott operation.

Typically these are written to a http.Request.

func NewEnrollErOttParams

func NewEnrollErOttParams() *EnrollErOttParams

NewEnrollErOttParams creates a new EnrollErOttParams 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 NewEnrollErOttParamsWithContext

func NewEnrollErOttParamsWithContext(ctx context.Context) *EnrollErOttParams

NewEnrollErOttParamsWithContext creates a new EnrollErOttParams object with the ability to set a context for a request.

func NewEnrollErOttParamsWithHTTPClient

func NewEnrollErOttParamsWithHTTPClient(client *http.Client) *EnrollErOttParams

NewEnrollErOttParamsWithHTTPClient creates a new EnrollErOttParams object with the ability to set a custom HTTPClient for a request.

func NewEnrollErOttParamsWithTimeout

func NewEnrollErOttParamsWithTimeout(timeout time.Duration) *EnrollErOttParams

NewEnrollErOttParamsWithTimeout creates a new EnrollErOttParams object with the ability to set a timeout on a request.

func (*EnrollErOttParams) SetContext

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

SetContext adds the context to the enroll er ott params

func (*EnrollErOttParams) SetDefaults

func (o *EnrollErOttParams) SetDefaults()

SetDefaults hydrates default values in the enroll er ott params (not the query body).

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

func (*EnrollErOttParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the enroll er ott params

func (*EnrollErOttParams) SetTimeout

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

SetTimeout adds the timeout to the enroll er ott params

func (*EnrollErOttParams) SetToken

func (o *EnrollErOttParams) SetToken(token strfmt.UUID)

SetToken adds the token to the enroll er ott params

func (*EnrollErOttParams) WithContext

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

WithContext adds the context to the enroll er ott params

func (*EnrollErOttParams) WithDefaults

func (o *EnrollErOttParams) WithDefaults() *EnrollErOttParams

WithDefaults hydrates default values in the enroll er ott params (not the query body).

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

func (*EnrollErOttParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the enroll er ott params

func (*EnrollErOttParams) WithTimeout

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

WithTimeout adds the timeout to the enroll er ott params

func (*EnrollErOttParams) WithToken

func (o *EnrollErOttParams) WithToken(token strfmt.UUID) *EnrollErOttParams

WithToken adds the token to the enroll er ott params

func (*EnrollErOttParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EnrollErOttReader

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

EnrollErOttReader is a Reader for the EnrollErOtt structure.

func (*EnrollErOttReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EnrollErOttTooManyRequests added in v0.26.0

type EnrollErOttTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
EnrollErOttTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewEnrollErOttTooManyRequests added in v0.26.0

func NewEnrollErOttTooManyRequests() *EnrollErOttTooManyRequests

NewEnrollErOttTooManyRequests creates a EnrollErOttTooManyRequests with default headers values

func (*EnrollErOttTooManyRequests) Error added in v0.26.0

func (*EnrollErOttTooManyRequests) GetPayload added in v0.26.0

type EnrollNotFound

type EnrollNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
EnrollNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewEnrollNotFound

func NewEnrollNotFound() *EnrollNotFound

NewEnrollNotFound creates a EnrollNotFound with default headers values

func (*EnrollNotFound) Error

func (o *EnrollNotFound) Error() string

func (*EnrollNotFound) GetPayload

func (o *EnrollNotFound) GetPayload() *rest_model.APIErrorEnvelope

type EnrollOK

type EnrollOK struct {
	Payload *rest_model.Empty
}
EnrollOK describes a response with status code 200, with default header values.

Base empty response

func NewEnrollOK

func NewEnrollOK() *EnrollOK

NewEnrollOK creates a EnrollOK with default headers values

func (*EnrollOK) Error

func (o *EnrollOK) Error() string

func (*EnrollOK) GetPayload

func (o *EnrollOK) GetPayload() *rest_model.Empty

type EnrollOttCaOK

type EnrollOttCaOK struct {
	Payload *rest_model.Empty
}
EnrollOttCaOK describes a response with status code 200, with default header values.

Base empty response

func NewEnrollOttCaOK

func NewEnrollOttCaOK() *EnrollOttCaOK

NewEnrollOttCaOK creates a EnrollOttCaOK with default headers values

func (*EnrollOttCaOK) Error

func (o *EnrollOttCaOK) Error() string

func (*EnrollOttCaOK) GetPayload

func (o *EnrollOttCaOK) GetPayload() *rest_model.Empty

type EnrollOttCaParams

type EnrollOttCaParams struct {

	// Token.
	//
	// Format: uuid
	Token strfmt.UUID

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

EnrollOttCaParams contains all the parameters to send to the API endpoint

for the enroll ott ca operation.

Typically these are written to a http.Request.

func NewEnrollOttCaParams

func NewEnrollOttCaParams() *EnrollOttCaParams

NewEnrollOttCaParams creates a new EnrollOttCaParams 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 NewEnrollOttCaParamsWithContext

func NewEnrollOttCaParamsWithContext(ctx context.Context) *EnrollOttCaParams

NewEnrollOttCaParamsWithContext creates a new EnrollOttCaParams object with the ability to set a context for a request.

func NewEnrollOttCaParamsWithHTTPClient

func NewEnrollOttCaParamsWithHTTPClient(client *http.Client) *EnrollOttCaParams

NewEnrollOttCaParamsWithHTTPClient creates a new EnrollOttCaParams object with the ability to set a custom HTTPClient for a request.

func NewEnrollOttCaParamsWithTimeout

func NewEnrollOttCaParamsWithTimeout(timeout time.Duration) *EnrollOttCaParams

NewEnrollOttCaParamsWithTimeout creates a new EnrollOttCaParams object with the ability to set a timeout on a request.

func (*EnrollOttCaParams) SetContext

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

SetContext adds the context to the enroll ott ca params

func (*EnrollOttCaParams) SetDefaults

func (o *EnrollOttCaParams) SetDefaults()

SetDefaults hydrates default values in the enroll ott ca params (not the query body).

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

func (*EnrollOttCaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the enroll ott ca params

func (*EnrollOttCaParams) SetTimeout

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

SetTimeout adds the timeout to the enroll ott ca params

func (*EnrollOttCaParams) SetToken

func (o *EnrollOttCaParams) SetToken(token strfmt.UUID)

SetToken adds the token to the enroll ott ca params

func (*EnrollOttCaParams) WithContext

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

WithContext adds the context to the enroll ott ca params

func (*EnrollOttCaParams) WithDefaults

func (o *EnrollOttCaParams) WithDefaults() *EnrollOttCaParams

WithDefaults hydrates default values in the enroll ott ca params (not the query body).

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

func (*EnrollOttCaParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the enroll ott ca params

func (*EnrollOttCaParams) WithTimeout

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

WithTimeout adds the timeout to the enroll ott ca params

func (*EnrollOttCaParams) WithToken

func (o *EnrollOttCaParams) WithToken(token strfmt.UUID) *EnrollOttCaParams

WithToken adds the token to the enroll ott ca params

func (*EnrollOttCaParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EnrollOttCaReader

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

EnrollOttCaReader is a Reader for the EnrollOttCa structure.

func (*EnrollOttCaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EnrollOttCaTooManyRequests added in v0.26.0

type EnrollOttCaTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
EnrollOttCaTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewEnrollOttCaTooManyRequests added in v0.26.0

func NewEnrollOttCaTooManyRequests() *EnrollOttCaTooManyRequests

NewEnrollOttCaTooManyRequests creates a EnrollOttCaTooManyRequests with default headers values

func (*EnrollOttCaTooManyRequests) Error added in v0.26.0

func (*EnrollOttCaTooManyRequests) GetPayload added in v0.26.0

type EnrollOttNotFound

type EnrollOttNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
EnrollOttNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewEnrollOttNotFound

func NewEnrollOttNotFound() *EnrollOttNotFound

NewEnrollOttNotFound creates a EnrollOttNotFound with default headers values

func (*EnrollOttNotFound) Error

func (o *EnrollOttNotFound) Error() string

func (*EnrollOttNotFound) GetPayload

type EnrollOttOK

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

A PEM encoded certificate signed by the internal Ziti CA

func NewEnrollOttOK

func NewEnrollOttOK() *EnrollOttOK

NewEnrollOttOK creates a EnrollOttOK with default headers values

func (*EnrollOttOK) Error

func (o *EnrollOttOK) Error() string

func (*EnrollOttOK) GetPayload

func (o *EnrollOttOK) GetPayload() string

type EnrollOttParams

type EnrollOttParams struct {

	// Token.
	//
	// Format: uuid
	Token strfmt.UUID

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

EnrollOttParams contains all the parameters to send to the API endpoint

for the enroll ott operation.

Typically these are written to a http.Request.

func NewEnrollOttParams

func NewEnrollOttParams() *EnrollOttParams

NewEnrollOttParams creates a new EnrollOttParams 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 NewEnrollOttParamsWithContext

func NewEnrollOttParamsWithContext(ctx context.Context) *EnrollOttParams

NewEnrollOttParamsWithContext creates a new EnrollOttParams object with the ability to set a context for a request.

func NewEnrollOttParamsWithHTTPClient

func NewEnrollOttParamsWithHTTPClient(client *http.Client) *EnrollOttParams

NewEnrollOttParamsWithHTTPClient creates a new EnrollOttParams object with the ability to set a custom HTTPClient for a request.

func NewEnrollOttParamsWithTimeout

func NewEnrollOttParamsWithTimeout(timeout time.Duration) *EnrollOttParams

NewEnrollOttParamsWithTimeout creates a new EnrollOttParams object with the ability to set a timeout on a request.

func (*EnrollOttParams) SetContext

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

SetContext adds the context to the enroll ott params

func (*EnrollOttParams) SetDefaults

func (o *EnrollOttParams) SetDefaults()

SetDefaults hydrates default values in the enroll ott params (not the query body).

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

func (*EnrollOttParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the enroll ott params

func (*EnrollOttParams) SetTimeout

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

SetTimeout adds the timeout to the enroll ott params

func (*EnrollOttParams) SetToken

func (o *EnrollOttParams) SetToken(token strfmt.UUID)

SetToken adds the token to the enroll ott params

func (*EnrollOttParams) WithContext

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

WithContext adds the context to the enroll ott params

func (*EnrollOttParams) WithDefaults

func (o *EnrollOttParams) WithDefaults() *EnrollOttParams

WithDefaults hydrates default values in the enroll ott params (not the query body).

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

func (*EnrollOttParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the enroll ott params

func (*EnrollOttParams) WithTimeout

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

WithTimeout adds the timeout to the enroll ott params

func (*EnrollOttParams) WithToken

func (o *EnrollOttParams) WithToken(token strfmt.UUID) *EnrollOttParams

WithToken adds the token to the enroll ott params

func (*EnrollOttParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EnrollOttReader

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

EnrollOttReader is a Reader for the EnrollOtt structure.

func (*EnrollOttReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EnrollOttTooManyRequests added in v0.26.0

type EnrollOttTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
EnrollOttTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewEnrollOttTooManyRequests added in v0.26.0

func NewEnrollOttTooManyRequests() *EnrollOttTooManyRequests

NewEnrollOttTooManyRequests creates a EnrollOttTooManyRequests with default headers values

func (*EnrollOttTooManyRequests) Error added in v0.26.0

func (o *EnrollOttTooManyRequests) Error() string

func (*EnrollOttTooManyRequests) GetPayload added in v0.26.0

type EnrollParams

type EnrollParams struct {

	// Method.
	Method *string

	// Token.
	//
	// Format: uuid
	Token *strfmt.UUID

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

EnrollParams contains all the parameters to send to the API endpoint

for the enroll operation.

Typically these are written to a http.Request.

func NewEnrollParams

func NewEnrollParams() *EnrollParams

NewEnrollParams creates a new EnrollParams 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 NewEnrollParamsWithContext

func NewEnrollParamsWithContext(ctx context.Context) *EnrollParams

NewEnrollParamsWithContext creates a new EnrollParams object with the ability to set a context for a request.

func NewEnrollParamsWithHTTPClient

func NewEnrollParamsWithHTTPClient(client *http.Client) *EnrollParams

NewEnrollParamsWithHTTPClient creates a new EnrollParams object with the ability to set a custom HTTPClient for a request.

func NewEnrollParamsWithTimeout

func NewEnrollParamsWithTimeout(timeout time.Duration) *EnrollParams

NewEnrollParamsWithTimeout creates a new EnrollParams object with the ability to set a timeout on a request.

func (*EnrollParams) SetContext

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

SetContext adds the context to the enroll params

func (*EnrollParams) SetDefaults

func (o *EnrollParams) SetDefaults()

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

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

func (*EnrollParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the enroll params

func (*EnrollParams) SetMethod added in v0.25.11

func (o *EnrollParams) SetMethod(method *string)

SetMethod adds the method to the enroll params

func (*EnrollParams) SetTimeout

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

SetTimeout adds the timeout to the enroll params

func (*EnrollParams) SetToken

func (o *EnrollParams) SetToken(token *strfmt.UUID)

SetToken adds the token to the enroll params

func (*EnrollParams) WithContext

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

WithContext adds the context to the enroll params

func (*EnrollParams) WithDefaults

func (o *EnrollParams) WithDefaults() *EnrollParams

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

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

func (*EnrollParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the enroll params

func (*EnrollParams) WithMethod added in v0.25.11

func (o *EnrollParams) WithMethod(method *string) *EnrollParams

WithMethod adds the method to the enroll params

func (*EnrollParams) WithTimeout

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

WithTimeout adds the timeout to the enroll params

func (*EnrollParams) WithToken

func (o *EnrollParams) WithToken(token *strfmt.UUID) *EnrollParams

WithToken adds the token to the enroll params

func (*EnrollParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EnrollReader

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

EnrollReader is a Reader for the Enroll structure.

func (*EnrollReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EnrollTooManyRequests added in v0.26.0

type EnrollTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
EnrollTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewEnrollTooManyRequests added in v0.26.0

func NewEnrollTooManyRequests() *EnrollTooManyRequests

NewEnrollTooManyRequests creates a EnrollTooManyRequests with default headers values

func (*EnrollTooManyRequests) Error added in v0.26.0

func (o *EnrollTooManyRequests) Error() string

func (*EnrollTooManyRequests) GetPayload added in v0.26.0

type ErnollUpdbNotFound

type ErnollUpdbNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
ErnollUpdbNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewErnollUpdbNotFound

func NewErnollUpdbNotFound() *ErnollUpdbNotFound

NewErnollUpdbNotFound creates a ErnollUpdbNotFound with default headers values

func (*ErnollUpdbNotFound) Error

func (o *ErnollUpdbNotFound) Error() string

func (*ErnollUpdbNotFound) GetPayload

type ErnollUpdbOK

type ErnollUpdbOK struct {
	Payload *rest_model.Empty
}
ErnollUpdbOK describes a response with status code 200, with default header values.

Base empty response

func NewErnollUpdbOK

func NewErnollUpdbOK() *ErnollUpdbOK

NewErnollUpdbOK creates a ErnollUpdbOK with default headers values

func (*ErnollUpdbOK) Error

func (o *ErnollUpdbOK) Error() string

func (*ErnollUpdbOK) GetPayload

func (o *ErnollUpdbOK) GetPayload() *rest_model.Empty

type ErnollUpdbParams

type ErnollUpdbParams struct {

	// Token.
	//
	// Format: uuid
	Token strfmt.UUID

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

ErnollUpdbParams contains all the parameters to send to the API endpoint

for the ernoll updb operation.

Typically these are written to a http.Request.

func NewErnollUpdbParams

func NewErnollUpdbParams() *ErnollUpdbParams

NewErnollUpdbParams creates a new ErnollUpdbParams 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 NewErnollUpdbParamsWithContext

func NewErnollUpdbParamsWithContext(ctx context.Context) *ErnollUpdbParams

NewErnollUpdbParamsWithContext creates a new ErnollUpdbParams object with the ability to set a context for a request.

func NewErnollUpdbParamsWithHTTPClient

func NewErnollUpdbParamsWithHTTPClient(client *http.Client) *ErnollUpdbParams

NewErnollUpdbParamsWithHTTPClient creates a new ErnollUpdbParams object with the ability to set a custom HTTPClient for a request.

func NewErnollUpdbParamsWithTimeout

func NewErnollUpdbParamsWithTimeout(timeout time.Duration) *ErnollUpdbParams

NewErnollUpdbParamsWithTimeout creates a new ErnollUpdbParams object with the ability to set a timeout on a request.

func (*ErnollUpdbParams) SetContext

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

SetContext adds the context to the ernoll updb params

func (*ErnollUpdbParams) SetDefaults

func (o *ErnollUpdbParams) SetDefaults()

SetDefaults hydrates default values in the ernoll updb params (not the query body).

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

func (*ErnollUpdbParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the ernoll updb params

func (*ErnollUpdbParams) SetTimeout

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

SetTimeout adds the timeout to the ernoll updb params

func (*ErnollUpdbParams) SetToken

func (o *ErnollUpdbParams) SetToken(token strfmt.UUID)

SetToken adds the token to the ernoll updb params

func (*ErnollUpdbParams) WithContext

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

WithContext adds the context to the ernoll updb params

func (*ErnollUpdbParams) WithDefaults

func (o *ErnollUpdbParams) WithDefaults() *ErnollUpdbParams

WithDefaults hydrates default values in the ernoll updb params (not the query body).

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

func (*ErnollUpdbParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the ernoll updb params

func (*ErnollUpdbParams) WithTimeout

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

WithTimeout adds the timeout to the ernoll updb params

func (*ErnollUpdbParams) WithToken

func (o *ErnollUpdbParams) WithToken(token strfmt.UUID) *ErnollUpdbParams

WithToken adds the token to the ernoll updb params

func (*ErnollUpdbParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ErnollUpdbReader

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

ErnollUpdbReader is a Reader for the ErnollUpdb structure.

func (*ErnollUpdbReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ErnollUpdbTooManyRequests added in v0.26.0

type ErnollUpdbTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
ErnollUpdbTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewErnollUpdbTooManyRequests added in v0.26.0

func NewErnollUpdbTooManyRequests() *ErnollUpdbTooManyRequests

NewErnollUpdbTooManyRequests creates a ErnollUpdbTooManyRequests with default headers values

func (*ErnollUpdbTooManyRequests) Error added in v0.26.0

func (o *ErnollUpdbTooManyRequests) Error() string

func (*ErnollUpdbTooManyRequests) GetPayload added in v0.26.0

type ExtendRouterEnrollmentOK

type ExtendRouterEnrollmentOK struct {
	Payload *rest_model.EnrollmentCertsEnvelope
}
ExtendRouterEnrollmentOK describes a response with status code 200, with default header values.

A response containg the edge routers new signed certificates (server chain, server cert, CAs).

func NewExtendRouterEnrollmentOK

func NewExtendRouterEnrollmentOK() *ExtendRouterEnrollmentOK

NewExtendRouterEnrollmentOK creates a ExtendRouterEnrollmentOK with default headers values

func (*ExtendRouterEnrollmentOK) Error

func (o *ExtendRouterEnrollmentOK) Error() string

func (*ExtendRouterEnrollmentOK) GetPayload

type ExtendRouterEnrollmentParams

type ExtendRouterEnrollmentParams struct {

	// RouterExtendEnrollmentRequest.
	RouterExtendEnrollmentRequest *rest_model.RouterExtendEnrollmentRequest

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

ExtendRouterEnrollmentParams contains all the parameters to send to the API endpoint

for the extend router enrollment operation.

Typically these are written to a http.Request.

func NewExtendRouterEnrollmentParams

func NewExtendRouterEnrollmentParams() *ExtendRouterEnrollmentParams

NewExtendRouterEnrollmentParams creates a new ExtendRouterEnrollmentParams 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 NewExtendRouterEnrollmentParamsWithContext

func NewExtendRouterEnrollmentParamsWithContext(ctx context.Context) *ExtendRouterEnrollmentParams

NewExtendRouterEnrollmentParamsWithContext creates a new ExtendRouterEnrollmentParams object with the ability to set a context for a request.

func NewExtendRouterEnrollmentParamsWithHTTPClient

func NewExtendRouterEnrollmentParamsWithHTTPClient(client *http.Client) *ExtendRouterEnrollmentParams

NewExtendRouterEnrollmentParamsWithHTTPClient creates a new ExtendRouterEnrollmentParams object with the ability to set a custom HTTPClient for a request.

func NewExtendRouterEnrollmentParamsWithTimeout

func NewExtendRouterEnrollmentParamsWithTimeout(timeout time.Duration) *ExtendRouterEnrollmentParams

NewExtendRouterEnrollmentParamsWithTimeout creates a new ExtendRouterEnrollmentParams object with the ability to set a timeout on a request.

func (*ExtendRouterEnrollmentParams) SetContext

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

SetContext adds the context to the extend router enrollment params

func (*ExtendRouterEnrollmentParams) SetDefaults

func (o *ExtendRouterEnrollmentParams) SetDefaults()

SetDefaults hydrates default values in the extend router enrollment params (not the query body).

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

func (*ExtendRouterEnrollmentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the extend router enrollment params

func (*ExtendRouterEnrollmentParams) SetRouterExtendEnrollmentRequest

func (o *ExtendRouterEnrollmentParams) SetRouterExtendEnrollmentRequest(routerExtendEnrollmentRequest *rest_model.RouterExtendEnrollmentRequest)

SetRouterExtendEnrollmentRequest adds the routerExtendEnrollmentRequest to the extend router enrollment params

func (*ExtendRouterEnrollmentParams) SetTimeout

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

SetTimeout adds the timeout to the extend router enrollment params

func (*ExtendRouterEnrollmentParams) WithContext

WithContext adds the context to the extend router enrollment params

func (*ExtendRouterEnrollmentParams) WithDefaults

WithDefaults hydrates default values in the extend router enrollment params (not the query body).

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

func (*ExtendRouterEnrollmentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the extend router enrollment params

func (*ExtendRouterEnrollmentParams) WithRouterExtendEnrollmentRequest

func (o *ExtendRouterEnrollmentParams) WithRouterExtendEnrollmentRequest(routerExtendEnrollmentRequest *rest_model.RouterExtendEnrollmentRequest) *ExtendRouterEnrollmentParams

WithRouterExtendEnrollmentRequest adds the routerExtendEnrollmentRequest to the extend router enrollment params

func (*ExtendRouterEnrollmentParams) WithTimeout

WithTimeout adds the timeout to the extend router enrollment params

func (*ExtendRouterEnrollmentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ExtendRouterEnrollmentReader

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

ExtendRouterEnrollmentReader is a Reader for the ExtendRouterEnrollment structure.

func (*ExtendRouterEnrollmentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExtendRouterEnrollmentTooManyRequests added in v0.26.0

type ExtendRouterEnrollmentTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
ExtendRouterEnrollmentTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewExtendRouterEnrollmentTooManyRequests added in v0.26.0

func NewExtendRouterEnrollmentTooManyRequests() *ExtendRouterEnrollmentTooManyRequests

NewExtendRouterEnrollmentTooManyRequests creates a ExtendRouterEnrollmentTooManyRequests with default headers values

func (*ExtendRouterEnrollmentTooManyRequests) Error added in v0.26.0

func (*ExtendRouterEnrollmentTooManyRequests) GetPayload added in v0.26.0

type ExtendRouterEnrollmentUnauthorized

type ExtendRouterEnrollmentUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
ExtendRouterEnrollmentUnauthorized describes a response with status code 401, with default header values.

The supplied session does not have the correct access rights to request this resource

func NewExtendRouterEnrollmentUnauthorized

func NewExtendRouterEnrollmentUnauthorized() *ExtendRouterEnrollmentUnauthorized

NewExtendRouterEnrollmentUnauthorized creates a ExtendRouterEnrollmentUnauthorized with default headers values

func (*ExtendRouterEnrollmentUnauthorized) Error

func (*ExtendRouterEnrollmentUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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