doc: documentation updates

This commit is contained in:
Andrey Melnikov
2020-06-22 12:21:30 -07:00
parent 8cf8436afc
commit 0d738fe2ad
2 changed files with 3 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ func (cw *CronWorkflow) GetParametersFromWorkflowSpecJson() ([]byte, error) {
return parametersJson, nil
}
// AddToManifestSpec updates the CronWorkflow's manifest by setting the input manifest under the specified key
func (cw *CronWorkflow) AddToManifestSpec(key, manifest string) error {
currentManifestMapping, err := mapping.NewFromYamlString(cw.Manifest)
if err != nil {

View File

@@ -5,10 +5,12 @@ import (
"github.com/jmoiron/sqlx"
)
// DB represents a database connection. It wraps a sqlx.DB to provide convenience methods.
type DB struct {
sqlx.DB
}
// NewDB creates a new DB using an existing sqlx.DB connection.
func NewDB(db *sqlx.DB) *DB {
return &DB{
*db,