enroll

package
v0.0.0-...-31bffcd Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const EnrollCaNotFoundCode int = 404

EnrollCaNotFoundCode is the HTTP code returned for type EnrollCaNotFound

View Source
const EnrollCaOKCode int = 200

EnrollCaOKCode is the HTTP code returned for type EnrollCaOK

View Source
const EnrollErOttOKCode int = 200

EnrollErOttOKCode is the HTTP code returned for type EnrollErOttOK

View Source
const EnrollNotFoundCode int = 404

EnrollNotFoundCode is the HTTP code returned for type EnrollNotFound

View Source
const EnrollOKCode int = 200

EnrollOKCode is the HTTP code returned for type EnrollOK

View Source
const EnrollOttCaOKCode int = 200

EnrollOttCaOKCode is the HTTP code returned for type EnrollOttCaOK

View Source
const EnrollOttNotFoundCode int = 404

EnrollOttNotFoundCode is the HTTP code returned for type EnrollOttNotFound

View Source
const EnrollOttOKCode int = 200

EnrollOttOKCode is the HTTP code returned for type EnrollOttOK

View Source
const ErnollUpdbNotFoundCode int = 404

ErnollUpdbNotFoundCode is the HTTP code returned for type ErnollUpdbNotFound

View Source
const ErnollUpdbOKCode int = 200

ErnollUpdbOKCode is the HTTP code returned for type ErnollUpdbOK

View Source
const ExtendRouterEnrollmentOKCode int = 200

ExtendRouterEnrollmentOKCode is the HTTP code returned for type ExtendRouterEnrollmentOK

View Source
const ExtendRouterEnrollmentUnauthorizedCode int = 401

ExtendRouterEnrollmentUnauthorizedCode is the HTTP code returned for type ExtendRouterEnrollmentUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type Enroll

type Enroll struct {
	Context *middleware.Context
	Handler EnrollHandler
}
Enroll swagger:route POST /enroll Enroll enroll

Legacy enrollment endpoint

endpoint defers to the logic in the more specific `enroll/*` endpoints

func NewEnroll

func NewEnroll(ctx *middleware.Context, handler EnrollHandler) *Enroll

NewEnroll creates a new http.Handler for the enroll operation

func (*Enroll) ServeHTTP

func (o *Enroll) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type EnrollCa

type EnrollCa struct {
	Context *middleware.Context
	Handler EnrollCaHandler
}
EnrollCa swagger:route POST /enroll/ca Enroll enrollCa

Enroll 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 NewEnrollCa

func NewEnrollCa(ctx *middleware.Context, handler EnrollCaHandler) *EnrollCa

NewEnrollCa creates a new http.Handler for the enroll ca operation

func (*EnrollCa) ServeHTTP

func (o *EnrollCa) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type EnrollCaHandler

type EnrollCaHandler interface {
	Handle(EnrollCaParams) middleware.Responder
}

EnrollCaHandler interface for that can handle valid enroll ca params

type EnrollCaHandlerFunc

type EnrollCaHandlerFunc func(EnrollCaParams) middleware.Responder

EnrollCaHandlerFunc turns a function with the right signature into a enroll ca handler

func (EnrollCaHandlerFunc) Handle

Handle executing the request and returning a response

type EnrollCaNotFound

type EnrollCaNotFound struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

EnrollCaNotFound The requested resource does not exist

swagger:response enrollCaNotFound

func NewEnrollCaNotFound

func NewEnrollCaNotFound() *EnrollCaNotFound

NewEnrollCaNotFound creates EnrollCaNotFound with default headers values

func (*EnrollCaNotFound) SetPayload

