kubernetes

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const APIPathKubernetesCluster = "/kubernetes/clusters/%s"
View Source
const APIPathKubernetesClusterDiscard = "/kubernetes/clusters/%s/discard"
View Source
const APIPathKubernetesClusterNodePools = "/kubernetes/clusters/%s/node_pools"
View Source
const APIPathKubernetesClusterPlan = "/kubernetes/cluster_plans/%s"
View Source
const APIPathKubernetesClusterRetry = "/kubernetes/clusters/%s/retry"
View Source
const APIPathKubernetesClusters = "/kubernetes/clusters"
View Source
const APIPathKubernetesNodePool = "/kubernetes/node_pools/%s"
View Source
const APIPathKubernetesNodePoolPlan = "/kubernetes/node_pool_plans/%s"
View Source
const APIPathKubernetesNodePoolRetry = "/kubernetes/node_pools/%s/retry"

Variables

This section is empty.

Functions

func CreateClusterFailErrMocked

func CreateClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

CreateClusterFailErrMocked test mocked function

func CreateClusterFailJSONMocked

func CreateClusterFailJSONMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

CreateClusterFailJSONMocked test mocked function

func CreateClusterFailStatusMocked

func CreateClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

CreateClusterFailStatusMocked test mocked function

func CreateClusterMocked

func CreateClusterMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

CreateClusterMocked test mocked function

func CreateNodePoolFailErrMocked

func CreateNodePoolFailErrMocked(t *testing.T, clusterID string, nodePoolIn *types.NodePool) *types.NodePool

CreateNodePoolFailErrMocked test mocked function

func CreateNodePoolFailJSONMocked

func CreateNodePoolFailJSONMocked(t *testing.T, clusterID string, nodePoolIn *types.NodePool) *types.NodePool

CreateNodePoolFailJSONMocked test mocked function

func CreateNodePoolFailStatusMocked

func CreateNodePoolFailStatusMocked(t *testing.T, clusterID string, nodePoolIn *types.NodePool) *types.NodePool

CreateNodePoolFailStatusMocked test mocked function

func CreateNodePoolMocked

func CreateNodePoolMocked(t *testing.T, clusterID string, nodePoolIn *types.NodePool) *types.NodePool

CreateNodePoolMocked test mocked function

func DeleteClusterFailErrMocked

func DeleteClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster)

DeleteClusterFailErrMocked test mocked function

func DeleteClusterFailJSONMocked

func DeleteClusterFailJSONMocked(t *testing.T, clusterIn *types.Cluster)

DeleteClusterFailJSONMocked test mocked function

func DeleteClusterFailStatusMocked

func DeleteClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster)

DeleteClusterFailStatusMocked test mocked function

func DeleteClusterMocked

func DeleteClusterMocked(t *testing.T, clusterIn *types.Cluster)

DeleteClusterMocked test mocked function

func DeleteNodePoolFailErrMocked

func DeleteNodePoolFailErrMocked(t *testing.T, nodePoolIn *types.NodePool)

DeleteNodePoolFailErrMocked test mocked function

func DeleteNodePoolFailJSONMocked

func DeleteNodePoolFailJSONMocked(t *testing.T, nodePoolIn *types.NodePool)

DeleteNodePoolFailJSONMocked test mocked function

func DeleteNodePoolFailStatusMocked

func DeleteNodePoolFailStatusMocked(t *testing.T, nodePoolIn *types.NodePool)

DeleteNodePoolFailStatusMocked test mocked function

func DeleteNodePoolMocked

func DeleteNodePoolMocked(t *testing.T, nodePoolIn *types.NodePool)

DeleteNodePoolMocked test mocked function

func DiscardClusterFailErrMocked

func DiscardClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster)

DiscardClusterFailErrMocked test mocked function

func DiscardClusterFailStatusMocked

func DiscardClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster)

DiscardClusterFailStatusMocked test mocked function

func DiscardClusterMocked

func DiscardClusterMocked(t *testing.T, clusterIn *types.Cluster)

DiscardClusterMocked test mocked function

func GetClusterFailErrMocked

func GetClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

GetClusterFailErrMocked test mocked function

func GetClusterFailJSONMocked

func GetClusterFailJSONMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

GetClusterFailJSONMocked test mocked function

func GetClusterFailStatusMocked

func GetClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

GetClusterFailStatusMocked test mocked function

func GetClusterMocked

func GetClusterMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

GetClusterMocked test mocked function

func GetClusterPlanFailErrMocked

func GetClusterPlanFailErrMocked(
	t *testing.T,
	clusterPlanID string,
	clusterPlanIn *types.ClusterPlan,
) *types.ClusterPlan

GetClusterPlanFailErrMocked test mocked function

func GetClusterPlanFailJSONMocked

func GetClusterPlanFailJSONMocked(
	t *testing.T,
	clusterPlanID string,
	clusterPlanIn *types.ClusterPlan,
) *types.ClusterPlan

