github.com/gophercloud/gophercloud@v1.11.0/openstack/containerinfra/v1/certificates/doc.go (about) 1 // Package certificates contains functionality for working with Magnum Certificate 2 // resources. 3 /* 4 Package certificates provides information and interaction with the certificates through 5 the OpenStack Container Infra service. 6 7 Example to get certificates 8 9 certificate, err := certificates.Get(serviceClient, "d564b18a-2890-4152-be3d-e05d784ff72").Extract() 10 if err != nil { 11 panic(err) 12 } 13 14 Example to create certificates 15 16 createOpts := certificates.CreateOpts{ 17 BayUUID: "d564b18a-2890-4152-be3d-e05d784ff727", 18 CSR: "-----BEGIN CERTIFICATE REQUEST-----\nMIIEfzCCAmcCAQAwFDESMBAGA1UEAxMJWW91ciBOYW1lMIICIjANBgkqhkiG9w0B\n-----END CERTIFICATE REQUEST-----\n", 19 } 20 21 response, err := certificates.Create(sc, createOpts).Extract() 22 if err != nil { 23 panic(err) 24 } 25 26 Example to update certificates 27 28 err := certificates.Update(client, clusterUUID).ExtractErr() 29 if err != nil { 30 panic(err) 31 } 32 */ 33 package certificates