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.
Click to show internal directories.
Click to hide internal directories.