GetClusterPlanFailJSONMocked test mocked function

func GetClusterPlanFailStatusMocked

func GetClusterPlanFailStatusMocked(
	t *testing.T,
	clusterPlanID string,
	clusterPlanIn *types.ClusterPlan,
) *types.ClusterPlan

GetClusterPlanFailStatusMocked test mocked function

func GetClusterPlanMocked

func GetClusterPlanMocked(t *testing.T, clusterPlanID string, clusterPlanIn *types.ClusterPlan) *types.ClusterPlan

GetClusterPlanMocked test mocked function

func GetNodePoolFailErrMocked

func GetNodePoolFailErrMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool

GetNodePoolFailErrMocked test mocked function

func GetNodePoolFailJSONMocked

func GetNodePoolFailJSONMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool

GetNodePoolFailJSONMocked test mocked function

func GetNodePoolFailStatusMocked

func GetNodePoolFailStatusMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool

GetNodePoolFailStatusMocked test mocked function

func GetNodePoolMocked

func GetNodePoolMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool

GetNodePoolMocked test mocked function

func GetNodePoolPlanFailErrMocked

func GetNodePoolPlanFailErrMocked(
	t *testing.T,
	nodePoolPlanID string,
	nodePoolPlanIn *types.NodePoolPlan,
) *types.NodePoolPlan

GetNodePoolPlanFailErrMocked test mocked function

func GetNodePoolPlanFailJSONMocked

func GetNodePoolPlanFailJSONMocked(
	t *testing.T,
	nodePoolPlanID string,
	nodePoolPlanIn *types.NodePoolPlan,
) *types.NodePoolPlan

GetNodePoolPlanFailJSONMocked test mocked function

func GetNodePoolPlanFailStatusMocked

func GetNodePoolPlanFailStatusMocked(
	t *testing.T,
	nodePoolPlanID string,
	nodePoolPlanIn *types.NodePoolPlan,
) *types.NodePoolPlan

GetNodePoolPlanFailStatusMocked test mocked function

func GetNodePoolPlanMocked

func GetNodePoolPlanMocked(
	t *testing.T,
	nodePoolPlanID string,
	nodePoolPlanIn *types.NodePoolPlan,
) *types.NodePoolPlan

GetNodePoolPlanMocked test mocked function

func ListClustersFailErrMocked

func ListClustersFailErrMocked(t *testing.T, clustersIn []*types.Cluster) []*types.Cluster

ListClustersFailErrMocked test mocked function

func ListClustersFailJSONMocked

func ListClustersFailJSONMocked(t *testing.T, clustersIn []*types.Cluster) []*types.Cluster

ListClustersFailJSONMocked test mocked function

func ListClustersFailStatusMocked

func ListClustersFailStatusMocked(t *testing.T, clustersIn []*types.Cluster) []*types.Cluster

ListClustersFailStatusMocked test mocked function

func ListClustersMocked

func ListClustersMocked(t *testing.T, clustersIn []*types.Cluster) []*types.Cluster

ListClustersMocked test mocked function

func ListNodePoolsFailErrMocked

func ListNodePoolsFailErrMocked(t *testing.T, clusterID string, nodePoolsIn []*types.NodePool) []*types.NodePool

ListNodePoolsFailErrMocked test mocked function

func ListNodePoolsFailJSONMocked

func ListNodePoolsFailJSONMocked(t *testing.T, clusterID string, nodePoolsIn []*types.NodePool) []*types.NodePool

ListNodePoolsFailJSONMocked test mocked function

func ListNodePoolsFailStatusMocked

func ListNodePoolsFailStatusMocked(t *testing.T, clusterID string, nodePoolsIn []*types.NodePool) []*types.NodePool

ListNodePoolsFailStatusMocked test mocked function

func ListNodePoolsMocked

func ListNodePoolsMocked(t *testing.T, clusterID string, nodePoolsIn []*types.NodePool) []*types.NodePool

ListNodePoolsMocked test mocked function

func RetryClusterFailErrMocked

func RetryClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

RetryClusterFailErrMocked test mocked function

func RetryClusterFailJSONMocked

func RetryClusterFailJSONMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

RetryClusterFailJSONMocked test mocked function

func RetryClusterFailStatusMocked

func RetryClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

RetryClusterFailStatusMocked test mocked function

func RetryClusterMocked

func RetryClusterMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

RetryClusterMocked test mocked function

func RetryNodePoolFailErrMocked

func RetryNodePoolFailErrMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool

RetryNodePoolFailErrMocked test mocked function

func RetryNodePoolFailJSONMocked

func RetryNodePoolFailJSONMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool

RetryNodePoolFailJSONMocked test mocked function

func RetryNodePoolFailStatusMocked

func RetryNodePoolFailStatusMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool

RetryNodePoolFailStatusMocked test mocked function

