client/lxd_certificates.go
func (r *ProtocolLXD) GetCertificate(fingerprint string) (*api.Certificate, string, error) {
	certificate := api.Certificate{}

	// Fetch the raw value
	etag, err := r.queryStruct("GET", fmt.Sprintf("/certificates/%s", url.QueryEscape(fingerprint)), nil, "", &certificate)
	if err != nil {
		return nil, "", err
	}

	return &certificate, etag, nil
}
func (r *ProtocolLXD) GetCertificate(fingerprint string) (*api.Certificate, string, error) {
	certificate := api.Certificate{}

	// Fetch the raw value
	etag, err := r.queryStruct("GET", fmt.Sprintf("/certificates/%s", url.QueryEscape(fingerprint)), nil, "", &certificate)
	if err != nil {
		return nil, "", err
	}

	return &certificate, etag, nil
}
func ( r * ProtocolLXD ) GetCertificate ( fingerprint string ) ( * api . Certificate , string , error ) { certificate := api . Certificate { } // Fetch the raw value etag , err := r . queryStruct ( " " , fmt . Sprintf ( " " , url . QueryEscape ( fingerprint ) ) , nil , " " , & certificate ) if err != nil { return nil , " " , err } return & certificate , etag , nil }
// GetCertificate returns the certificate entry for the provided fingerprint
GetCertificate returns the certificate entry for the provided fingerprint