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 (26 lines) | stat: -rw-r--r-- 615 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
package instanceactions

/*
Package instanceactions provides the ability to list or get a server instance-action.

Example to List and Get actions:

	pages, err := instanceactions.List(client, "server-id", nil).AllPages()
	if err != nil {
		panic("fail to get actions pages")
	}

	actions, err := instanceactions.ExtractInstanceActions(pages)
	if err != nil {
		panic("fail to list instance actions")
	}

	for _, action := range actions {
		action, err = instanceactions.Get(client, "server-id", action.RequestID).Extract()
		if err != nil {
			panic("fail to get instance action")
		}

		fmt.Println(action)
	}
*/