You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pipeline.go
    path of file: ./repos/gaia/store
    
    the code of the file until where you have to start completion: package store

import (
	"encoding/json"

	bolt "go.etcd.io/bbolt"

	"github.com/gaia-pipeline/gaia"
)

// CreatePip
    
func (s *BoltStore) CreatePipelinePut(p *gaia.CreatePipeline) error {
	return s.db.Update(func(tx *bolt.Tx) error {
		// Get bucket
		b := tx.Bucket(createPipelineBucket)

		// Marshal pipeline object
		m, err := json.Marshal(p)
		if err != nil {
			return err
		}

		// Put pipeline
		return b.Put([]byte(p.ID), m)
	})
}