Documentation ¶
Overview ¶
Package certificates manages TLS certificates on KraftCloud.
Index ¶
Constants ¶
const Endpoint = "/certificates"
Endpoint is the public path for the certificates service.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificatesService ¶
type CertificatesService interface { kcclient.ServiceClient[CertificatesService] // Get returns the current status and the properties of one or more certificate(s). // // See: https://docs.kraft.cloud/api/v1/certificates/#getting-the-status-of-a-certificate Get(ctx context.Context, uuids ...string) (*kcclient.ServiceResponse[GetResponseItem], error) // Delete deletes one or more certificate(s). // // See: https://docs.kraft.cloud/api/v1/certificates/#deleting-a-certificate Delete(ctx context.Context, uuids ...string) (*kcclient.ServiceResponse[DeleteResponseItem], error) // List all existing certificates. // // See: https://docs.kraft.cloud/api/v1/certificates/#list-existing-certificates List(ctx context.Context) (*kcclient.ServiceResponse[ListResponseItem], error) }
func NewCertificatesClientFromOptions ¶
func NewCertificatesClientFromOptions(opts *options.Options) CertificatesService
NewCertificatesClientFromOptions instantiates a new certificates service client based on the provided pre-existing options.
type DeleteResponseItem ¶
type DeleteResponseItem struct { Status string `json:"status"` UUID string `json:"uuid"` Name string `json:"name"` kcclient.APIResponseCommon }
DeleteResponseItem is a data item from a response to a DELETE /certificates request. https://docs.kraft.cloud/api/v1/certificates/#deleting-a-certificate
type GetResponseItem ¶
type GetResponseItem struct { Status string `json:"status"` UUID string `json:"uuid"` Name string `json:"name"` CreatedAt string `json:"created_at"` CommonName string `json:"common_name"` State string `json:"state"` Validation *GetResponseValidation `json:"validation"` Subject string `json:"subject"` Issuer string `json:"issuer"` SerialNumber string `json:"serial_number"` NotBefore string `json:"not_before"` NotAfter string `json:"not_after"` ServiceGroups []GetResponseServiceGroup `json:"service_groups"` kcclient.APIResponseCommon }
GetResponseItem is a data item from a response to a GET /certificates request. https://docs.kraft.cloud/api/v1/certificates/#getting-the-status-of-a-certificate
type GetResponseServiceGroup ¶
type GetResponseValidation ¶ added in v0.5.2
type ListResponseItem ¶
type ListResponseItem struct { UUID string `json:"uuid"` Name string `json:"name"` kcclient.APIResponseCommon }
ListResponseItem is a data item from a response to a GET /certificates/list request. https://docs.kraft.cloud/api/v1/certificates/#list-existing-certificates