Documentation ¶
Index ¶
- Constants
- type CreateCa
- type CreateCaBadRequest
- type CreateCaCreated
- type CreateCaHandler
- type CreateCaHandlerFunc
- type CreateCaParams
- type CreateCaURL
- func (o *CreateCaURL) Build() (*url.URL, error)
- func (o *CreateCaURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateCaURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateCaURL) SetBasePath(bp string)
- func (o *CreateCaURL) String() string
- func (o *CreateCaURL) StringFull(scheme, host string) string
- func (o *CreateCaURL) WithBasePath(bp string) *CreateCaURL
- type CreateCaUnauthorized
- type DeleteCa
- type DeleteCaBadRequest
- type DeleteCaHandler
- type DeleteCaHandlerFunc
- type DeleteCaOK
- type DeleteCaParams
- type DeleteCaURL
- func (o *DeleteCaURL) Build() (*url.URL, error)
- func (o *DeleteCaURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteCaURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteCaURL) SetBasePath(bp string)
- func (o *DeleteCaURL) String() string
- func (o *DeleteCaURL) StringFull(scheme, host string) string
- func (o *DeleteCaURL) WithBasePath(bp string) *DeleteCaURL
- type DeleteCaUnauthorized
- type DetailCa
- type DetailCaHandler
- type DetailCaHandlerFunc
- type DetailCaNotFound
- type DetailCaOK
- type DetailCaParams
- type DetailCaURL
- func (o *DetailCaURL) Build() (*url.URL, error)
- func (o *DetailCaURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DetailCaURL) Must(u *url.URL, err error) *url.URL
- func (o *DetailCaURL) SetBasePath(bp string)
- func (o *DetailCaURL) String() string
- func (o *DetailCaURL) StringFull(scheme, host string) string
- func (o *DetailCaURL) WithBasePath(bp string) *DetailCaURL
- type DetailCaUnauthorized
- type GetCaJwt
- type GetCaJwtHandler
- type GetCaJwtHandlerFunc
- type GetCaJwtNotFound
- type GetCaJwtOK
- type GetCaJwtParams
- type GetCaJwtURL
- func (o *GetCaJwtURL) Build() (*url.URL, error)
- func (o *GetCaJwtURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetCaJwtURL) Must(u *url.URL, err error) *url.URL
- func (o *GetCaJwtURL) SetBasePath(bp string)
- func (o *GetCaJwtURL) String() string
- func (o *GetCaJwtURL) StringFull(scheme, host string) string
- func (o *GetCaJwtURL) WithBasePath(bp string) *GetCaJwtURL
- type GetCaJwtUnauthorized
- type ListCas
- type ListCasHandler
- type ListCasHandlerFunc
- type ListCasOK
- type ListCasParams
- type ListCasURL
- func (o *ListCasURL) Build() (*url.URL, error)
- func (o *ListCasURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListCasURL) Must(u *url.URL, err error) *url.URL
- func (o *ListCasURL) SetBasePath(bp string)
- func (o *ListCasURL) String() string
- func (o *ListCasURL) StringFull(scheme, host string) string
- func (o *ListCasURL) WithBasePath(bp string) *ListCasURL
- type PatchCa
- type PatchCaBadRequest
- type PatchCaHandler
- type PatchCaHandlerFunc
- type PatchCaNotFound
- type PatchCaOK
- type PatchCaParams
- type PatchCaURL
- func (o *PatchCaURL) Build() (*url.URL, error)
- func (o *PatchCaURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PatchCaURL) Must(u *url.URL, err error) *url.URL
- func (o *PatchCaURL) SetBasePath(bp string)
- func (o *PatchCaURL) String() string
- func (o *PatchCaURL) StringFull(scheme, host string) string
- func (o *PatchCaURL) WithBasePath(bp string) *PatchCaURL
- type PatchCaUnauthorized
- type UpdateCa
- type UpdateCaBadRequest
- type UpdateCaHandler
- type UpdateCaHandlerFunc
- type UpdateCaNotFound
- type UpdateCaOK
- type UpdateCaParams
- type UpdateCaURL
- func (o *UpdateCaURL) Build() (*url.URL, error)
- func (o *UpdateCaURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateCaURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateCaURL) SetBasePath(bp string)
- func (o *UpdateCaURL) String() string
- func (o *UpdateCaURL) StringFull(scheme, host string) string
- func (o *UpdateCaURL) WithBasePath(bp string) *UpdateCaURL
- type UpdateCaUnauthorized
- type VerifyCa
- type VerifyCaBadRequest
- type VerifyCaHandler
- type VerifyCaHandlerFunc
- type VerifyCaNotFound
- type VerifyCaOK
- type VerifyCaParams
- type VerifyCaURL
- func (o *VerifyCaURL) Build() (*url.URL, error)
- func (o *VerifyCaURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *VerifyCaURL) Must(u *url.URL, err error) *url.URL
- func (o *VerifyCaURL) SetBasePath(bp string)
- func (o *VerifyCaURL) String() string
- func (o *VerifyCaURL) StringFull(scheme, host string) string
- func (o *VerifyCaURL) WithBasePath(bp string) *VerifyCaURL
- type VerifyCaUnauthorized
Constants ¶
const CreateCaBadRequestCode int = 400
CreateCaBadRequestCode is the HTTP code returned for type CreateCaBadRequest
const CreateCaCreatedCode int = 201
CreateCaCreatedCode is the HTTP code returned for type CreateCaCreated
CreateCaUnauthorizedCode is the HTTP code returned for type CreateCaUnauthorized
const DeleteCaBadRequestCode int = 400
DeleteCaBadRequestCode is the HTTP code returned for type DeleteCaBadRequest
const DeleteCaOKCode int = 200
DeleteCaOKCode is the HTTP code returned for type DeleteCaOK
DeleteCaUnauthorizedCode is the HTTP code returned for type DeleteCaUnauthorized
const DetailCaNotFoundCode int = 404
DetailCaNotFoundCode is the HTTP code returned for type DetailCaNotFound
const DetailCaOKCode int = 200
DetailCaOKCode is the HTTP code returned for type DetailCaOK
DetailCaUnauthorizedCode is the HTTP code returned for type DetailCaUnauthorized
const GetCaJwtNotFoundCode int = 404
GetCaJwtNotFoundCode is the HTTP code returned for type GetCaJwtNotFound
const GetCaJwtOKCode int = 200
GetCaJwtOKCode is the HTTP code returned for type GetCaJwtOK
GetCaJwtUnauthorizedCode is the HTTP code returned for type GetCaJwtUnauthorized
const ListCasOKCode int = 200
ListCasOKCode is the HTTP code returned for type ListCasOK
const PatchCaBadRequestCode int = 400
PatchCaBadRequestCode is the HTTP code returned for type PatchCaBadRequest
const PatchCaNotFoundCode int = 404
PatchCaNotFoundCode is the HTTP code returned for type PatchCaNotFound
const PatchCaOKCode int = 200
PatchCaOKCode is the HTTP code returned for type PatchCaOK
PatchCaUnauthorizedCode is the HTTP code returned for type PatchCaUnauthorized
const UpdateCaBadRequestCode int = 400
UpdateCaBadRequestCode is the HTTP code returned for type UpdateCaBadRequest
const UpdateCaNotFoundCode int = 404
UpdateCaNotFoundCode is the HTTP code returned for type UpdateCaNotFound
const UpdateCaOKCode int = 200
UpdateCaOKCode is the HTTP code returned for type UpdateCaOK
UpdateCaUnauthorizedCode is the HTTP code returned for type UpdateCaUnauthorized
const VerifyCaBadRequestCode int = 400
VerifyCaBadRequestCode is the HTTP code returned for type VerifyCaBadRequest
const VerifyCaNotFoundCode int = 404
VerifyCaNotFoundCode is the HTTP code returned for type VerifyCaNotFound
const VerifyCaOKCode int = 200
VerifyCaOKCode is the HTTP code returned for type VerifyCaOK
VerifyCaUnauthorizedCode is the HTTP code returned for type VerifyCaUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCa ¶
type CreateCa struct { Context *middleware.Context Handler CreateCaHandler }
CreateCa swagger:route POST /cas Certificate Authority createCa
Creates a CA ¶
Creates a CA in an unverified state. Requires admin access.
func NewCreateCa ¶
func NewCreateCa(ctx *middleware.Context, handler CreateCaHandler) *CreateCa
NewCreateCa creates a new http.Handler for the create ca operation
type CreateCaBadRequest ¶
type CreateCaBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
CreateCaBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response createCaBadRequest
func NewCreateCaBadRequest ¶
func NewCreateCaBadRequest() *CreateCaBadRequest
NewCreateCaBadRequest creates CreateCaBadRequest with default headers values
func (*CreateCaBadRequest) SetPayload ¶
func (o *CreateCaBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create ca bad request response
func (*CreateCaBadRequest) WithPayload ¶
func (o *CreateCaBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateCaBadRequest
WithPayload adds the payload to the create ca bad request response
func (*CreateCaBadRequest) WriteResponse ¶
func (o *CreateCaBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateCaCreated ¶ added in v0.17.52
type CreateCaCreated struct { /* In: Body */ Payload *rest_model.CreateEnvelope `json:"body,omitempty"` }
CreateCaCreated The create request was successful and the resource has been added at the following location
swagger:response createCaCreated
func NewCreateCaCreated ¶ added in v0.17.52
func NewCreateCaCreated() *CreateCaCreated
NewCreateCaCreated creates CreateCaCreated with default headers values
func (*CreateCaCreated) SetPayload ¶ added in v0.17.52
func (o *CreateCaCreated) SetPayload(payload *rest_model.CreateEnvelope)
SetPayload sets the payload to the create ca created response
func (*CreateCaCreated) WithPayload ¶ added in v0.17.52
func (o *CreateCaCreated) WithPayload(payload *rest_model.CreateEnvelope) *CreateCaCreated
WithPayload adds the payload to the create ca created response
func (*CreateCaCreated) WriteResponse ¶ added in v0.17.52
func (o *CreateCaCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateCaHandler ¶
type CreateCaHandler interface {
Handle(CreateCaParams, interface{}) middleware.Responder
}
CreateCaHandler interface for that can handle valid create ca params
type CreateCaHandlerFunc ¶
type CreateCaHandlerFunc func(CreateCaParams, interface{}) middleware.Responder
CreateCaHandlerFunc turns a function with the right signature into a create ca handler
func (CreateCaHandlerFunc) Handle ¶
func (fn CreateCaHandlerFunc) Handle(params CreateCaParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateCaParams ¶
type CreateCaParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A CA to create Required: true In: body */ Ca *rest_model.CaCreate }
CreateCaParams contains all the bound params for the create ca operation typically these are obtained from a http.Request
swagger:parameters createCa
func NewCreateCaParams ¶
func NewCreateCaParams() CreateCaParams
NewCreateCaParams creates a new CreateCaParams object no default values defined in spec.
func (*CreateCaParams) BindRequest ¶
func (o *CreateCaParams) 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 NewCreateCaParams() beforehand.
type CreateCaURL ¶
type CreateCaURL struct {
// contains filtered or unexported fields
}
CreateCaURL generates an URL for the create ca operation
func (*CreateCaURL) Build ¶
func (o *CreateCaURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateCaURL) BuildFull ¶
func (o *CreateCaURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateCaURL) SetBasePath ¶
func (o *CreateCaURL) 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 (*CreateCaURL) String ¶
func (o *CreateCaURL) String() string
String returns the string representation of the path with query string
func (*CreateCaURL) StringFull ¶
func (o *CreateCaURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateCaURL) WithBasePath ¶
func (o *CreateCaURL) WithBasePath(bp string) *CreateCaURL
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 CreateCaUnauthorized ¶
type CreateCaUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
CreateCaUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response createCaUnauthorized
func NewCreateCaUnauthorized ¶
func NewCreateCaUnauthorized() *CreateCaUnauthorized
NewCreateCaUnauthorized creates CreateCaUnauthorized with default headers values
func (*CreateCaUnauthorized) SetPayload ¶
func (o *CreateCaUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create ca unauthorized response
func (*CreateCaUnauthorized) WithPayload ¶
func (o *CreateCaUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateCaUnauthorized
WithPayload adds the payload to the create ca unauthorized response
func (*CreateCaUnauthorized) WriteResponse ¶
func (o *CreateCaUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteCa ¶
type DeleteCa struct { Context *middleware.Context Handler DeleteCaHandler }
DeleteCa swagger:route DELETE /cas/{id} Certificate Authority deleteCa
Delete a CA ¶
Delete a CA by id. Deleting a CA will delete its associated certificate authenticators. This can make it impossible for identities to authenticate if they no longer have any valid authenticators. Requires admin access.
func NewDeleteCa ¶
func NewDeleteCa(ctx *middleware.Context, handler DeleteCaHandler) *DeleteCa
NewDeleteCa creates a new http.Handler for the delete ca operation
type DeleteCaBadRequest ¶
type DeleteCaBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DeleteCaBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response deleteCaBadRequest
func NewDeleteCaBadRequest ¶
func NewDeleteCaBadRequest() *DeleteCaBadRequest
NewDeleteCaBadRequest creates DeleteCaBadRequest with default headers values
func (*DeleteCaBadRequest) SetPayload ¶
func (o *DeleteCaBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete ca bad request response
func (*DeleteCaBadRequest) WithPayload ¶
func (o *DeleteCaBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteCaBadRequest
WithPayload adds the payload to the delete ca bad request response
func (*DeleteCaBadRequest) WriteResponse ¶
func (o *DeleteCaBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteCaHandler ¶
type DeleteCaHandler interface {
Handle(DeleteCaParams, interface{}) middleware.Responder
}
DeleteCaHandler interface for that can handle valid delete ca params
type DeleteCaHandlerFunc ¶
type DeleteCaHandlerFunc func(DeleteCaParams, interface{}) middleware.Responder
DeleteCaHandlerFunc turns a function with the right signature into a delete ca handler
func (DeleteCaHandlerFunc) Handle ¶
func (fn DeleteCaHandlerFunc) Handle(params DeleteCaParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteCaOK ¶
type DeleteCaOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
DeleteCaOK The delete request was successful and the resource has been removed
swagger:response deleteCaOK
func NewDeleteCaOK ¶
func NewDeleteCaOK() *DeleteCaOK
NewDeleteCaOK creates DeleteCaOK with default headers values
func (*DeleteCaOK) SetPayload ¶
func (o *DeleteCaOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the delete ca o k response
func (*DeleteCaOK) WithPayload ¶
func (o *DeleteCaOK) WithPayload(payload *rest_model.Empty) *DeleteCaOK
WithPayload adds the payload to the delete ca o k response
func (*DeleteCaOK) WriteResponse ¶
func (o *DeleteCaOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteCaParams ¶
type DeleteCaParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DeleteCaParams contains all the bound params for the delete ca operation typically these are obtained from a http.Request
swagger:parameters deleteCa
func NewDeleteCaParams ¶
func NewDeleteCaParams() DeleteCaParams
NewDeleteCaParams creates a new DeleteCaParams object no default values defined in spec.
func (*DeleteCaParams) BindRequest ¶
func (o *DeleteCaParams) 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 NewDeleteCaParams() beforehand.
type DeleteCaURL ¶
type DeleteCaURL struct { ID string // contains filtered or unexported fields }
DeleteCaURL generates an URL for the delete ca operation
func (*DeleteCaURL) Build ¶
func (o *DeleteCaURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteCaURL) BuildFull ¶
func (o *DeleteCaURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteCaURL) SetBasePath ¶
func (o *DeleteCaURL) 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 (*DeleteCaURL) String ¶
func (o *DeleteCaURL) String() string
String returns the string representation of the path with query string
func (*DeleteCaURL) StringFull ¶
func (o *DeleteCaURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteCaURL) WithBasePath ¶
func (o *DeleteCaURL) WithBasePath(bp string) *DeleteCaURL
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 DeleteCaUnauthorized ¶
type DeleteCaUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DeleteCaUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response deleteCaUnauthorized
func NewDeleteCaUnauthorized ¶
func NewDeleteCaUnauthorized() *DeleteCaUnauthorized
NewDeleteCaUnauthorized creates DeleteCaUnauthorized with default headers values
func (*DeleteCaUnauthorized) SetPayload ¶
func (o *DeleteCaUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete ca unauthorized response
func (*DeleteCaUnauthorized) WithPayload ¶
func (o *DeleteCaUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteCaUnauthorized
WithPayload adds the payload to the delete ca unauthorized response
func (*DeleteCaUnauthorized) WriteResponse ¶
func (o *DeleteCaUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailCa ¶
type DetailCa struct { Context *middleware.Context Handler DetailCaHandler }
DetailCa swagger:route GET /cas/{id} Certificate Authority detailCa
Retrieves a single CA ¶
Retrieves a single CA by id. Requires admin access.
func NewDetailCa ¶
func NewDetailCa(ctx *middleware.Context, handler DetailCaHandler) *DetailCa
NewDetailCa creates a new http.Handler for the detail ca operation
type DetailCaHandler ¶
type DetailCaHandler interface {
Handle(DetailCaParams, interface{}) middleware.Responder
}
DetailCaHandler interface for that can handle valid detail ca params
type DetailCaHandlerFunc ¶
type DetailCaHandlerFunc func(DetailCaParams, interface{}) middleware.Responder
DetailCaHandlerFunc turns a function with the right signature into a detail ca handler
func (DetailCaHandlerFunc) Handle ¶
func (fn DetailCaHandlerFunc) Handle(params DetailCaParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DetailCaNotFound ¶
type DetailCaNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DetailCaNotFound The requested resource does not exist
swagger:response detailCaNotFound
func NewDetailCaNotFound ¶
func NewDetailCaNotFound() *DetailCaNotFound
NewDetailCaNotFound creates DetailCaNotFound with default headers values
func (*DetailCaNotFound) SetPayload ¶
func (o *DetailCaNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail ca not found response
func (*DetailCaNotFound) WithPayload ¶
func (o *DetailCaNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailCaNotFound
WithPayload adds the payload to the detail ca not found response
func (*DetailCaNotFound) WriteResponse ¶
func (o *DetailCaNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailCaOK ¶
type DetailCaOK struct { /* In: Body */ Payload *rest_model.DetailCaEnvelope `json:"body,omitempty"` }
DetailCaOK A singular Certificate Authority (CA) resource
swagger:response detailCaOK
func NewDetailCaOK ¶
func NewDetailCaOK() *DetailCaOK
NewDetailCaOK creates DetailCaOK with default headers values
func (*DetailCaOK) SetPayload ¶
func (o *DetailCaOK) SetPayload(payload *rest_model.DetailCaEnvelope)
SetPayload sets the payload to the detail ca o k response
func (*DetailCaOK) WithPayload ¶
func (o *DetailCaOK) WithPayload(payload *rest_model.DetailCaEnvelope) *DetailCaOK
WithPayload adds the payload to the detail ca o k response
func (*DetailCaOK) WriteResponse ¶
func (o *DetailCaOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailCaParams ¶
type DetailCaParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DetailCaParams contains all the bound params for the detail ca operation typically these are obtained from a http.Request
swagger:parameters detailCa
func NewDetailCaParams ¶
func NewDetailCaParams() DetailCaParams
NewDetailCaParams creates a new DetailCaParams object no default values defined in spec.
func (*DetailCaParams) BindRequest ¶
func (o *DetailCaParams) 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 NewDetailCaParams() beforehand.
type DetailCaURL ¶
type DetailCaURL struct { ID string // contains filtered or unexported fields }
DetailCaURL generates an URL for the detail ca operation
func (*DetailCaURL) Build ¶
func (o *DetailCaURL) Build() (*url.URL, error)
Build a url path and query string
func (*DetailCaURL) BuildFull ¶
func (o *DetailCaURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DetailCaURL) SetBasePath ¶
func (o *DetailCaURL) 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 (*DetailCaURL) String ¶
func (o *DetailCaURL) String() string
String returns the string representation of the path with query string
func (*DetailCaURL) StringFull ¶
func (o *DetailCaURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DetailCaURL) WithBasePath ¶
func (o *DetailCaURL) WithBasePath(bp string) *DetailCaURL
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 DetailCaUnauthorized ¶
type DetailCaUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DetailCaUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response detailCaUnauthorized
func NewDetailCaUnauthorized ¶
func NewDetailCaUnauthorized() *DetailCaUnauthorized
NewDetailCaUnauthorized creates DetailCaUnauthorized with default headers values
func (*DetailCaUnauthorized) SetPayload ¶
func (o *DetailCaUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail ca unauthorized response
func (*DetailCaUnauthorized) WithPayload ¶
func (o *DetailCaUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailCaUnauthorized
WithPayload adds the payload to the detail ca unauthorized response
func (*DetailCaUnauthorized) WriteResponse ¶
func (o *DetailCaUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCaJwt ¶
type GetCaJwt struct { Context *middleware.Context Handler GetCaJwtHandler }
GetCaJwt swagger:route GET /cas/{id}/jwt Certificate Authority getCaJwt
Retrieve the enrollment JWT for a CA ¶
For CA auto enrollment, the enrollment JWT is static and provided on each CA resource. This endpoint provides the jwt as a text response.
func NewGetCaJwt ¶
func NewGetCaJwt(ctx *middleware.Context, handler GetCaJwtHandler) *GetCaJwt
NewGetCaJwt creates a new http.Handler for the get ca jwt operation
type GetCaJwtHandler ¶
type GetCaJwtHandler interface {
Handle(GetCaJwtParams, interface{}) middleware.Responder
}
GetCaJwtHandler interface for that can handle valid get ca jwt params
type GetCaJwtHandlerFunc ¶
type GetCaJwtHandlerFunc func(GetCaJwtParams, interface{}) middleware.Responder
GetCaJwtHandlerFunc turns a function with the right signature into a get ca jwt handler
func (GetCaJwtHandlerFunc) Handle ¶
func (fn GetCaJwtHandlerFunc) Handle(params GetCaJwtParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetCaJwtNotFound ¶
type GetCaJwtNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
GetCaJwtNotFound The requested resource does not exist
swagger:response getCaJwtNotFound
func NewGetCaJwtNotFound ¶
func NewGetCaJwtNotFound() *GetCaJwtNotFound
NewGetCaJwtNotFound creates GetCaJwtNotFound with default headers values
func (*GetCaJwtNotFound) SetPayload ¶
func (o *GetCaJwtNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the get ca jwt not found response
func (*GetCaJwtNotFound) WithPayload ¶
func (o *GetCaJwtNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *GetCaJwtNotFound
WithPayload adds the payload to the get ca jwt not found response
func (*GetCaJwtNotFound) WriteResponse ¶
func (o *GetCaJwtNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCaJwtOK ¶
type GetCaJwtOK struct { /* In: Body */ Payload string `json:"body,omitempty"` }
GetCaJwtOK The result is the JWT text to validate the CA
swagger:response getCaJwtOK
func NewGetCaJwtOK ¶
func NewGetCaJwtOK() *GetCaJwtOK
NewGetCaJwtOK creates GetCaJwtOK with default headers values
func (*GetCaJwtOK) SetPayload ¶
func (o *GetCaJwtOK) SetPayload(payload string)
SetPayload sets the payload to the get ca jwt o k response
func (*GetCaJwtOK) WithPayload ¶
func (o *GetCaJwtOK) WithPayload(payload string) *GetCaJwtOK
WithPayload adds the payload to the get ca jwt o k response
func (*GetCaJwtOK) WriteResponse ¶
func (o *GetCaJwtOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCaJwtParams ¶
type GetCaJwtParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
GetCaJwtParams contains all the bound params for the get ca jwt operation typically these are obtained from a http.Request
swagger:parameters getCaJwt
func NewGetCaJwtParams ¶
func NewGetCaJwtParams() GetCaJwtParams
NewGetCaJwtParams creates a new GetCaJwtParams object no default values defined in spec.
func (*GetCaJwtParams) BindRequest ¶
func (o *GetCaJwtParams) 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 NewGetCaJwtParams() beforehand.
type GetCaJwtURL ¶
type GetCaJwtURL struct { ID string // contains filtered or unexported fields }
GetCaJwtURL generates an URL for the get ca jwt operation
func (*GetCaJwtURL) Build ¶
func (o *GetCaJwtURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetCaJwtURL) BuildFull ¶
func (o *GetCaJwtURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetCaJwtURL) SetBasePath ¶
func (o *GetCaJwtURL) 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 (*GetCaJwtURL) String ¶
func (o *GetCaJwtURL) String() string
String returns the string representation of the path with query string
func (*GetCaJwtURL) StringFull ¶
func (o *GetCaJwtURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetCaJwtURL) WithBasePath ¶
func (o *GetCaJwtURL) WithBasePath(bp string) *GetCaJwtURL
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 GetCaJwtUnauthorized ¶
type GetCaJwtUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
GetCaJwtUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response getCaJwtUnauthorized
func NewGetCaJwtUnauthorized ¶
func NewGetCaJwtUnauthorized() *GetCaJwtUnauthorized
NewGetCaJwtUnauthorized creates GetCaJwtUnauthorized with default headers values
func (*GetCaJwtUnauthorized) SetPayload ¶
func (o *GetCaJwtUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the get ca jwt unauthorized response
func (*GetCaJwtUnauthorized) WithPayload ¶
func (o *GetCaJwtUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *GetCaJwtUnauthorized
WithPayload adds the payload to the get ca jwt unauthorized response
func (*GetCaJwtUnauthorized) WriteResponse ¶
func (o *GetCaJwtUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListCas ¶
type ListCas struct { Context *middleware.Context Handler ListCasHandler }
ListCas swagger:route GET /cas Certificate Authority listCas
List CAs ¶
Retrieves a list of CA resources; supports filtering, sorting, and pagination. Requires admin access.
func NewListCas ¶
func NewListCas(ctx *middleware.Context, handler ListCasHandler) *ListCas
NewListCas creates a new http.Handler for the list cas operation
type ListCasHandler ¶
type ListCasHandler interface {
Handle(ListCasParams, interface{}) middleware.Responder
}
ListCasHandler interface for that can handle valid list cas params
type ListCasHandlerFunc ¶
type ListCasHandlerFunc func(ListCasParams, interface{}) middleware.Responder
ListCasHandlerFunc turns a function with the right signature into a list cas handler
func (ListCasHandlerFunc) Handle ¶
func (fn ListCasHandlerFunc) Handle(params ListCasParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ListCasOK ¶
type ListCasOK struct { /* In: Body */ Payload *rest_model.ListCasEnvelope `json:"body,omitempty"` }
ListCasOK A list of Certificate Authorities (CAs)
swagger:response listCasOK
func NewListCasOK ¶
func NewListCasOK() *ListCasOK
NewListCasOK creates ListCasOK with default headers values
func (*ListCasOK) SetPayload ¶
func (o *ListCasOK) SetPayload(payload *rest_model.ListCasEnvelope)
SetPayload sets the payload to the list cas o k response
func (*ListCasOK) WithPayload ¶
func (o *ListCasOK) WithPayload(payload *rest_model.ListCasEnvelope) *ListCasOK
WithPayload adds the payload to the list cas o k response
func (*ListCasOK) WriteResponse ¶
func (o *ListCasOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListCasParams ¶
type ListCasParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ Filter *string /* In: query */ Limit *int64 /* In: query */ Offset *int64 }
ListCasParams contains all the bound params for the list cas operation typically these are obtained from a http.Request
swagger:parameters listCas
func NewListCasParams ¶
func NewListCasParams() ListCasParams
NewListCasParams creates a new ListCasParams object no default values defined in spec.
func (*ListCasParams) BindRequest ¶
func (o *ListCasParams) 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 NewListCasParams() beforehand.
type ListCasURL ¶
type ListCasURL struct { Filter *string Limit *int64 Offset *int64 // contains filtered or unexported fields }
ListCasURL generates an URL for the list cas operation
func (*ListCasURL) Build ¶
func (o *ListCasURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListCasURL) BuildFull ¶
func (o *ListCasURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListCasURL) SetBasePath ¶
func (o *ListCasURL) 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 (*ListCasURL) String ¶
func (o *ListCasURL) String() string
String returns the string representation of the path with query string
func (*ListCasURL) StringFull ¶
func (o *ListCasURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListCasURL) WithBasePath ¶
func (o *ListCasURL) WithBasePath(bp string) *ListCasURL
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 PatchCa ¶
type PatchCa struct { Context *middleware.Context Handler PatchCaHandler }
PatchCa swagger:route PATCH /cas/{id} Certificate Authority patchCa
Update the supplied fields on a CA ¶
Update only the supplied fields on a CA by id. Requires admin access.
func NewPatchCa ¶
func NewPatchCa(ctx *middleware.Context, handler PatchCaHandler) *PatchCa
NewPatchCa creates a new http.Handler for the patch ca operation
type PatchCaBadRequest ¶
type PatchCaBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
PatchCaBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response patchCaBadRequest
func NewPatchCaBadRequest ¶
func NewPatchCaBadRequest() *PatchCaBadRequest
NewPatchCaBadRequest creates PatchCaBadRequest with default headers values
func (*PatchCaBadRequest) SetPayload ¶
func (o *PatchCaBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch ca bad request response
func (*PatchCaBadRequest) WithPayload ¶
func (o *PatchCaBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchCaBadRequest
WithPayload adds the payload to the patch ca bad request response
func (*PatchCaBadRequest) WriteResponse ¶
func (o *PatchCaBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchCaHandler ¶
type PatchCaHandler interface {
Handle(PatchCaParams, interface{}) middleware.Responder
}
PatchCaHandler interface for that can handle valid patch ca params
type PatchCaHandlerFunc ¶
type PatchCaHandlerFunc func(PatchCaParams, interface{}) middleware.Responder
PatchCaHandlerFunc turns a function with the right signature into a patch ca handler
func (PatchCaHandlerFunc) Handle ¶
func (fn PatchCaHandlerFunc) Handle(params PatchCaParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type PatchCaNotFound ¶
type PatchCaNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
PatchCaNotFound The requested resource does not exist
swagger:response patchCaNotFound
func NewPatchCaNotFound ¶
func NewPatchCaNotFound() *PatchCaNotFound
NewPatchCaNotFound creates PatchCaNotFound with default headers values
func (*PatchCaNotFound) SetPayload ¶
func (o *PatchCaNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch ca not found response
func (*PatchCaNotFound) WithPayload ¶
func (o *PatchCaNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchCaNotFound
WithPayload adds the payload to the patch ca not found response
func (*PatchCaNotFound) WriteResponse ¶
func (o *PatchCaNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchCaOK ¶
type PatchCaOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
PatchCaOK The patch request was successful and the resource has been altered
swagger:response patchCaOK
func NewPatchCaOK ¶
func NewPatchCaOK() *PatchCaOK
NewPatchCaOK creates PatchCaOK with default headers values
func (*PatchCaOK) SetPayload ¶
func (o *PatchCaOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the patch ca o k response
func (*PatchCaOK) WithPayload ¶
func (o *PatchCaOK) WithPayload(payload *rest_model.Empty) *PatchCaOK
WithPayload adds the payload to the patch ca o k response
func (*PatchCaOK) WriteResponse ¶
func (o *PatchCaOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchCaParams ¶
type PatchCaParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A CA patch object Required: true In: body */ Ca *rest_model.CaPatch /*The id of the requested resource Required: true In: path */ ID string }
PatchCaParams contains all the bound params for the patch ca operation typically these are obtained from a http.Request
swagger:parameters patchCa
func NewPatchCaParams ¶
func NewPatchCaParams() PatchCaParams
NewPatchCaParams creates a new PatchCaParams object no default values defined in spec.
func (*PatchCaParams) BindRequest ¶
func (o *PatchCaParams) 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 NewPatchCaParams() beforehand.
type PatchCaURL ¶
type PatchCaURL struct { ID string // contains filtered or unexported fields }
PatchCaURL generates an URL for the patch ca operation
func (*PatchCaURL) Build ¶
func (o *PatchCaURL) Build() (*url.URL, error)
Build a url path and query string
func (*PatchCaURL) BuildFull ¶
func (o *PatchCaURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PatchCaURL) SetBasePath ¶
func (o *PatchCaURL) 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 (*PatchCaURL) String ¶
func (o *PatchCaURL) String() string
String returns the string representation of the path with query string
func (*PatchCaURL) StringFull ¶
func (o *PatchCaURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PatchCaURL) WithBasePath ¶
func (o *PatchCaURL) WithBasePath(bp string) *PatchCaURL
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 PatchCaUnauthorized ¶
type PatchCaUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
PatchCaUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response patchCaUnauthorized
func NewPatchCaUnauthorized ¶
func NewPatchCaUnauthorized() *PatchCaUnauthorized
NewPatchCaUnauthorized creates PatchCaUnauthorized with default headers values
func (*PatchCaUnauthorized) SetPayload ¶
func (o *PatchCaUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch ca unauthorized response
func (*PatchCaUnauthorized) WithPayload ¶
func (o *PatchCaUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchCaUnauthorized
WithPayload adds the payload to the patch ca unauthorized response
func (*PatchCaUnauthorized) WriteResponse ¶
func (o *PatchCaUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateCa ¶
type UpdateCa struct { Context *middleware.Context Handler UpdateCaHandler }
UpdateCa swagger:route PUT /cas/{id} Certificate Authority updateCa
Update all fields on a CA ¶
Update all fields on a CA by id. Requires admin access.
func NewUpdateCa ¶
func NewUpdateCa(ctx *middleware.Context, handler UpdateCaHandler) *UpdateCa
NewUpdateCa creates a new http.Handler for the update ca operation
type UpdateCaBadRequest ¶
type UpdateCaBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
UpdateCaBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response updateCaBadRequest
func NewUpdateCaBadRequest ¶
func NewUpdateCaBadRequest() *UpdateCaBadRequest
NewUpdateCaBadRequest creates UpdateCaBadRequest with default headers values
func (*UpdateCaBadRequest) SetPayload ¶
func (o *UpdateCaBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the update ca bad request response
func (*UpdateCaBadRequest) WithPayload ¶
func (o *UpdateCaBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *UpdateCaBadRequest
WithPayload adds the payload to the update ca bad request response
func (*UpdateCaBadRequest) WriteResponse ¶
func (o *UpdateCaBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateCaHandler ¶
type UpdateCaHandler interface {
Handle(UpdateCaParams, interface{}) middleware.Responder
}
UpdateCaHandler interface for that can handle valid update ca params
type UpdateCaHandlerFunc ¶
type UpdateCaHandlerFunc func(UpdateCaParams, interface{}) middleware.Responder
UpdateCaHandlerFunc turns a function with the right signature into a update ca handler
func (UpdateCaHandlerFunc) Handle ¶
func (fn UpdateCaHandlerFunc) Handle(params UpdateCaParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateCaNotFound ¶
type UpdateCaNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
UpdateCaNotFound The requested resource does not exist
swagger:response updateCaNotFound
func NewUpdateCaNotFound ¶
func NewUpdateCaNotFound() *UpdateCaNotFound
NewUpdateCaNotFound creates UpdateCaNotFound with default headers values
func (*UpdateCaNotFound) SetPayload ¶
func (o *UpdateCaNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the update ca not found response
func (*UpdateCaNotFound) WithPayload ¶
func (o *UpdateCaNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *UpdateCaNotFound
WithPayload adds the payload to the update ca not found response
func (*UpdateCaNotFound) WriteResponse ¶
func (o *UpdateCaNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateCaOK ¶
type UpdateCaOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
UpdateCaOK The update request was successful and the resource has been altered
swagger:response updateCaOK
func NewUpdateCaOK ¶
func NewUpdateCaOK() *UpdateCaOK
NewUpdateCaOK creates UpdateCaOK with default headers values
func (*UpdateCaOK) SetPayload ¶
func (o *UpdateCaOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the update ca o k response
func (*UpdateCaOK) WithPayload ¶
func (o *UpdateCaOK) WithPayload(payload *rest_model.Empty) *UpdateCaOK
WithPayload adds the payload to the update ca o k response
func (*UpdateCaOK) WriteResponse ¶
func (o *UpdateCaOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateCaParams ¶
type UpdateCaParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A CA update object Required: true In: body */ Ca *rest_model.CaUpdate /*The id of the requested resource Required: true In: path */ ID string }
UpdateCaParams contains all the bound params for the update ca operation typically these are obtained from a http.Request
swagger:parameters updateCa
func NewUpdateCaParams ¶
func NewUpdateCaParams() UpdateCaParams
NewUpdateCaParams creates a new UpdateCaParams object no default values defined in spec.
func (*UpdateCaParams) BindRequest ¶
func (o *UpdateCaParams) 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 NewUpdateCaParams() beforehand.
type UpdateCaURL ¶
type UpdateCaURL struct { ID string // contains filtered or unexported fields }
UpdateCaURL generates an URL for the update ca operation
func (*UpdateCaURL) Build ¶
func (o *UpdateCaURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateCaURL) BuildFull ¶
func (o *UpdateCaURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateCaURL) SetBasePath ¶
func (o *UpdateCaURL) 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 (*UpdateCaURL) String ¶
func (o *UpdateCaURL) String() string
String returns the string representation of the path with query string
func (*UpdateCaURL) StringFull ¶
func (o *UpdateCaURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateCaURL) WithBasePath ¶
func (o *UpdateCaURL) WithBasePath(bp string) *UpdateCaURL
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 UpdateCaUnauthorized ¶
type UpdateCaUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
UpdateCaUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response updateCaUnauthorized
func NewUpdateCaUnauthorized ¶
func NewUpdateCaUnauthorized() *UpdateCaUnauthorized
NewUpdateCaUnauthorized creates UpdateCaUnauthorized with default headers values
func (*UpdateCaUnauthorized) SetPayload ¶
func (o *UpdateCaUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the update ca unauthorized response
func (*UpdateCaUnauthorized) WithPayload ¶
func (o *UpdateCaUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *UpdateCaUnauthorized
WithPayload adds the payload to the update ca unauthorized response
func (*UpdateCaUnauthorized) WriteResponse ¶
func (o *UpdateCaUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VerifyCa ¶
type VerifyCa struct { Context *middleware.Context Handler VerifyCaHandler }
VerifyCa swagger:route POST /cas/{id}/verify Certificate Authority verifyCa
Verify a CA ¶
Allows a CA to become verified by submitting a certificate in PEM format that has been signed by the target CA. The common name on the certificate must match the verificationToken property of the CA. Unverfieid CAs can not be used for enrollment/authentication. Requires admin access.
func NewVerifyCa ¶
func NewVerifyCa(ctx *middleware.Context, handler VerifyCaHandler) *VerifyCa
NewVerifyCa creates a new http.Handler for the verify ca operation
type VerifyCaBadRequest ¶
type VerifyCaBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
VerifyCaBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response verifyCaBadRequest
func NewVerifyCaBadRequest ¶
func NewVerifyCaBadRequest() *VerifyCaBadRequest
NewVerifyCaBadRequest creates VerifyCaBadRequest with default headers values
func (*VerifyCaBadRequest) SetPayload ¶
func (o *VerifyCaBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the verify ca bad request response
func (*VerifyCaBadRequest) WithPayload ¶
func (o *VerifyCaBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *VerifyCaBadRequest
WithPayload adds the payload to the verify ca bad request response
func (*VerifyCaBadRequest) WriteResponse ¶
func (o *VerifyCaBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VerifyCaHandler ¶
type VerifyCaHandler interface {
Handle(VerifyCaParams, interface{}) middleware.Responder
}
VerifyCaHandler interface for that can handle valid verify ca params
type VerifyCaHandlerFunc ¶
type VerifyCaHandlerFunc func(VerifyCaParams, interface{}) middleware.Responder
VerifyCaHandlerFunc turns a function with the right signature into a verify ca handler
func (VerifyCaHandlerFunc) Handle ¶
func (fn VerifyCaHandlerFunc) Handle(params VerifyCaParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type VerifyCaNotFound ¶
type VerifyCaNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
VerifyCaNotFound The requested resource does not exist
swagger:response verifyCaNotFound
func NewVerifyCaNotFound ¶
func NewVerifyCaNotFound() *VerifyCaNotFound
NewVerifyCaNotFound creates VerifyCaNotFound with default headers values
func (*VerifyCaNotFound) SetPayload ¶
func (o *VerifyCaNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the verify ca not found response
func (*VerifyCaNotFound) WithPayload ¶
func (o *VerifyCaNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *VerifyCaNotFound
WithPayload adds the payload to the verify ca not found response
func (*VerifyCaNotFound) WriteResponse ¶
func (o *VerifyCaNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VerifyCaOK ¶
type VerifyCaOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
VerifyCaOK Base empty response
swagger:response verifyCaOK
func NewVerifyCaOK ¶
func NewVerifyCaOK() *VerifyCaOK
NewVerifyCaOK creates VerifyCaOK with default headers values
func (*VerifyCaOK) SetPayload ¶
func (o *VerifyCaOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the verify ca o k response
func (*VerifyCaOK) WithPayload ¶
func (o *VerifyCaOK) WithPayload(payload *rest_model.Empty) *VerifyCaOK
WithPayload adds the payload to the verify ca o k response
func (*VerifyCaOK) WriteResponse ¶
func (o *VerifyCaOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VerifyCaParams ¶
type VerifyCaParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A PEM formatted certificate signed by the target CA with the common name matching the CA's validationToken Required: true In: body */ Certificate string /*The id of the requested resource Required: true In: path */ ID string }
VerifyCaParams contains all the bound params for the verify ca operation typically these are obtained from a http.Request
swagger:parameters verifyCa
func NewVerifyCaParams ¶
func NewVerifyCaParams() VerifyCaParams
NewVerifyCaParams creates a new VerifyCaParams object no default values defined in spec.
func (*VerifyCaParams) BindRequest ¶
func (o *VerifyCaParams) 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 NewVerifyCaParams() beforehand.
type VerifyCaURL ¶
type VerifyCaURL struct { ID string // contains filtered or unexported fields }
VerifyCaURL generates an URL for the verify ca operation
func (*VerifyCaURL) Build ¶
func (o *VerifyCaURL) Build() (*url.URL, error)
Build a url path and query string
func (*VerifyCaURL) BuildFull ¶
func (o *VerifyCaURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*VerifyCaURL) SetBasePath ¶
func (o *VerifyCaURL) 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 (*VerifyCaURL) String ¶
func (o *VerifyCaURL) String() string
String returns the string representation of the path with query string
func (*VerifyCaURL) StringFull ¶
func (o *VerifyCaURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*VerifyCaURL) WithBasePath ¶
func (o *VerifyCaURL) WithBasePath(bp string) *VerifyCaURL
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 VerifyCaUnauthorized ¶
type VerifyCaUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
VerifyCaUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response verifyCaUnauthorized
func NewVerifyCaUnauthorized ¶
func NewVerifyCaUnauthorized() *VerifyCaUnauthorized
NewVerifyCaUnauthorized creates VerifyCaUnauthorized with default headers values
func (*VerifyCaUnauthorized) SetPayload ¶
func (o *VerifyCaUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the verify ca unauthorized response
func (*VerifyCaUnauthorized) WithPayload ¶
func (o *VerifyCaUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *VerifyCaUnauthorized
WithPayload adds the payload to the verify ca unauthorized response
func (*VerifyCaUnauthorized) WriteResponse ¶
func (o *VerifyCaUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- create_ca.go
- create_ca_parameters.go
- create_ca_responses.go
- create_ca_urlbuilder.go
- delete_ca.go
- delete_ca_parameters.go
- delete_ca_responses.go
- delete_ca_urlbuilder.go
- detail_ca.go
- detail_ca_parameters.go
- detail_ca_responses.go
- detail_ca_urlbuilder.go
- get_ca_jwt.go
- get_ca_jwt_parameters.go
- get_ca_jwt_responses.go
- get_ca_jwt_urlbuilder.go
- list_cas.go
- list_cas_parameters.go
- list_cas_responses.go
- list_cas_urlbuilder.go
- patch_ca.go
- patch_ca_parameters.go
- patch_ca_responses.go
- patch_ca_urlbuilder.go
- update_ca.go
- update_ca_parameters.go
- update_ca_responses.go
- update_ca_urlbuilder.go
- verify_ca.go
- verify_ca_parameters.go
- verify_ca_responses.go
- verify_ca_urlbuilder.go