Documentation ¶
Index ¶
Constants ¶
View Source
const ( DB_NAME = "DeploymentManagerDB" APP_COLLECTION = "APP" SERVICES_FIELD = "services" IMAGE_FIELD = "image" DB_URL = "127.0.0.1:27017" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface { // AddApp insert a deployed application information. AddApp(appId string, description []byte) error // GetApp returns single document from db related to app. GetApp(appId string) (map[string]interface{}, error) // GetApps returns all matches for the query-string which is passed in call to function. GetApps(queryOptional ...map[string]interface{}) ([]map[string]interface{}, error) // DeleteApp delete a deployed application information. DeleteApp(appId string) error }
Interface of App model's operations.
type Executor ¶
type Executor struct { }
func (Executor) AddApp ¶
AddApp insert a deployed application information. if succeed to add, return app information as map. otherwise, return error.
func (Executor) DeleteApp ¶
DeleteApp delete a deployed application information. if succeed to delete, return error as nil. otherwise, return error.
Click to show internal directories.
Click to hide internal directories.