File: doc.go

package info (click to toggle)
golang-github-gophercloud-gophercloud 0.0~git20180917.45f1c769-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,768 kB
  • sloc: sh: 98; makefile: 14
file content (33 lines) | stat: -rw-r--r-- 907 bytes parent folder | download
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(serviceClient, "d564b18a-2890-4152-be3d-e05d784ff72").Extract()
	if err != nil {
		panic(err)
	}

Example to create certificates

	opts := certificates.CreateOpts{
		BayUUID:	"d564b18a-2890-4152-be3d-e05d784ff727",
		CSR:		"-----BEGIN CERTIFICATE REQUEST-----\nMIIEfzCCAmcCAQAwFDESMBAGA1UEAxMJWW91ciBOYW1lMIICIjANBgkqhkiG9w0B\n-----END CERTIFICATE REQUEST-----\n",
	}

	response, err := certificates.Create(sc, opts).Extract()
	if err != nil {
		panic(err)
	}

Example to update certificates

	err := certificates.Update(client, clusterUUID).ExtractErr()
	if err != nil {
		panic(err)
	}
*/
package certificates