compose

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SquashErrors

func SquashErrors(errs []error) error

Types

type Client

type Client interface {
	GetAccount() (*composeapi.Account, []error)
	GetClusters() (*[]composeapi.Cluster, []error)
	GetClusterByName(string) (*composeapi.Cluster, []error)
	CreateDeployment(composeapi.DeploymentParams) (*composeapi.Deployment, []error)
	DeprovisionDeployment(string) (*composeapi.Recipe, []error)
	GetDeployment(string) (*composeapi.Deployment, []error)
	GetDeploymentByName(string) (*composeapi.Deployment, []error)
	GetDeployments() (*[]composeapi.Deployment, []error)
	CreateDeploymentWhitelist(string, composeapi.DeploymentWhitelistParams) (*composeapi.Recipe, []error)
	GetWhitelistForDeployment(string) ([]composeapi.DeploymentWhitelist, []error)
	GetRecipe(string) (*composeapi.Recipe, []error)
	SetScalings(composeapi.ScalingsParams) (*composeapi.Recipe, []error)
	GetBackupsForDeployment(string) (*[]composeapi.Backup, []error)
	RestoreBackup(composeapi.RestoreBackupParams) (*composeapi.Deployment, []error)
	PatchDeployment(composeapi.PatchDeploymentParams) (*composeapi.Deployment, []error)
	StartBackupForDeployment(deploymentid string) (*composeapi.Recipe, []error)
}

func NewClient

func NewClient(apiToken string) (Client, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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