Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct { Id string `json:"id"` TenantId string `json:"tenant_id"` AdminStateUp bool `json:"admin_state_up"` Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` Domain string `json:"domain"` PrivateKey string `json:"private_key"` Certificate string `json:"certificate"` ExpireTime string `json:"expire_time"` CreateTime string `json:"create_time"` UpdateTime string `json:"update_time"` }
Certificate the certificate detail returned by the query list.
type CertificateList ¶
type CertificateList struct { // Lists the certificates. For details, see Table 4. Certificates []Certificate `json:"certificates"` // Specifies the number of certificates. InstanceNum int `json:"instance_num"` }
CertificateList the struct returned by the query list.
type ListOpts ¶
type ListOpts struct { // Specifies the ID of the certificate from which pagination query starts, that is, // the ID of the last certificate on the previous page. This parameter must be used with limit. Marker string `q:"marker"` // Specifies the number of certificates on each page. // If this parameter is not set, all certificates are queried by default. Limit int `q:"limit"` // Specifies the page direction. The value can be true or false, and the default value is false. // This parameter must be used with limit. PageReverse *bool `q:"page_reverse"` // Specifies the certificate ID. Id string `q:"id"` // Specifies the certificate name. // The value contains a maximum of 255 characters. Name string `q:"name"` // Provides supplementary information about the certificate. // The value contains a maximum of 255 characters. Description string `q:"description"` // Specifies the certificate type. The default value is server. // The value range varies depending on the protocol of the backend server group: // server: indicates the server certificate. // client: indicates the CA certificate. Type string `q:"type"` // Specifies the domain name associated with the server certificate. The default value is null. Domain string `q:"domain"` // Specifies the private key of the server certificate. PrivateKey string `q:"private_key"` // Specifies the public key of the server certificate or CA certificate used to authenticate the client. Certificate string `q:"certificate"` // Specifies the time when the certificate was created. // The UTC time is in YYYY-MM-DD HH:MM:SS format. CreateTime string `q:"create_time"` // Specifies the time when the certificate was updated. // The UTC time is in YYYY-MM-DD HH:MM:SS format. UpdateTime string `q:"update_time"` }
ListOpts parameters used to query the certificate.
func (ListOpts) ToCertificateListQuery ¶
ToCertificateListQuery formats a ListOpts into a query string.
type ListOptsBuilder ¶
ListOptsBuilder allows extensions to add additional parameters to the List request.
type ListResult ¶
func List ¶
func List(c *golangsdk.ServiceClient, opts ListOptsBuilder) (ListResult, error)
List query the certificate list
func (ListResult) Extract ¶
func (r ListResult) Extract() (*CertificateList, error)
Extract extract the `Result.Body` to CertificateList
Click to show internal directories.
Click to hide internal directories.