Documentation ¶
Index ¶
- func CreateAdmin(w http.ResponseWriter, r *http.Request)
- func CreateProvisioner(w http.ResponseWriter, r *http.Request)
- func DeleteAdmin(w http.ResponseWriter, r *http.Request)
- func DeleteProvisioner(w http.ResponseWriter, r *http.Request)
- func GetAdmin(w http.ResponseWriter, r *http.Request)
- func GetAdmins(w http.ResponseWriter, r *http.Request)
- func GetProvisioner(w http.ResponseWriter, r *http.Request)
- func GetProvisioners(w http.ResponseWriter, r *http.Request)
- func Route(r api.Router, options ...RouterOption)
- func UpdateAdmin(w http.ResponseWriter, r *http.Request)
- func UpdateProvisioner(w http.ResponseWriter, r *http.Request)
- type ACMEAdminResponder
- type CreateAdminRequest
- type CreateExternalAccountKeyRequest
- type DeleteResponse
- type GetAdminsResponse
- type GetExternalAccountKeysResponse
- type GetProvisionersResponse
- type PolicyAdminResponder
- type RouterOption
- type UpdateAdminRequest
- type WebhookAdminResponder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAdmin ¶ added in v0.20.0
func CreateAdmin(w http.ResponseWriter, r *http.Request)
CreateAdmin creates a new admin.
func CreateProvisioner ¶ added in v0.20.0
func CreateProvisioner(w http.ResponseWriter, r *http.Request)
CreateProvisioner creates a new prov.
func DeleteAdmin ¶ added in v0.20.0
func DeleteAdmin(w http.ResponseWriter, r *http.Request)
DeleteAdmin deletes admin.
func DeleteProvisioner ¶ added in v0.20.0
func DeleteProvisioner(w http.ResponseWriter, r *http.Request)
DeleteProvisioner deletes a provisioner.
func GetAdmin ¶ added in v0.20.0
func GetAdmin(w http.ResponseWriter, r *http.Request)
GetAdmin returns the requested admin, or an error.
func GetAdmins ¶ added in v0.20.0
func GetAdmins(w http.ResponseWriter, r *http.Request)
GetAdmins returns a segment of admins associated with the authority.
func GetProvisioner ¶ added in v0.20.0
func GetProvisioner(w http.ResponseWriter, r *http.Request)
GetProvisioner returns the requested provisioner, or an error.
func GetProvisioners ¶ added in v0.20.0
func GetProvisioners(w http.ResponseWriter, r *http.Request)
GetProvisioners returns the given segment of provisioners associated with the authority.
func Route ¶ added in v0.20.0
func Route(r api.Router, options ...RouterOption)
Route traffic and implement the Router interface.
func UpdateAdmin ¶ added in v0.20.0
func UpdateAdmin(w http.ResponseWriter, r *http.Request)
UpdateAdmin updates an existing admin.
func UpdateProvisioner ¶ added in v0.20.0
func UpdateProvisioner(w http.ResponseWriter, r *http.Request)
UpdateProvisioner updates an existing prov.
Types ¶
type ACMEAdminResponder ¶ added in v0.18.2
type ACMEAdminResponder interface { GetExternalAccountKeys(w http.ResponseWriter, r *http.Request) CreateExternalAccountKey(w http.ResponseWriter, r *http.Request) DeleteExternalAccountKey(w http.ResponseWriter, r *http.Request) }
ACMEAdminResponder is responsible for writing ACME admin responses
func NewACMEAdminResponder ¶ added in v0.18.2
func NewACMEAdminResponder() ACMEAdminResponder
NewACMEAdminResponder returns a new ACMEAdminResponder
type CreateAdminRequest ¶
type CreateAdminRequest struct { Subject string `json:"subject"` Provisioner string `json:"provisioner"` Type linkedca.Admin_Type `json:"type"` }
CreateAdminRequest represents the body for a CreateAdmin request.
func (*CreateAdminRequest) Validate ¶
func (car *CreateAdminRequest) Validate() error
Validate validates a new-admin request body.
type CreateExternalAccountKeyRequest ¶ added in v0.18.1
type CreateExternalAccountKeyRequest struct {
Reference string `json:"reference"`
}
CreateExternalAccountKeyRequest is the type for POST /admin/acme/eab requests
func (*CreateExternalAccountKeyRequest) Validate ¶ added in v0.18.1
func (r *CreateExternalAccountKeyRequest) Validate() error
Validate validates a new ACME EAB Key request body.
type DeleteResponse ¶
type DeleteResponse struct {
Status string `json:"status"`
}
DeleteResponse is the resource for successful DELETE responses.
type GetAdminsResponse ¶
type GetAdminsResponse struct { Admins []*linkedca.Admin `json:"admins"` NextCursor string `json:"nextCursor"` }
GetAdminsResponse for returning a list of admins.
type GetExternalAccountKeysResponse ¶ added in v0.18.1
type GetExternalAccountKeysResponse struct { EAKs []*linkedca.EABKey `json:"eaks"` NextCursor string `json:"nextCursor"` }
GetExternalAccountKeysResponse is the type for GET /admin/acme/eab responses
type GetProvisionersResponse ¶
type GetProvisionersResponse struct { Provisioners provisioner.List `json:"provisioners"` NextCursor string `json:"nextCursor"` }
GetProvisionersResponse is the type for GET /admin/provisioners responses.
type PolicyAdminResponder ¶ added in v0.20.0
type PolicyAdminResponder interface { GetAuthorityPolicy(w http.ResponseWriter, r *http.Request) CreateAuthorityPolicy(w http.ResponseWriter, r *http.Request) UpdateAuthorityPolicy(w http.ResponseWriter, r *http.Request) DeleteAuthorityPolicy(w http.ResponseWriter, r *http.Request) GetProvisionerPolicy(w http.ResponseWriter, r *http.Request) CreateProvisionerPolicy(w http.ResponseWriter, r *http.Request) UpdateProvisionerPolicy(w http.ResponseWriter, r *http.Request) DeleteProvisionerPolicy(w http.ResponseWriter, r *http.Request) GetACMEAccountPolicy(w http.ResponseWriter, r *http.Request) CreateACMEAccountPolicy(w http.ResponseWriter, r *http.Request) UpdateACMEAccountPolicy(w http.ResponseWriter, r *http.Request) DeleteACMEAccountPolicy(w http.ResponseWriter, r *http.Request) }
PolicyAdminResponder is the interface responsible for writing ACME admin responses.
func NewPolicyAdminResponder ¶ added in v0.20.0
func NewPolicyAdminResponder() PolicyAdminResponder
NewACMEAdminResponder returns a new PolicyAdminResponder.
type RouterOption ¶ added in v0.23.0
type RouterOption func(*router)
func WithACMEResponder ¶ added in v0.23.0
func WithACMEResponder(acmeResponder ACMEAdminResponder) RouterOption
func WithPolicyResponder ¶ added in v0.23.0
func WithPolicyResponder(policyResponder PolicyAdminResponder) RouterOption
func WithWebhookResponder ¶ added in v0.23.0
func WithWebhookResponder(webhookResponder WebhookAdminResponder) RouterOption
type UpdateAdminRequest ¶
type UpdateAdminRequest struct {
Type linkedca.Admin_Type `json:"type"`
}
UpdateAdminRequest represents the body for a UpdateAdmin request.
func (*UpdateAdminRequest) Validate ¶
func (uar *UpdateAdminRequest) Validate() error
Validate validates a new-admin request body.
type WebhookAdminResponder ¶ added in v0.23.0
type WebhookAdminResponder interface { CreateProvisionerWebhook(w http.ResponseWriter, r *http.Request) UpdateProvisionerWebhook(w http.ResponseWriter, r *http.Request) DeleteProvisionerWebhook(w http.ResponseWriter, r *http.Request) }
WebhookAdminResponder is the interface responsible for writing webhook admin responses.
func NewWebhookAdminResponder ¶ added in v0.23.0
func NewWebhookAdminResponder() WebhookAdminResponder
NewWebhookAdminResponder returns a new WebhookAdminResponder