Versions in this module Expand all Collapse all v1 v1.2.1 Mar 8, 2016 Changes in this version + func TestRepositoryCreateDeploymentWorks(t *testing.T, r Repository) + func TestRepositoryDeleteDeploymentWorksForget(t *testing.T, r Repository) + func TestRepositoryDeleteDeploymentWorksNoForget(t *testing.T, r Repository) + func TestRepositoryDeleteFailsWithNonExistentDeployment(t *testing.T, r Repository) + func TestRepositoryDeleteWorksWithNoLatestManifest(t *testing.T, r Repository) + func TestRepositoryGetFailsWithNonExistentDeployment(t *testing.T, r Repository) + func TestRepositoryListEmpty(t *testing.T, r Repository) + func TestRepositoryMultipleManifestsWorks(t *testing.T, r Repository) + func TestRepositoryTypeInstances(t *testing.T, r Repository) + type Repository interface + AddManifest func(manifest *common.Manifest) error + AddTypeInstances func(instances map[string][]*common.TypeInstance) error + ClearTypeInstancesForDeployment func(deploymentName string) error + Close func() + CreateDeployment func(name string) (*common.Deployment, error) + DeleteDeployment func(name string, forget bool) (*common.Deployment, error) + GetDeployment func(name string) (*common.Deployment, error) + GetLatestManifest func(deploymentName string) (*common.Manifest, error) + GetManifest func(deploymentName string, manifestName string) (*common.Manifest, error) + GetTypeInstances func(typeName string) ([]*common.TypeInstance, error) + GetValidDeployment func(name string) (*common.Deployment, error) + ListDeployments func() ([]common.Deployment, error) + ListManifests func(deploymentName string) (map[string]*common.Manifest, error) + ListTypes func() ([]string, error) + SetDeploymentState func(name string, state *common.DeploymentState) error + SetManifest func(manifest *common.Manifest) error