Documentation ¶
Index ¶
- type FakeComposeClient
- func (fcc *FakeComposeClient) CreateDeployment(deploymentParams composeapi.DeploymentParams) (*composeapi.Deployment, []error)
- func (fcc *FakeComposeClient) DeprovisionDeployment(deploymentID string) (*composeapi.Recipe, []error)
- func (fcc *FakeComposeClient) GetAccount() (*composeapi.Account, []error)
- func (fcc *FakeComposeClient) GetClusterByName(clusterName string) (*composeapi.Cluster, []error)
- func (fcc *FakeComposeClient) GetClusters() (*[]composeapi.Cluster, []error)
- func (fcc *FakeComposeClient) GetDeployment(deploymentID string) (*composeapi.Deployment, []error)
- func (fcc *FakeComposeClient) GetDeploymentByName(deploymentName string) (*composeapi.Deployment, []error)
- func (fcc *FakeComposeClient) GetDeployments() (*[]composeapi.Deployment, []error)
- func (fcc *FakeComposeClient) GetRecipe(recipeID string) (*composeapi.Recipe, []error)
- func (fcc *FakeComposeClient) SetScalings(scalingParams composeapi.ScalingsParams) (*composeapi.Recipe, []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeComposeClient ¶
type FakeComposeClient struct { // Error to be returned from any call if set. GlobalError error Account composeapi.Account Clusters []composeapi.Cluster Deployments []composeapi.Deployment CreateDeploymentParams composeapi.DeploymentParams DeprovisionDeploymentID string SetScalingsParams composeapi.ScalingsParams GetRecipeID string GetRecipeErr error GetRecipeStatus string }
func New ¶ added in v0.3.0
func New() *FakeComposeClient
func (*FakeComposeClient) CreateDeployment ¶
func (fcc *FakeComposeClient) CreateDeployment(deploymentParams composeapi.DeploymentParams) (*composeapi.Deployment, []error)
func (*FakeComposeClient) DeprovisionDeployment ¶
func (fcc *FakeComposeClient) DeprovisionDeployment(deploymentID string) (*composeapi.Recipe, []error)
func (*FakeComposeClient) GetAccount ¶ added in v0.3.0
func (fcc *FakeComposeClient) GetAccount() (*composeapi.Account, []error)
func (*FakeComposeClient) GetClusterByName ¶ added in v0.3.0
func (fcc *FakeComposeClient) GetClusterByName(clusterName string) (*composeapi.Cluster, []error)
func (*FakeComposeClient) GetClusters ¶ added in v0.3.0
func (fcc *FakeComposeClient) GetClusters() (*[]composeapi.Cluster, []error)
func (*FakeComposeClient) GetDeployment ¶
func (fcc *FakeComposeClient) GetDeployment(deploymentID string) (*composeapi.Deployment, []error)
func (*FakeComposeClient) GetDeploymentByName ¶ added in v0.3.0
func (fcc *FakeComposeClient) GetDeploymentByName(deploymentName string) (*composeapi.Deployment, []error)
func (*FakeComposeClient) GetDeployments ¶
func (fcc *FakeComposeClient) GetDeployments() (*[]composeapi.Deployment, []error)
func (*FakeComposeClient) GetRecipe ¶
func (fcc *FakeComposeClient) GetRecipe(recipeID string) (*composeapi.Recipe, []error)
func (*FakeComposeClient) SetScalings ¶
func (fcc *FakeComposeClient) SetScalings(scalingParams composeapi.ScalingsParams) (*composeapi.Recipe, []error)
Click to show internal directories.
Click to hide internal directories.