-
Notifications
You must be signed in to change notification settings - Fork 510
/
doc.go
33 lines (26 loc) · 971 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Package certificates contains functionality for working with Magnum Certificate
// resources.
/*
Package certificates provides information and interaction with the certificates through
the OpenStack Container Infra service.
Example to get certificates
certificate, err := certificates.Get(context.TODO(), serviceClient, "d564b18a-2890-4152-be3d-e05d784ff72").Extract()
if err != nil {
panic(err)
}
Example to create certificates
createOpts := certificates.CreateOpts{
BayUUID: "d564b18a-2890-4152-be3d-e05d784ff727",
CSR: "-----BEGIN CERTIFICATE REQUEST-----\nMIIEfzCCAmcCAQAwFDESMBAGA1UEAxMJWW91ciBOYW1lMIICIjANBgkqhkiG9w0B\n-----END CERTIFICATE REQUEST-----\n",
}
response, err := certificates.Create(context.TODO(), client, createOpts).Extract()
if err != nil {
panic(err)
}
Example to update certificates
err := certificates.Update(context.TODO(), client, clusterUUID).ExtractErr()
if err != nil {
panic(err)
}
*/
package certificates