Documentation ¶
Index ¶
- type Certificate
- type Client
- func (s *Client) Delete(path string) error
- func (s *Client) Do(v interface{}, method, path string, body interface{}, lr *ListRange) error
- func (s *Client) Get(v interface{}, path string, lr *ListRange) error
- func (s *Client) GetSSLCertificates(appName string) ([]Certificate, error)
- func (s *Client) NewRequest(method, path string, body interface{}) (*http.Request, error)
- func (s *Client) Patch(v interface{}, path string, body interface{}) error
- func (s *Client) Post(v interface{}, path string, body interface{}) error
- func (s *Client) Put(v interface{}, path string, body interface{}) error
- func (s *Client) RemoveSSLCertificates(appName string) error
- func (s *Client) SetConfigVars(appName string, index int, key, token string) error
- func (s *Client) SetSSLCertificate(appName string, chain, key []byte) error
- func (s *Client) UpdateSSLCertificate(appName, certName string, chain, key []byte) error
- type ListRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct { Name string `json:"name"` SslCert sslCert `json:"ssl_cert"` }
Certificate is the information of a single certificate
type Client ¶
type Client struct { Token string // contains filtered or unexported fields }
Client holds the token and methods to make calls to the Heroku API
func (*Client) GetSSLCertificates ¶
func (s *Client) GetSSLCertificates(appName string) ([]Certificate, error)
GetSSLCertificates returns the certificates for an app
func (*Client) NewRequest ¶
NewRequest generates an HTTP request, but does not perform the request.
func (*Client) RemoveSSLCertificates ¶
RemoveSSLCertificates removes all certificates added to an app
func (*Client) SetConfigVars ¶
SetConfigVars sets the requires config vars for challenge validation
func (*Client) SetSSLCertificate ¶
SetSSLCertificate adds a certificate to an app
Click to show internal directories.
Click to hide internal directories.