persistent

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package persistent implements a persistent deployment repository.

This package is currently implemented using MondoDB, but there is no guarantee that it will continue to be implemented using MondoDB in the future.

Index

Constants

View Source
const (
	DatabaseName              = "deployment_manager"
	DeploymentsCollectionName = "deployments_collection"
	ManifestsCollectionName   = "manifests_collection"
	InstancesCollectionName   = "instances_collection"
)

Constants used to configure the MongoDB database.

Variables

This section is empty.

Functions

func NewRepository

func NewRepository(server string) (repository.Repository, error)

NewRepository returns a new persistent repository. Its lifetime is decopuled from the lifetime of the current process. When the process dies, its contents will not be affected.

The server argument provides connection information for the repository server. It is parsed as a URL, and the username, password, host and port, if provided, are used to create the connection string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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