File: doc.go

package info (click to toggle)
golang-github-gophercloud-gophercloud 0.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, bullseye-backports
  • size: 10,224 kB
  • sloc: sh: 125; makefile: 21
file content (33 lines) | stat: -rw-r--r-- 919 bytes parent folder | download | duplicates (2)
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

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

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

Example to update certificates

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