provision

package
v0.0.0-...-237ed90 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 CKEClusterInterface

type CKEClusterInterface interface {
	Create(req *types.CreateCKEClusterRequest) (*types.IDResponse, error)
	Get(id string) (*types.CKECluster, error)
	Delete(id string) error
	List() ([]types.CKECluster, error)
}

CKEClusterInterface is the interface for CKE clusters

type CKEClustersGetter

type CKEClustersGetter interface {
	CKEClusters(organizationID string) CKEClusterInterface
}

CKEClustersGetter is the getter for CKE clusters

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) CKEClusters

func (c *Client) CKEClusters(organizationID string) CKEClusterInterface

CKEClusters returns the CKE 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 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