Documentation ¶
Index ¶
- Constants
- func CreateClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func CreateClusterFailJSONMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func CreateClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func CreateClusterMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func CreateNodePoolFailErrMocked(t *testing.T, clusterID string, nodePoolIn *types.NodePool) *types.NodePool
- func CreateNodePoolFailJSONMocked(t *testing.T, clusterID string, nodePoolIn *types.NodePool) *types.NodePool
- func CreateNodePoolFailStatusMocked(t *testing.T, clusterID string, nodePoolIn *types.NodePool) *types.NodePool
- func CreateNodePoolMocked(t *testing.T, clusterID string, nodePoolIn *types.NodePool) *types.NodePool
- func DeleteClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster)
- func DeleteClusterFailJSONMocked(t *testing.T, clusterIn *types.Cluster)
- func DeleteClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster)
- func DeleteClusterMocked(t *testing.T, clusterIn *types.Cluster)
- func DeleteNodePoolFailErrMocked(t *testing.T, nodePoolIn *types.NodePool)
- func DeleteNodePoolFailJSONMocked(t *testing.T, nodePoolIn *types.NodePool)
- func DeleteNodePoolFailStatusMocked(t *testing.T, nodePoolIn *types.NodePool)
- func DeleteNodePoolMocked(t *testing.T, nodePoolIn *types.NodePool)
- func DiscardClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster)
- func DiscardClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster)
- func DiscardClusterMocked(t *testing.T, clusterIn *types.Cluster)
- func GetClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func GetClusterFailJSONMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func GetClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func GetClusterMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func GetClusterPlanFailErrMocked(t *testing.T, clusterPlanID string, clusterPlanIn *types.ClusterPlan) *types.ClusterPlan
- func GetClusterPlanFailJSONMocked(t *testing.T, clusterPlanID string, clusterPlanIn *types.ClusterPlan) *types.ClusterPlan
- func GetClusterPlanFailStatusMocked(t *testing.T, clusterPlanID string, clusterPlanIn *types.ClusterPlan) *types.ClusterPlan
- func GetClusterPlanMocked(t *testing.T, clusterPlanID string, clusterPlanIn *types.ClusterPlan) *types.ClusterPlan
- func GetNodePoolFailErrMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool
- func GetNodePoolFailJSONMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool
- func GetNodePoolFailStatusMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool
- func GetNodePoolMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool
- func GetNodePoolPlanFailErrMocked(t *testing.T, nodePoolPlanID string, nodePoolPlanIn *types.NodePoolPlan) *types.NodePoolPlan
- func GetNodePoolPlanFailJSONMocked(t *testing.T, nodePoolPlanID string, nodePoolPlanIn *types.NodePoolPlan) *types.NodePoolPlan
- func GetNodePoolPlanFailStatusMocked(t *testing.T, nodePoolPlanID string, nodePoolPlanIn *types.NodePoolPlan) *types.NodePoolPlan
- func GetNodePoolPlanMocked(t *testing.T, nodePoolPlanID string, nodePoolPlanIn *types.NodePoolPlan) *types.NodePoolPlan
- func ListClustersFailErrMocked(t *testing.T, clustersIn []*types.Cluster) []*types.Cluster
- func ListClustersFailJSONMocked(t *testing.T, clustersIn []*types.Cluster) []*types.Cluster
- func ListClustersFailStatusMocked(t *testing.T, clustersIn []*types.Cluster) []*types.Cluster
- func ListClustersMocked(t *testing.T, clustersIn []*types.Cluster) []*types.Cluster
- func ListNodePoolsFailErrMocked(t *testing.T, clusterID string, nodePoolsIn []*types.NodePool) []*types.NodePool
- func ListNodePoolsFailJSONMocked(t *testing.T, clusterID string, nodePoolsIn []*types.NodePool) []*types.NodePool
- func ListNodePoolsFailStatusMocked(t *testing.T, clusterID string, nodePoolsIn []*types.NodePool) []*types.NodePool
- func ListNodePoolsMocked(t *testing.T, clusterID string, nodePoolsIn []*types.NodePool) []*types.NodePool
- func RetryClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func RetryClusterFailJSONMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func RetryClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func RetryClusterMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func RetryNodePoolFailErrMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool
- func RetryNodePoolFailJSONMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool
- func RetryNodePoolFailStatusMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool
- func RetryNodePoolMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool
- func UpdateClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func UpdateClusterFailJSONMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func UpdateClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func UpdateClusterMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func UpdateNodePoolFailErrMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool
- func UpdateNodePoolFailJSONMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool
- func UpdateNodePoolFailStatusMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool
- func UpdateNodePoolMocked(t *testing.T, nodePoolIn *types.NodePool) *types.NodePool
- type ClusterService
- func (cs *ClusterService) CreateCluster(clusterParams *map[string]interface{}) (cluster *types.Cluster, err error)
- func (cs *ClusterService) DeleteCluster(clusterID string) (cluster *types.Cluster, err error)
- func (cs *ClusterService) DiscardCluster(clusterID string) (err error)
- func (cs *ClusterService) GetCluster(clusterID string) (cluster *types.Cluster, err error)
- func (cs *ClusterService) GetClusterPlan(clusterPlanID string) (clusterPlan *types.ClusterPlan, err error)
- func (cs *ClusterService) ListClusters() (clusters []*types.Cluster, err error)
- func (cs *ClusterService) RetryCluster(clusterID string, clusterParams *map[string]interface{}) (cluster *types.Cluster, err error)
- func (cs *ClusterService) UpdateCluster(clusterID string, clusterParams *map[string]interface{}) (cluster *types.Cluster, err error)
- type NodePoolService
- func (nps *NodePoolService) CreateNodePool(clusterID string, nodePoolParams *map[string]interface{}) (nodePool *types.NodePool, err error)
- func (nps *NodePoolService) DeleteNodePool(nodePoolID string) (nodePool *types.NodePool, err error)
- func (nps *NodePoolService) GetNodePool(nodePoolID string) (nodePool *types.NodePool, err error)
- func (nps *NodePoolService) GetNodePoolPlan(nodePoolPlanID string) (nodePoolPlan *types.NodePoolPlan, err error)
- func (nps *NodePoolService) ListNodePools(clusterID string) (nodePools []*types.NodePool, err error)
- func (nps *NodePoolService) RetryNodePool(nodePoolID string, nodePoolParams *map[string]interface{}) (nodePool *types.NodePool, err error)
- func (nps *NodePoolService) UpdateNodePool(nodePoolID string, nodePoolParams *map[string]interface{}) (nodePool *types.NodePool, err error)
Constants ¶
const APIPathKubernetesCluster = "/kubernetes/clusters/%s"
const APIPathKubernetesClusterDiscard = "/kubernetes/clusters/%s/discard"
const APIPathKubernetesClusterNodePools = "/kubernetes/clusters/%s/node_pools"
const APIPathKubernetesClusterPlan = "/kubernetes/cluster_plans/%s"
const APIPathKubernetesClusterRetry = "/kubernetes/clusters/%s/retry"
const APIPathKubernetesClusters = "/kubernetes/clusters"
const APIPathKubernetesNodePool = "/kubernetes/node_pools/%s"
const APIPathKubernetesNodePoolPlan = "/kubernetes/node_pool_plans/%s"
const APIPathKubernetesNodePoolRetry = "/kubernetes/node_pools/%s/retry"
Variables ¶
This section is empty.
Functions ¶
func CreateClusterFailErrMocked ¶
CreateClusterFailErrMocked test mocked function
func CreateClusterFailJSONMocked ¶
CreateClusterFailJSONMocked test mocked function
func CreateClusterFailStatusMocked ¶
CreateClusterFailStatusMocked test mocked function
func CreateClusterMocked ¶
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 ¶
DeleteClusterFailErrMocked test mocked function
func DeleteClusterFailJSONMocked ¶
DeleteClusterFailJSONMocked test mocked function
func DeleteClusterFailStatusMocked ¶
DeleteClusterFailStatusMocked test mocked function
func DeleteClusterMocked ¶
DeleteClusterMocked test mocked function
func DeleteNodePoolFailErrMocked ¶
DeleteNodePoolFailErrMocked test mocked function
func DeleteNodePoolFailJSONMocked ¶
DeleteNodePoolFailJSONMocked test mocked function
func DeleteNodePoolFailStatusMocked ¶
DeleteNodePoolFailStatusMocked test mocked function
func DeleteNodePoolMocked ¶
DeleteNodePoolMocked test mocked function
func DiscardClusterFailErrMocked ¶
DiscardClusterFailErrMocked test mocked function
func DiscardClusterFailStatusMocked ¶
DiscardClusterFailStatusMocked test mocked function
func DiscardClusterMocked ¶
DiscardClusterMocked test mocked function
func GetClusterFailErrMocked ¶
GetClusterFailErrMocked test mocked function
func GetClusterFailJSONMocked ¶
GetClusterFailJSONMocked test mocked function
func GetClusterFailStatusMocked ¶
GetClusterFailStatusMocked test mocked function
func GetClusterMocked ¶
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 ¶
GetNodePoolFailErrMocked test mocked function
func GetNodePoolFailJSONMocked ¶
GetNodePoolFailJSONMocked test mocked function
func GetNodePoolFailStatusMocked ¶
GetNodePoolFailStatusMocked test mocked function
func GetNodePoolMocked ¶
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 ¶
ListClustersFailErrMocked test mocked function
func ListClustersFailJSONMocked ¶
ListClustersFailJSONMocked test mocked function
func ListClustersFailStatusMocked ¶
ListClustersFailStatusMocked test mocked function
func ListClustersMocked ¶
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 ¶
RetryClusterFailErrMocked test mocked function
func RetryClusterFailJSONMocked ¶
RetryClusterFailJSONMocked test mocked function
func RetryClusterFailStatusMocked ¶
RetryClusterFailStatusMocked test mocked function
func RetryClusterMocked ¶
RetryClusterMocked test mocked function
func RetryNodePoolFailErrMocked ¶
RetryNodePoolFailErrMocked test mocked function
func RetryNodePoolFailJSONMocked ¶
RetryNodePoolFailJSONMocked test mocked function
func RetryNodePoolFailStatusMocked ¶
RetryNodePoolFailStatusMocked test mocked function
func RetryNodePoolMocked ¶
RetryNodePoolMocked test mocked function
func UpdateClusterFailErrMocked ¶
UpdateClusterFailErrMocked test mocked function
func UpdateClusterFailJSONMocked ¶
UpdateClusterFailJSONMocked test mocked function
func UpdateClusterFailStatusMocked ¶
UpdateClusterFailStatusMocked test mocked function
func UpdateClusterMocked ¶
UpdateClusterMocked test mocked function
func UpdateNodePoolFailErrMocked ¶
UpdateNodePoolFailErrMocked test mocked function
func UpdateNodePoolFailJSONMocked ¶
UpdateNodePoolFailJSONMocked test mocked function
func UpdateNodePoolFailStatusMocked ¶
UpdateNodePoolFailStatusMocked 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