forked from linode/linodego
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lke_cluster_pools.go
56 lines (42 loc) · 2.4 KB
/
lke_cluster_pools.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package linodego
import (
"context"
)
// Deprecated: LKEClusterPoolDisk represents a Node disk in an LKEClusterPool object
type LKEClusterPoolDisk = LKENodePoolDisk
// Deprecated: LKEClusterPoolAutoscaler represents an AutoScaler configuration
type LKEClusterPoolAutoscaler = LKENodePoolAutoscaler
// Deprecated: LKEClusterPoolLinode represents a LKEClusterPoolLinode object
type LKEClusterPoolLinode = LKENodePoolLinode
// Deprecated: LKEClusterPool represents a LKEClusterPool object
type LKEClusterPool = LKENodePool
// Deprecated: LKEClusterPoolCreateOptions fields are those accepted by CreateLKEClusterPool
type LKEClusterPoolCreateOptions = LKENodePoolCreateOptions
// Deprecated: LKEClusterPoolUpdateOptions fields are those accepted by UpdateLKEClusterPool
type LKEClusterPoolUpdateOptions = LKENodePoolUpdateOptions
// Deprecated: LKEClusterPoolsPagedResponse represents a paginated LKEClusterPool API response
type LKEClusterPoolsPagedResponse = LKENodePoolsPagedResponse
// Deprecated: ListLKEClusterPools lists LKEClusterPools
func (c *Client) ListLKEClusterPools(ctx context.Context, clusterID int, opts *ListOptions) ([]LKEClusterPool, error) {
return c.ListLKENodePools(ctx, clusterID, opts)
}
// Deprecated: GetLKEClusterPool gets the lkeClusterPool with the provided ID
func (c *Client) GetLKEClusterPool(ctx context.Context, clusterID, id int) (*LKEClusterPool, error) {
return c.GetLKENodePool(ctx, clusterID, id)
}
// Deprecated: CreateLKEClusterPool creates a LKEClusterPool
func (c *Client) CreateLKEClusterPool(ctx context.Context, clusterID int, createOpts LKEClusterPoolCreateOptions) (*LKEClusterPool, error) {
return c.CreateLKENodePool(ctx, clusterID, createOpts)
}
// Deprecated: UpdateLKEClusterPool updates the LKEClusterPool with the specified id
func (c *Client) UpdateLKEClusterPool(ctx context.Context, clusterID, id int, updateOpts LKEClusterPoolUpdateOptions) (*LKEClusterPool, error) {
return c.UpdateLKENodePool(ctx, clusterID, id, updateOpts)
}
// Deprecated: DeleteLKEClusterPool deletes the LKEClusterPool with the specified id
func (c *Client) DeleteLKEClusterPool(ctx context.Context, clusterID, id int) error {
return c.DeleteLKENodePool(ctx, clusterID, id)
}
// Deprecated: DeleteLKEClusterPoolNode deletes a given node from a cluster pool
func (c *Client) DeleteLKEClusterPoolNode(ctx context.Context, clusterID int, id string) error {
return c.DeleteLKENodePoolNode(ctx, clusterID, id)
}