Documentation ¶
Index ¶
- Constants
- type Enroll
- type EnrollCa
- type EnrollCaHandler
- type EnrollCaHandlerFunc
- type EnrollCaNotFound
- type EnrollCaOK
- type EnrollCaParams
- type EnrollCaURL
- func (o *EnrollCaURL) Build() (*url.URL, error)
- func (o *EnrollCaURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *EnrollCaURL) Must(u *url.URL, err error) *url.URL
- func (o *EnrollCaURL) SetBasePath(bp string)
- func (o *EnrollCaURL) String() string
- func (o *EnrollCaURL) StringFull(scheme, host string) string
- func (o *EnrollCaURL) WithBasePath(bp string) *EnrollCaURL
- type EnrollErOtt
- type EnrollErOttHandler
- type EnrollErOttHandlerFunc
- type EnrollErOttOK
- type EnrollErOttParams
- type EnrollErOttURL
- func (o *EnrollErOttURL) Build() (*url.URL, error)
- func (o *EnrollErOttURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *EnrollErOttURL) Must(u *url.URL, err error) *url.URL
- func (o *EnrollErOttURL) SetBasePath(bp string)
- func (o *EnrollErOttURL) String() string
- func (o *EnrollErOttURL) StringFull(scheme, host string) string
- func (o *EnrollErOttURL) WithBasePath(bp string) *EnrollErOttURL
- type EnrollHandler
- type EnrollHandlerFunc
- type EnrollNotFound
- type EnrollOK
- type EnrollOtt
- type EnrollOttCa
- type EnrollOttCaHandler
- type EnrollOttCaHandlerFunc
- type EnrollOttCaOK
- type EnrollOttCaParams
- type EnrollOttCaURL
- func (o *EnrollOttCaURL) Build() (*url.URL, error)
- func (o *EnrollOttCaURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *EnrollOttCaURL) Must(u *url.URL, err error) *url.URL
- func (o *EnrollOttCaURL) SetBasePath(bp string)
- func (o *EnrollOttCaURL) String() string
- func (o *EnrollOttCaURL) StringFull(scheme, host string) string
- func (o *EnrollOttCaURL) WithBasePath(bp string) *EnrollOttCaURL
- type EnrollOttHandler
- type EnrollOttHandlerFunc
- type EnrollOttNotFound
- type EnrollOttOK
- type EnrollOttParams
- type EnrollOttURL
- func (o *EnrollOttURL) Build() (*url.URL, error)
- func (o *EnrollOttURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *EnrollOttURL) Must(u *url.URL, err error) *url.URL
- func (o *EnrollOttURL) SetBasePath(bp string)
- func (o *EnrollOttURL) String() string
- func (o *EnrollOttURL) StringFull(scheme, host string) string
- func (o *EnrollOttURL) WithBasePath(bp string) *EnrollOttURL
- type EnrollParams
- type EnrollURL
- func (o *EnrollURL) Build() (*url.URL, error)
- func (o *EnrollURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *EnrollURL) Must(u *url.URL, err error) *url.URL
- func (o *EnrollURL) SetBasePath(bp string)
- func (o *EnrollURL) String() string
- func (o *EnrollURL) StringFull(scheme, host string) string
- func (o *EnrollURL) WithBasePath(bp string) *EnrollURL
- type ErnollUpdb
- type ErnollUpdbHandler
- type ErnollUpdbHandlerFunc
- type ErnollUpdbNotFound
- type ErnollUpdbOK
- type ErnollUpdbParams
- type ErnollUpdbURL
- func (o *ErnollUpdbURL) Build() (*url.URL, error)
- func (o *ErnollUpdbURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ErnollUpdbURL) Must(u *url.URL, err error) *url.URL
- func (o *ErnollUpdbURL) SetBasePath(bp string)
- func (o *ErnollUpdbURL) String() string
- func (o *ErnollUpdbURL) StringFull(scheme, host string) string
- func (o *ErnollUpdbURL) WithBasePath(bp string) *ErnollUpdbURL
Constants ¶
const EnrollCaNotFoundCode int = 404
EnrollCaNotFoundCode is the HTTP code returned for type EnrollCaNotFound
const EnrollCaOKCode int = 200
EnrollCaOKCode is the HTTP code returned for type EnrollCaOK
const EnrollErOttOKCode int = 200
EnrollErOttOKCode is the HTTP code returned for type EnrollErOttOK
const EnrollNotFoundCode int = 404
EnrollNotFoundCode is the HTTP code returned for type EnrollNotFound
const EnrollOKCode int = 200
EnrollOKCode is the HTTP code returned for type EnrollOK
const EnrollOttCaOKCode int = 200
EnrollOttCaOKCode is the HTTP code returned for type EnrollOttCaOK
const EnrollOttNotFoundCode int = 404
EnrollOttNotFoundCode is the HTTP code returned for type EnrollOttNotFound
const EnrollOttOKCode int = 200
EnrollOttOKCode is the HTTP code returned for type EnrollOttOK
const ErnollUpdbNotFoundCode int = 404
ErnollUpdbNotFoundCode is the HTTP code returned for type ErnollUpdbNotFound
const ErnollUpdbOKCode int = 200
ErnollUpdbOKCode is the HTTP code returned for type ErnollUpdbOK
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
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
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 ¶
func (fn EnrollCaHandlerFunc) Handle(params EnrollCaParams) middleware.Responder
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 ¶
func (o *EnrollCaNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollCaNotFound
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 ¶
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 no default values defined in 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) 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 ¶
func (fn EnrollErOttHandlerFunc) Handle(params EnrollErOttParams) middleware.Responder
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 ¶
func (o *EnrollErOttOK) WithPayload(payload *rest_model.EnrollmentCertsEnvelope) *EnrollErOttOK
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 no default values defined in 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 ¶
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 ¶
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 ¶
func (fn EnrollHandlerFunc) Handle(params EnrollParams) middleware.Responder
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
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 ¶
func (fn EnrollOttCaHandlerFunc) Handle(params EnrollOttCaParams) middleware.Responder
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 no default values defined in 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 ¶
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 ¶
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 ¶
func (fn EnrollOttHandlerFunc) Handle(params EnrollOttParams) middleware.Responder
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 ¶
func (o *EnrollOttNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *EnrollOttNotFound
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 no default values defined in 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 ¶
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 ¶
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 no default values defined in 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 ¶
EnrollURL generates an URL for the enroll operation
func (*EnrollURL) SetBasePath ¶
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) StringFull ¶
StringFull returns the string representation of a complete url
func (*EnrollURL) 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 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 ¶
func (fn ErnollUpdbHandlerFunc) Handle(params ErnollUpdbParams) middleware.Responder
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 ¶
func (o *ErnollUpdbNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *ErnollUpdbNotFound
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 no default values defined in 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 ¶
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 ¶
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
Source Files ¶
- enroll.go
- enroll_ca.go
- enroll_ca_parameters.go
- enroll_ca_responses.go
- enroll_ca_urlbuilder.go
- enroll_er_ott.go
- enroll_er_ott_parameters.go
- enroll_er_ott_responses.go
- enroll_er_ott_urlbuilder.go
- enroll_ott.go
- enroll_ott_ca.go
- enroll_ott_ca_parameters.go
- enroll_ott_ca_responses.go
- enroll_ott_ca_urlbuilder.go
- enroll_ott_parameters.go
- enroll_ott_responses.go
- enroll_ott_urlbuilder.go
- enroll_parameters.go
- enroll_responses.go
- enroll_urlbuilder.go
- ernoll_updb.go
- ernoll_updb_parameters.go
- ernoll_updb_responses.go
- ernoll_updb_urlbuilder.go