Discover Packages
github.com/drycc/controller-sdk-go
certs
package
Version:
v0.0.0-...-55b2a28
Opens a new window with list of versions in this module.
Published: Jan 14, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
Attach(c, appID, name, domain)
Delete(c, appID, name)
Detach(c, appID, name, domain)
Get(c, appID, name)
List(c, appID, results)
New(c, appID, cert, key, name)
Types
Source Files
Documentation
Documentation
¶
Package certs manages SSL keys and certificates on the drycc platform
func Attach(c *drycc.Client, appID string, name string, domain string) error
func Delete(c *drycc.Client, appID string, name string) error
func Detach(c *drycc.Client, appID string, name string, domain string) error
func Get(c *drycc.Client, appID string, name string) (api.Cert, error)
func List(c *drycc.Client, appID string, results int) ([]api.Cert, int, error)
func New(c *drycc.Client, appID string, cert string, key string, name string) (api.Cert, error)
Attach adds a domain to a certificate.
Delete removes a certificate.
Detach removes a domain from a certificate.
Get retrieves information about a certificate
List lists certificates added to drycc.
New creates a new certificate.
Certificates are created independently from apps and are applied on a per domain basis.
So to enable SSL for an app with the domain test.com, you would first create the certificate,
then use the attach method to attach test.com to the certificate.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.