func (o *EnrollCaNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the enroll ca not found response

func (*EnrollCaNotFound) WithPayload

WithPayload adds the payload to the enroll ca not found response

func (*EnrollCaNotFound) WriteResponse

func (o *EnrollCaNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type EnrollCaOK

type EnrollCaOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

EnrollCaOK Base empty response

swagger:response enrollCaOK

func NewEnrollCaOK

func NewEnrollCaOK() *EnrollCaOK

NewEnrollCaOK creates EnrollCaOK with default headers values

func (*EnrollCaOK) SetPayload

func (o *EnrollCaOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the enroll ca o k response

func (*EnrollCaOK) WithPayload

func (o *EnrollCaOK) WithPayload(payload *rest_model.Empty) *EnrollCaOK

WithPayload adds the payload to the enroll ca o k response

func (*EnrollCaOK) WriteResponse

func (o *EnrollCaOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type EnrollCaParams

type EnrollCaParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

EnrollCaParams contains all the bound params for the enroll ca operation typically these are obtained from a http.Request

swagger:parameters enrollCa

func NewEnrollCaParams

func NewEnrollCaParams() EnrollCaParams

NewEnrollCaParams creates a new EnrollCaParams object

There are no default values defined in the spec.

func (*EnrollCaParams) BindRequest

func (o *EnrollCaParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewEnrollCaParams() beforehand.

type EnrollCaURL

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

EnrollCaURL generates an URL for the enroll ca operation

func (*EnrollCaURL) Build

func (o *EnrollCaURL) Build() (*url.URL, error)

Build a url path and query string

func (*EnrollCaURL) BuildFull

func (o *EnrollCaURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*EnrollCaURL) Must

func (o *EnrollCaURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*EnrollCaURL) SetBasePath

func (o *EnrollCaURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*EnrollCaURL) String

func (o *EnrollCaURL) String() string

String returns the string representation of the path with query string

func (*EnrollCaURL) StringFull

func (o *EnrollCaURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*EnrollCaURL) WithBasePath

func (o *EnrollCaURL) WithBasePath(bp string) *EnrollCaURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type EnrollErOtt

type EnrollErOtt struct {
	Context *middleware.Context
	Handler EnrollErOttHandler
}
EnrollErOtt swagger:route POST /enroll/erott Enroll enrollErOtt

Enroll an edge-router

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

func NewEnrollErOtt

func NewEnrollErOtt(ctx *middleware.Context, handler EnrollErOttHandler) *EnrollErOtt

NewEnrollErOtt creates a new http.Handler for the enroll er ott operation

func (*EnrollErOtt) ServeHTTP

func (o *EnrollErOtt) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type EnrollErOttHandler

type EnrollErOttHandler interface {
	Handle(EnrollErOttParams) middleware.Responder
}

EnrollErOttHandler interface for that can handle valid enroll er ott params

type EnrollErOttHandlerFunc

type EnrollErOttHandlerFunc func(EnrollErOttParams) middleware.Responder

EnrollErOttHandlerFunc turns a function with the right signature into a enroll er ott handler

func (EnrollErOttHandlerFunc) Handle

Handle executing the request and returning a response

type EnrollErOttOK

type EnrollErOttOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.EnrollmentCertsEnvelope `json:"body,omitempty"`
}

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

swagger:response enrollErOttOK

func NewEnrollErOttOK

func NewEnrollErOttOK() *EnrollErOttOK

NewEnrollErOttOK creates EnrollErOttOK with default headers values

func (*EnrollErOttOK) SetPayload

func (o *EnrollErOttOK) SetPayload(payload *rest_model.EnrollmentCertsEnvelope)

SetPayload sets the payload to the enroll er ott o k response

func (*EnrollErOttOK) WithPayload

WithPayload adds the payload to the enroll er ott o k response

func (*EnrollErOttOK) WriteResponse

func (o *EnrollErOttOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type EnrollErOttParams

type EnrollErOttParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: query
	*/
	Token strfmt.UUID
}

EnrollErOttParams contains all the bound params for the enroll er ott operation typically these are obtained from a http.Request

swagger:parameters enrollErOtt

func NewEnrollErOttParams

func NewEnrollErOttParams() EnrollErOttParams

NewEnrollErOttParams creates a new EnrollErOttParams object

There are no default values defined in the spec.

func (*EnrollErOttParams) BindRequest

func (o *EnrollErOttParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewEnrollErOttParams() beforehand.

type EnrollErOttURL

type EnrollErOttURL struct {
	Token strfmt.UUID
	// contains filtered or unexported fields
}

EnrollErOttURL generates an URL for the enroll er ott operation

func (*EnrollErOttURL) Build

func (o *EnrollErOttURL) Build() (*url.URL, error)

Build a url path and query string

func (*EnrollErOttURL) BuildFull

func (o *EnrollErOttURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*EnrollErOttURL) Must

func (o *EnrollErOttURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*EnrollErOttURL) SetBasePath

func (o *EnrollErOttURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*EnrollErOttURL) String

func (o *EnrollErOttURL) String() string

String returns the string representation of the path with query string

func (*EnrollErOttURL) StringFull

func (o *EnrollErOttURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*EnrollErOttURL) WithBasePath

func (o *EnrollErOttURL) WithBasePath(bp string) *EnrollErOttURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type EnrollHandler

type EnrollHandler interface {
	Handle(EnrollParams) middleware.Responder
}

EnrollHandler interface for that can handle valid enroll params

type EnrollHandlerFunc

type EnrollHandlerFunc func(EnrollParams) middleware.Responder

EnrollHandlerFunc turns a function with the right signature into a enroll handler

func (EnrollHandlerFunc) Handle

Handle executing the request and returning a response

type EnrollNotFound

type EnrollNotFound struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

EnrollNotFound The requested resource does not exist

swagger:response enrollNotFound

func NewEnrollNotFound

func NewEnrollNotFound() *EnrollNotFound

NewEnrollNotFound creates EnrollNotFound with default headers values

func (*EnrollNotFound) SetPayload

func (o *EnrollNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the enroll not found response

func (*EnrollNotFound) WithPayload

func (o *EnrollNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollNotFound

WithPayload adds the payload to the enroll not found response

func (*EnrollNotFound) WriteResponse

func (o *EnrollNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type EnrollOK

type EnrollOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

EnrollOK Base empty response

swagger:response enrollOK

func NewEnrollOK

func NewEnrollOK() *EnrollOK

NewEnrollOK creates EnrollOK with default headers values

func (*EnrollOK) SetPayload

func (o *EnrollOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the enroll o k response

func (*EnrollOK) WithPayload

func (o *EnrollOK) WithPayload(payload *rest_model.Empty) *EnrollOK

WithPayload adds the payload to the enroll o k response

func (*EnrollOK) WriteResponse

func (o *EnrollOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type EnrollOtt

type EnrollOtt struct {
	Context *middleware.Context
	Handler EnrollOttHandler
}
EnrollOtt swagger:route POST /enroll/ott Enroll enrollOtt

Enroll 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 NewEnrollOtt

func NewEnrollOtt(ctx *middleware.Context, handler EnrollOttHandler) *EnrollOtt

NewEnrollOtt creates a new http.Handler for the enroll ott operation

func (*EnrollOtt) ServeHTTP

func (o *EnrollOtt) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type EnrollOttCa

type EnrollOttCa struct {
	Context *middleware.Context
	Handler EnrollOttCaHandler
}
EnrollOttCa swagger:route POST /enroll/ottca Enroll enrollOttCa

Enroll 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 NewEnrollOttCa

func NewEnrollOttCa(ctx *middleware.Context, handler EnrollOttCaHandler) *EnrollOttCa

NewEnrollOttCa creates a new http.Handler for the enroll ott ca operation

func (*EnrollOttCa) ServeHTTP

func (o *EnrollOttCa) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type EnrollOttCaHandler

type EnrollOttCaHandler interface {
	Handle(EnrollOttCaParams) middleware.Responder
}

EnrollOttCaHandler interface for that can handle valid enroll ott ca params

type EnrollOttCaHandlerFunc

type EnrollOttCaHandlerFunc func(EnrollOttCaParams) middleware.Responder

EnrollOttCaHandlerFunc turns a function with the right signature into a enroll ott ca handler

func (EnrollOttCaHandlerFunc) Handle

Handle executing the request and returning a response

type EnrollOttCaOK

type EnrollOttCaOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

EnrollOttCaOK Base empty response

swagger:response enrollOttCaOK

func NewEnrollOttCaOK

func NewEnrollOttCaOK() *EnrollOttCaOK

NewEnrollOttCaOK creates EnrollOttCaOK with default headers values

func (*EnrollOttCaOK) SetPayload

func (o *EnrollOttCaOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the enroll ott ca o k response

func (*EnrollOttCaOK) WithPayload

func (o *EnrollOttCaOK) WithPayload(payload *rest_model.Empty) *EnrollOttCaOK

WithPayload adds the payload to the enroll ott ca o k response

func (*EnrollOttCaOK) WriteResponse

func (o *EnrollOttCaOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type EnrollOttCaParams

type EnrollOttCaParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: query
	*/
	Token strfmt.UUID
}

EnrollOttCaParams contains all the bound params for the enroll ott ca operation typically these are obtained from a http.Request

swagger:parameters enrollOttCa

func NewEnrollOttCaParams

func NewEnrollOttCaParams() EnrollOttCaParams

NewEnrollOttCaParams creates a new EnrollOttCaParams object

There are no default values defined in the spec.

func (*EnrollOttCaParams) BindRequest

func (o *EnrollOttCaParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewEnrollOttCaParams() beforehand.

type EnrollOttCaURL

type EnrollOttCaURL struct {
	Token strfmt.UUID
	// contains filtered or unexported fields
}

EnrollOttCaURL generates an URL for the enroll ott ca operation

func (*EnrollOttCaURL) Build

func (o *EnrollOttCaURL) Build() (*url.URL, error)

Build a url path and query string

func (*EnrollOttCaURL) BuildFull

func (o *EnrollOttCaURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*EnrollOttCaURL) Must

func (o *EnrollOttCaURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*EnrollOttCaURL) SetBasePath

func (o *EnrollOttCaURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*EnrollOttCaURL) String

func (o *EnrollOttCaURL) String() string

String returns the string representation of the path with query string

func (*EnrollOttCaURL) StringFull

func (o *EnrollOttCaURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*EnrollOttCaURL) WithBasePath

func (o *EnrollOttCaURL) WithBasePath(bp string) *EnrollOttCaURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type EnrollOttHandler

type EnrollOttHandler interface {
	Handle(EnrollOttParams) middleware.Responder
}

EnrollOttHandler interface for that can handle valid enroll ott params

type EnrollOttHandlerFunc

type EnrollOttHandlerFunc func(EnrollOttParams) middleware.Responder

EnrollOttHandlerFunc turns a function with the right signature into a enroll ott handler

func (EnrollOttHandlerFunc) Handle

Handle executing the request and returning a response

type EnrollOttNotFound

type EnrollOttNotFound struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

EnrollOttNotFound The requested resource does not exist

swagger:response enrollOttNotFound

func NewEnrollOttNotFound

func NewEnrollOttNotFound() *EnrollOttNotFound

NewEnrollOttNotFound creates EnrollOttNotFound with default headers values

func (*EnrollOttNotFound) SetPayload

func (o *EnrollOttNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the enroll ott not found response

func (*EnrollOttNotFound) WithPayload

WithPayload adds the payload to the enroll ott not found response

func (*EnrollOttNotFound) WriteResponse

func (o *EnrollOttNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type EnrollOttOK

type EnrollOttOK struct {

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

EnrollOttOK A PEM encoded certificate signed by the internal Ziti CA

swagger:response enrollOttOK

func NewEnrollOttOK

func NewEnrollOttOK() *EnrollOttOK

NewEnrollOttOK creates EnrollOttOK with default headers values

func (*EnrollOttOK) SetPayload

func (o *EnrollOttOK) SetPayload(payload string)

SetPayload sets the payload to the enroll ott o k response

func (*EnrollOttOK) WithPayload

func (o *EnrollOttOK) WithPayload(payload string) *EnrollOttOK

WithPayload adds the payload to the enroll ott o k response

func (*EnrollOttOK) WriteResponse

func (o *EnrollOttOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type EnrollOttParams

type EnrollOttParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: query
	*/
	Token strfmt.UUID
}

EnrollOttParams contains all the bound params for the enroll ott operation typically these are obtained from a http.Request

swagger:parameters enrollOtt

func NewEnrollOttParams

func NewEnrollOttParams() EnrollOttParams

NewEnrollOttParams creates a new EnrollOttParams object

There are no default values defined in the spec.

func (*EnrollOttParams) BindRequest

func (o *EnrollOttParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewEnrollOttParams() beforehand.

type EnrollOttURL

type EnrollOttURL struct {
	Token strfmt.UUID
	// contains filtered or unexported fields
}

EnrollOttURL generates an URL for the enroll ott operation

func (*EnrollOttURL) Build

func (o *EnrollOttURL) Build() (*url.URL, error)

Build a url path and query string

func (*EnrollOttURL) BuildFull

func (o *EnrollOttURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*EnrollOttURL) Must

func (o *EnrollOttURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*EnrollOttURL) SetBasePath

func (o *EnrollOttURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*EnrollOttURL) String

func (o *EnrollOttURL) String() string

String returns the string representation of the path with query string

func (*EnrollOttURL) StringFull

func (o *EnrollOttURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*EnrollOttURL) WithBasePath

func (o *EnrollOttURL) WithBasePath(bp string) *EnrollOttURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type EnrollParams

type EnrollParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	Token *strfmt.UUID
}

EnrollParams contains all the bound params for the enroll operation typically these are obtained from a http.Request

swagger:parameters enroll

func NewEnrollParams

func NewEnrollParams() EnrollParams

NewEnrollParams creates a new EnrollParams object

There are no default values defined in the spec.

func (*EnrollParams) BindRequest

func (o *EnrollParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewEnrollParams() beforehand.

type EnrollURL

type EnrollURL struct {
	Token *strfmt.UUID
	// contains filtered or unexported fields
}

EnrollURL generates an URL for the enroll operation

func (*EnrollURL) Build

func (o *EnrollURL) Build() (*url.URL, error)

Build a url path and query string

func (*EnrollURL) BuildFull

func (o *EnrollURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*EnrollURL) Must

func (o *EnrollURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*EnrollURL) SetBasePath

func (o *EnrollURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*EnrollURL) String

func (o *EnrollURL) String() string

String returns the string representation of the path with query string

func (*EnrollURL) StringFull

func (o *EnrollURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*EnrollURL) WithBasePath

func (o *EnrollURL) WithBasePath(bp string) *EnrollURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ErnollUpdb

type ErnollUpdb struct {
	Context *middleware.Context
	Handler ErnollUpdbHandler
}
ErnollUpdb swagger:route POST /enroll/updb Enroll ernollUpdb

Enroll an identity via one-time-token

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

func NewErnollUpdb

func NewErnollUpdb(ctx *middleware.Context, handler ErnollUpdbHandler) *ErnollUpdb

NewErnollUpdb creates a new http.Handler for the ernoll updb operation

func (*ErnollUpdb) ServeHTTP

func (o *ErnollUpdb) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ErnollUpdbHandler

type ErnollUpdbHandler interface {
	Handle(ErnollUpdbParams) middleware.Responder
}

ErnollUpdbHandler interface for that can handle valid ernoll updb params

type ErnollUpdbHandlerFunc

type ErnollUpdbHandlerFunc func(ErnollUpdbParams) middleware.Responder

ErnollUpdbHandlerFunc turns a function with the right signature into a ernoll updb handler

func (ErnollUpdbHandlerFunc) Handle

Handle executing the request and returning a response

type ErnollUpdbNotFound

type ErnollUpdbNotFound struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

ErnollUpdbNotFound The requested resource does not exist

swagger:response ernollUpdbNotFound

func NewErnollUpdbNotFound

func NewErnollUpdbNotFound() *ErnollUpdbNotFound

NewErnollUpdbNotFound creates ErnollUpdbNotFound with default headers values

func (*ErnollUpdbNotFound) SetPayload

func (o *ErnollUpdbNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the ernoll updb not found response

func (*ErnollUpdbNotFound) WithPayload

WithPayload adds the payload to the ernoll updb not found response

func (*ErnollUpdbNotFound) WriteResponse

func (o *ErnollUpdbNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ErnollUpdbOK

type ErnollUpdbOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

ErnollUpdbOK Base empty response

swagger:response ernollUpdbOK

func NewErnollUpdbOK

func NewErnollUpdbOK() *ErnollUpdbOK

NewErnollUpdbOK creates ErnollUpdbOK with default headers values

func (*ErnollUpdbOK) SetPayload

func (o *ErnollUpdbOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the ernoll updb o k response

func (*ErnollUpdbOK) WithPayload

func (o *ErnollUpdbOK) WithPayload(payload *rest_model.Empty) *ErnollUpdbOK

WithPayload adds the payload to the ernoll updb o k response

func (*ErnollUpdbOK) WriteResponse

func (o *ErnollUpdbOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ErnollUpdbParams

type ErnollUpdbParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: query
	*/
	Token strfmt.UUID
}

ErnollUpdbParams contains all the bound params for the ernoll updb operation typically these are obtained from a http.Request

swagger:parameters ernollUpdb

func NewErnollUpdbParams

func NewErnollUpdbParams() ErnollUpdbParams

NewErnollUpdbParams creates a new ErnollUpdbParams object

There are no default values defined in the spec.

func (*ErnollUpdbParams) BindRequest

func (o *ErnollUpdbParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewErnollUpdbParams() beforehand.

type ErnollUpdbURL

type ErnollUpdbURL struct {
	Token strfmt.UUID
	// contains filtered or unexported fields
}

ErnollUpdbURL generates an URL for the ernoll updb operation

func (*ErnollUpdbURL) Build

func (o *ErnollUpdbURL) Build() (*url.URL, error)

Build a url path and query string

func (*ErnollUpdbURL) BuildFull

func (o *ErnollUpdbURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ErnollUpdbURL) Must

func (o *ErnollUpdbURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ErnollUpdbURL) SetBasePath

func (o *ErnollUpdbURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ErnollUpdbURL) String

func (o *ErnollUpdbURL) String() string

String returns the string representation of the path with query string

func (*ErnollUpdbURL) StringFull

func (o *ErnollUpdbURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ErnollUpdbURL) WithBasePath

func (o *ErnollUpdbURL) WithBasePath(bp string) *ErnollUpdbURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ExtendRouterEnrollment

type ExtendRouterEnrollment struct {
	Context *middleware.Context
	Handler ExtendRouterEnrollmentHandler
}
ExtendRouterEnrollment swagger:route POST /enroll/extend/router Enroll Extend Enrollment extendRouterEnrollment

Extend 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 NewExtendRouterEnrollment

func NewExtendRouterEnrollment(ctx *middleware.Context, handler ExtendRouterEnrollmentHandler) *ExtendRouterEnrollment

NewExtendRouterEnrollment creates a new http.Handler for the extend router enrollment operation

func (*ExtendRouterEnrollment) ServeHTTP

func (o *ExtendRouterEnrollment) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ExtendRouterEnrollmentHandler

type ExtendRouterEnrollmentHandler interface {
	Handle(ExtendRouterEnrollmentParams) middleware.Responder
}

ExtendRouterEnrollmentHandler interface for that can handle valid extend router enrollment params

type ExtendRouterEnrollmentHandlerFunc

type ExtendRouterEnrollmentHandlerFunc func(ExtendRouterEnrollmentParams) middleware.Responder

ExtendRouterEnrollmentHandlerFunc turns a function with the right signature into a extend router enrollment handler

func (ExtendRouterEnrollmentHandlerFunc) Handle

Handle executing the request and returning a response

type ExtendRouterEnrollmentOK

type ExtendRouterEnrollmentOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.EnrollmentCertsEnvelope `json:"body,omitempty"`
}

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

swagger:response extendRouterEnrollmentOK

func NewExtendRouterEnrollmentOK

func NewExtendRouterEnrollmentOK() *ExtendRouterEnrollmentOK

NewExtendRouterEnrollmentOK creates ExtendRouterEnrollmentOK with default headers values

func (*ExtendRouterEnrollmentOK) SetPayload

SetPayload sets the payload to the extend router enrollment o k response

func (*ExtendRouterEnrollmentOK) WithPayload

WithPayload adds the payload to the extend router enrollment o k response

func (*ExtendRouterEnrollmentOK) WriteResponse

func (o *ExtendRouterEnrollmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ExtendRouterEnrollmentParams

type ExtendRouterEnrollmentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	RouterExtendEnrollmentRequest *rest_model.RouterExtendEnrollmentRequest
}

ExtendRouterEnrollmentParams contains all the bound params for the extend router enrollment operation typically these are obtained from a http.Request

swagger:parameters extendRouterEnrollment

func NewExtendRouterEnrollmentParams

func NewExtendRouterEnrollmentParams() ExtendRouterEnrollmentParams

NewExtendRouterEnrollmentParams creates a new ExtendRouterEnrollmentParams object

There are no default values defined in the spec.

func (*ExtendRouterEnrollmentParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewExtendRouterEnrollmentParams() beforehand.

type ExtendRouterEnrollmentURL

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

ExtendRouterEnrollmentURL generates an URL for the extend router enrollment operation

func (*ExtendRouterEnrollmentURL) Build

func (o *ExtendRouterEnrollmentURL) Build() (*url.URL, error)

Build a url path and query string

func (*ExtendRouterEnrollmentURL) BuildFull

func (o *ExtendRouterEnrollmentURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ExtendRouterEnrollmentURL) Must

func (o *ExtendRouterEnrollmentURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ExtendRouterEnrollmentURL) SetBasePath

func (o *ExtendRouterEnrollmentURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ExtendRouterEnrollmentURL) String

func (o *ExtendRouterEnrollmentURL) String() string

String returns the string representation of the path with query string

func (*ExtendRouterEnrollmentURL) StringFull

func (o *ExtendRouterEnrollmentURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ExtendRouterEnrollmentURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ExtendRouterEnrollmentUnauthorized

type ExtendRouterEnrollmentUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response extendRouterEnrollmentUnauthorized

func NewExtendRouterEnrollmentUnauthorized

func NewExtendRouterEnrollmentUnauthorized() *ExtendRouterEnrollmentUnauthorized

NewExtendRouterEnrollmentUnauthorized creates ExtendRouterEnrollmentUnauthorized with default headers values

func (*ExtendRouterEnrollmentUnauthorized) SetPayload

SetPayload sets the payload to the extend router enrollment unauthorized response

func (*ExtendRouterEnrollmentUnauthorized) WithPayload

WithPayload adds the payload to the extend router enrollment unauthorized response

func (*ExtendRouterEnrollmentUnauthorized) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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