Skip to content

Commit 8257ed7

Browse files
committed
chore: remove unused RenewCertificate function and type
Signed-off-by: lonelysadness <[email protected]>
1 parent 567bf52 commit 8257ed7

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

proxmox/nodes/certificate.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,3 @@ func (c *Client) OrderCertificate(ctx context.Context, d *CertificateOrderReques
6666
return resBody.Data, nil
6767
}
6868

69-
// RenewCertificate renews an existing ACME certificate for a node.
70-
func (c *Client) RenewCertificate(ctx context.Context, d *CertificateRenewRequestBody) (*string, error) {
71-
resBody := &CertificateOrderResponseBody{}
72-
73-
err := c.DoRequest(ctx, http.MethodPut, c.ExpandPath("certificates/acme/certificate"), d, resBody)
74-
if err != nil {
75-
return nil, fmt.Errorf("error renewing ACME certificate: %w", err)
76-
}
77-
78-
if resBody.Data == nil {
79-
return nil, api.ErrNoDataObjectInResponse
80-
}
81-
82-
return resBody.Data, nil
83-
}

proxmox/nodes/certificate_types.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,3 @@ type CertificateOrderRequestBody struct {
5151
type CertificateOrderResponseBody struct {
5252
Data *string `json:"data,omitempty"`
5353
}
54-
55-
// CertificateRenewRequestBody contains the body for an ACME certificate renewal request.
56-
type CertificateRenewRequestBody struct {
57-
Force *types.CustomBool `json:"force,omitempty" url:"force,omitempty,int"`
58-
}

0 commit comments

Comments
 (0)