forked from kubernetes/kubernetes
/
delegate.go
27 lines (22 loc) · 1.11 KB
/
delegate.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
package stackevents
import (
"github.com/rackspace/gophercloud"
os "github.com/rackspace/gophercloud/openstack/orchestration/v1/stackevents"
"github.com/rackspace/gophercloud/pagination"
)
// Find retreives stack events for the given stack name.
func Find(c *gophercloud.ServiceClient, stackName string) os.FindResult {
return os.Find(c, stackName)
}
// List makes a request against the API to list resources for the given stack.
func List(c *gophercloud.ServiceClient, stackName, stackID string, opts os.ListOptsBuilder) pagination.Pager {
return os.List(c, stackName, stackID, opts)
}
// ListResourceEvents makes a request against the API to list resources for the given stack.
func ListResourceEvents(c *gophercloud.ServiceClient, stackName, stackID, resourceName string, opts os.ListResourceEventsOptsBuilder) pagination.Pager {
return os.ListResourceEvents(c, stackName, stackID, resourceName, opts)
}
// Get retreives data for the given stack resource.
func Get(c *gophercloud.ServiceClient, stackName, stackID, resourceName, eventID string) os.GetResult {
return os.Get(c, stackName, stackID, resourceName, eventID)
}