fakes

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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