Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOpts ¶
type AddOpts struct { Name string `json:"name,omitempty"` SSLCertificate string `json:"sslCertificate,omitempty"` SSLPrivateKey string `json:"sslPrivateKey,omitempty"` }
AddOpts specifies attributes used to add a SSL certificate.
type AddOptsBuilder ¶
type AddResult ¶
type AddResult struct {
// contains filtered or unexported fields
}
AddResult is the result of an add request. Call its Extract method to interpret a result as a SSLCertificate.
func Add ¶
func Add(client *gophercloud.ServiceClient, projectID string, opts AddOptsBuilder) (r AddResult)
Add implements a SSL certificate add request.
func (AddResult) Extract ¶
func (r AddResult) Extract() (*SSLCertificate, error)
Extract interprets any SSL certificate result as a SSLCertificate, if possible.
type DeleteResult ¶
type DeleteResult struct {
gophercloud.ErrResult
}
DeleteResult is the result of a delete request. Call its ExtractErr method to determine if a request succeeded or failed.
func Delete ¶
func Delete(client *gophercloud.ServiceClient, projectID string, id int) (r DeleteResult)
Delete implements a resource delete request.
type ListResult ¶
type ListResult struct {
// contains filtered or unexported fields
}
ListResult is th result of a list request. Call its Extract method to interpret the result as a slice of SSLCertificate.
func List ¶
func List(client *gophercloud.ServiceClient, projectID string) (r ListResult)
List returns a list of CDN SSL certificates in a project.
func (ListResult) Extract ¶
func (r ListResult) Extract() ([]SSLCertificate, error)
Extract interprets a ListResult as a slice of SSLCertificate, if possible.
type SSLCertificate ¶
type SSLCertificate struct { ID int `json:"id"` Automated bool `json:"automated"` CertIssuer string `json:"cert_issuer"` CertSubjectCN string `json:"cert_subject_cn"` Deleted bool `json:"deleted"` HasRelatedResources bool `json:"has_related_resources"` Name string `json:"name"` ValidityNotAfter string `json:"validity_not_after"` ValidityNotBefore string `json:"validity_not_before"` }
SSLCertificate represents a CDN SSL certificate.
type UpdateOpts ¶
type UpdateOpts struct {
Name string `json:"name,omitempty"`
}
UpdateOpts specifies attributes used to update a SSL certificate.
func (UpdateOpts) Map ¶
func (opts UpdateOpts) Map() (map[string]interface{}, error)
Map builds a request body from a UpdateOpts structure.
type UpdateOptsBuilder ¶
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
UpdateResult is the result of an update request. Call its Extract method to interpret a result as a SSLCertificate.
func Update ¶
func Update(client *gophercloud.ServiceClient, projectID string, id int, opts UpdateOptsBuilder) (r UpdateResult)
Update implements a SSL certificate update request.
func (UpdateResult) Extract ¶
func (r UpdateResult) Extract() (*SSLCertificate, error)
Extract interprets any SSL certificate result as a SSLCertificate, if possible.