certificate_authority

package
v0.25.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CreateCaBadRequestCode int = 400

CreateCaBadRequestCode is the HTTP code returned for type CreateCaBadRequest

View Source
const CreateCaCreatedCode int = 201

CreateCaCreatedCode is the HTTP code returned for type CreateCaCreated

View Source
const CreateCaUnauthorizedCode int = 401

CreateCaUnauthorizedCode is the HTTP code returned for type CreateCaUnauthorized

View Source
const DeleteCaBadRequestCode int = 400

DeleteCaBadRequestCode is the HTTP code returned for type DeleteCaBadRequest

View Source
const DeleteCaOKCode int = 200

DeleteCaOKCode is the HTTP code returned for type DeleteCaOK

View Source
const DeleteCaUnauthorizedCode int = 401

DeleteCaUnauthorizedCode is the HTTP code returned for type DeleteCaUnauthorized

View Source
const DetailCaNotFoundCode int = 404

DetailCaNotFoundCode is the HTTP code returned for type DetailCaNotFound

View Source
const DetailCaOKCode int = 200

DetailCaOKCode is the HTTP code returned for type DetailCaOK

View Source
const DetailCaUnauthorizedCode int = 401

DetailCaUnauthorizedCode is the HTTP code returned for type DetailCaUnauthorized

View Source
const GetCaJWTNotFoundCode int = 404

GetCaJWTNotFoundCode is the HTTP code returned for type GetCaJWTNotFound

View Source
const GetCaJWTOKCode int = 200

GetCaJWTOKCode is the HTTP code returned for type GetCaJWTOK

View Source
const GetCaJWTUnauthorizedCode int = 401

GetCaJWTUnauthorizedCode is the HTTP code returned for type GetCaJWTUnauthorized

View Source
const ListCasBadRequestCode int = 400

ListCasBadRequestCode is the HTTP code returned for type ListCasBadRequest

View Source
const ListCasOKCode int = 200

ListCasOKCode is the HTTP code returned for type ListCasOK

View Source
const ListCasUnauthorizedCode int = 401

ListCasUnauthorizedCode is the HTTP code returned for type ListCasUnauthorized

View Source
const PatchCaBadRequestCode int = 400

PatchCaBadRequestCode is the HTTP code returned for type PatchCaBadRequest

View Source
const PatchCaNotFoundCode int = 404

PatchCaNotFoundCode is the HTTP code returned for type PatchCaNotFound

View Source
const PatchCaOKCode int = 200

PatchCaOKCode is the HTTP code returned for type PatchCaOK

View Source
const PatchCaUnauthorizedCode int = 401

PatchCaUnauthorizedCode is the HTTP code returned for type PatchCaUnauthorized

View Source
const UpdateCaBadRequestCode int = 400

UpdateCaBadRequestCode is the HTTP code returned for type UpdateCaBadRequest

View Source
const UpdateCaNotFoundCode int = 404

UpdateCaNotFoundCode is the HTTP code returned for type UpdateCaNotFound

View Source
const UpdateCaOKCode int = 200

UpdateCaOKCode is the HTTP code returned for type UpdateCaOK

View Source
const UpdateCaUnauthorizedCode int = 401

UpdateCaUnauthorizedCode is the HTTP code returned for type UpdateCaUnauthorized

View Source
const VerifyCaBadRequestCode int = 400

VerifyCaBadRequestCode is the HTTP code returned for type VerifyCaBadRequest

View Source
const VerifyCaNotFoundCode int = 404

VerifyCaNotFoundCode is the HTTP code returned for type VerifyCaNotFound

View Source
const VerifyCaOKCode int = 200

VerifyCaOKCode is the HTTP code returned for type VerifyCaOK

View Source
const VerifyCaUnauthorizedCode int = 401

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

func (*CreateCa) ServeHTTP

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

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

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

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

func NewCreateCaCreated() *CreateCaCreated

NewCreateCaCreated creates CreateCaCreated with default headers values

func (*CreateCaCreated) SetPayload

func (o *CreateCaCreated) SetPayload(payload *rest_model.CreateEnvelope)

SetPayload sets the payload to the create ca created response

func (*CreateCaCreated) WithPayload

func (o *CreateCaCreated) WithPayload(payload *rest_model.CreateEnvelope) *CreateCaCreated

WithPayload adds the payload to the create ca created response

func (*CreateCaCreated) WriteResponse

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

There are no default values defined in the 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) Must

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

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

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 {

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

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

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

func (*DeleteCa) ServeHTTP

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

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

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

There are no default values defined in the 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) Must

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

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

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 {

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

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

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

func (*DetailCa) ServeHTTP

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

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

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

There are no default values defined in the 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) Must

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

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

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 {

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

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

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

func (*GetCaJWT) ServeHTTP

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

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

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

There are no default values defined in the 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) Must

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

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

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 {

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

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

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

func (*ListCas) ServeHTTP

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

type ListCasBadRequest

type ListCasBadRequest struct {

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

ListCasBadRequest 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 listCasBadRequest

func NewListCasBadRequest

func NewListCasBadRequest() *ListCasBadRequest

NewListCasBadRequest creates ListCasBadRequest with default headers values

func (*ListCasBadRequest) SetPayload

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

SetPayload sets the payload to the list cas bad request response

func (*ListCasBadRequest) WithPayload

WithPayload adds the payload to the list cas bad request response

func (*ListCasBadRequest) WriteResponse

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

WriteResponse to the client

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

There are no default values defined in the 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) Must

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

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

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 ListCasUnauthorized

type ListCasUnauthorized struct {

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

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

swagger:response listCasUnauthorized

func NewListCasUnauthorized

func NewListCasUnauthorized() *ListCasUnauthorized

NewListCasUnauthorized creates ListCasUnauthorized with default headers values

func (*ListCasUnauthorized) SetPayload

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

SetPayload sets the payload to the list cas unauthorized response

func (*ListCasUnauthorized) WithPayload

WithPayload adds the payload to the list cas unauthorized response

func (*ListCasUnauthorized) WriteResponse

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

WriteResponse to the client

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

func (*PatchCa) ServeHTTP

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

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

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

There are no default values defined in the 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) Must

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

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

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 {

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

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

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

func (*UpdateCa) ServeHTTP

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

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

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

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

There are no default values defined in the 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) Must

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

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

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 {

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

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

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

func (*VerifyCa) ServeHTTP

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

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

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

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

There are no default values defined in the 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) Must

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

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

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 {

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

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

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

Jump to

Keyboard shortcuts

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