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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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