func RetryNodePoolMocked

func RetryNodePoolMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool

RetryNodePoolMocked test mocked function

func UpdateClusterFailErrMocked

func UpdateClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

UpdateClusterFailErrMocked test mocked function

func UpdateClusterFailJSONMocked

func UpdateClusterFailJSONMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

UpdateClusterFailJSONMocked test mocked function

func UpdateClusterFailStatusMocked

func UpdateClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

UpdateClusterFailStatusMocked test mocked function

func UpdateClusterMocked

func UpdateClusterMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

UpdateClusterMocked test mocked function

func UpdateNodePoolFailErrMocked

func UpdateNodePoolFailErrMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool

UpdateNodePoolFailErrMocked test mocked function

func UpdateNodePoolFailJSONMocked

func UpdateNodePoolFailJSONMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool

UpdateNodePoolFailJSONMocked test mocked function

func UpdateNodePoolFailStatusMocked

func UpdateNodePoolFailStatusMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool

UpdateNodePoolFailStatusMocked test mocked function

func UpdateNodePoolMocked

func UpdateNodePoolMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool

UpdateNodePoolMocked test mocked function

Types

type ClusterService

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

ClusterService manages cluster operations

func NewClusterService

func NewClusterService(concertoService utils.ConcertoService) (*ClusterService, error)

NewClusterService returns a Concerto Cluster service

func (*ClusterService) CreateCluster

func (cs *ClusterService) CreateCluster(clusterParams *map[string]interface{}) (cluster *types.Cluster, err error)

CreateCluster creates a cluster

func (*ClusterService) DeleteCluster

func (cs *ClusterService) DeleteCluster(clusterID string) (cluster *types.Cluster, err error)

DeleteCluster deletes a cluster by its ID

func (*ClusterService) DiscardCluster

func (cs *ClusterService) DiscardCluster(clusterID string) (err error)

DiscardCluster discards a cluster by its ID

func (*ClusterService) GetCluster

func (cs *ClusterService) GetCluster(clusterID string) (cluster *types.Cluster, err error)

GetCluster returns a cluster by its ID

func (*ClusterService) GetClusterPlan

func (cs *ClusterService) GetClusterPlan(clusterPlanID string) (clusterPlan *types.ClusterPlan, err error)

GetClusterPlan returns a cluster plan by its ID

func (*ClusterService) ListClusters

func (cs *ClusterService) ListClusters() (clusters []*types.Cluster, err error)

ListClusters returns the list of clusters as an array of cluster

func (*ClusterService) RetryCluster

func (cs *ClusterService) RetryCluster(clusterID string, clusterParams *map[string]interface{}) (
	cluster *types.Cluster, err error,
)

RetryCluster retries a cluster by its ID

func (*ClusterService) UpdateCluster

func (cs *ClusterService) UpdateCluster(
	clusterID string, clusterParams *map[string]interface{},
) (cluster *types.Cluster, err error)

UpdateCluster updates a cluster by its ID

type NodePoolService

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

NodePoolService manages node pool operations

func NewNodePoolService

func NewNodePoolService(concertoService utils.ConcertoService) (*NodePoolService, error)

NewNodePoolService returns a Concerto node pool service

func (*NodePoolService) CreateNodePool

func (nps *NodePoolService) CreateNodePool(
	clusterID string, nodePoolParams *map[string]interface{},
) (nodePool *types.NodePool, err error)

CreateNodePool creates a node pool

func (*NodePoolService) DeleteNodePool

func (nps *NodePoolService) DeleteNodePool(nodePoolID string) (nodePool *types.NodePool, err error)

DeleteNodePool deletes a node pool by its ID

func (*NodePoolService) GetNodePool

func (nps *NodePoolService) GetNodePool(nodePoolID string) (nodePool *types.NodePool, err error)

GetNodePool returns a node pool by its ID

func (*NodePoolService) GetNodePoolPlan

func (nps *NodePoolService) GetNodePoolPlan(nodePoolPlanID string) (nodePoolPlan *types.NodePoolPlan, err error)

GetNodePoolPlan returns a node pool plan by its ID

func (*NodePoolService) ListNodePools

func (nps *NodePoolService) ListNodePools(clusterID string) (nodePools []*types.NodePool, err error)

ListNodePools returns the list of node pools as an array of node pool for a given cluster ID

func (*NodePoolService) RetryNodePool

func (nps *NodePoolService) RetryNodePool(
	nodePoolID string, nodePoolParams *map[string]interface{},
) (nodePool *types.NodePool, err error)

RetryNodePool retries a node pool by its ID

func (*NodePoolService) UpdateNodePool

func (nps *NodePoolService) UpdateNodePool(
	nodePoolID string, nodePoolParams *map[string]interface{},
) (nodePool *types.NodePool, err error)

UpdateNodePool updates a node pool by its ID

Jump to

Keyboard shortcuts

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