provision

package
v0.0.0-...-0111df2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoscalingPoliciesGetter

type AutoscalingPoliciesGetter interface {
	AutoscalingPolicies(organizationID, clusterID string) AutoscalingPolicyInterface
}

AutoscalingPoliciesGetter is the getter for autoscaling policies

type AutoscalingPolicyInterface

type AutoscalingPolicyInterface interface {
	Create(*types.AutoscalingPolicy) (*types.AutoscalingPolicy, error)
	Get(id string) (*types.AutoscalingPolicy, error)
	Delete(id string) error
	List() ([]types.AutoscalingPolicy, error)
	ListForNodePool(nodePoolID string) ([]types.AutoscalingPolicy, error)
}

AutoscalingPolicyInterface is the interface for autoscaling policies

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the Provision client

func New

func New(cfg rest.Config) (*Client, error)

New constructs a new Provision client

func (*Client) AutoscalingPolicies

func (c *Client) AutoscalingPolicies(organizationID, clusterID string) AutoscalingPolicyInterface

AutoscalingPolicies returns the autoscaling policies interface

func (*Client) HKEClusters

func (c *Client) HKEClusters(organizationID string) HKEClusterInterface

HKEClusters returns the HKE clusters interface

func (*Client) NodePoolLabels

func (c *Client) NodePoolLabels(organizationID, clusterID, nodePoolID string) NodePoolLabelInterface

NodePoolLabels returns the nodes interface

func (*Client) NodePools

func (c *Client) NodePools(organizationID, clusterID string) NodePoolInterface

NodePools returns the node pools interface

func (*Client) Nodes

func (c *Client) Nodes(organizationID, clusterID, nodePoolID string) NodeInterface

Nodes returns the nodes interface

func (*Client) RESTClient

func (c *Client) RESTClient() rest.Interface

RESTClient returns the REST client associated with this client

func (*Client) Templates

func (c *Client) Templates(organizationID string) TemplateInterface

Templates returns the templates interface

type HKEClusterInterface

type HKEClusterInterface interface {
	Create(req *types.CreateHKEClusterRequest) (*types.IDResponse, error)
	Get(id string) (*types.HKECluster, error)
	Delete(id string) error
	List() ([]types.HKECluster, error)
}

HKEClusterInterface is the interface for HKE clusters

type HKEClustersGetter

type HKEClustersGetter interface {
	HKEClusters(organizationID string) HKEClusterInterface
}

HKEClustersGetter is the getter for HKE clusters

type Interface

Interface is the interface for Provision

type NodeInterface

type NodeInterface interface {
	Create(*types.Node) (*types.Node, error)
	Get(id string) (*types.Node, error)
	Delete(id string) error
	List() ([]types.Node, error)
}

NodeInterface is the interface for nodes

type NodePoolInterface

type NodePoolInterface interface {
	Create(req *types.NodePoolDigitalOceanCreateRequest) (*types.NodePool, error)
	Get(id string) (*types.NodePool, error)
	Delete(id string) error
	List() ([]types.NodePool, error)
	Scale(id string, req *types.NodePoolScaleRequest) (*types.NodePool, error)
	Upgrade(id string, req *types.NodePoolUpgradeRequest) (*types.NodePool, error)
}

NodePoolInterface is the interface for node pools

type NodePoolLabelInterface

type NodePoolLabelInterface interface {
	Create(*types.NodePoolLabel) (*types.IDResponse, error)
	Get(id string) (*types.NodePoolLabel, error)
	Delete(id string) error
	List() ([]types.NodePoolLabel, error)
}

NodePoolLabelInterface is the interface for labels

type NodePoolLabelsGetter

type NodePoolLabelsGetter interface {
	NodePoolLabels(organizationID, clusterID, labelPoolID string) NodePoolLabelInterface
}

NodePoolLabelsGetter is the getter for labels

type NodePoolsGetter

type NodePoolsGetter interface {
	NodePools(organizationID, clusterID string) NodePoolInterface
}

NodePoolsGetter is the getter for node pools

type NodesGetter

type NodesGetter interface {
	Nodes(organizationID, clusterID, nodePoolID string) NodeInterface
}

NodesGetter is the getter for nodes

type TemplateInterface

type TemplateInterface interface {
	Create(req *types.CreateTemplateRequest) (*types.Template, error)
	Get(id string) (*types.Template, error)
	Delete(id string) error
	List() ([]types.Template, error)
}

TemplateInterface is the interface for templates

type TemplatesGetter

type TemplatesGetter interface {
	Templates(organizationID string) TemplateInterface
}

TemplatesGetter is the getter for templates

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL