Documentation ¶
Overview ¶
Data bags provide a convenient way to store arbitrary data on the server.
Index ¶
- func GetList() []string
- func RawDataBagJson(data io.ReadCloser) map[string]interface{}
- type DataBag
- func (db *DataBag) Delete() error
- func (db *DataBag) DeleteDBItem(db_item_name string) error
- func (db *DataBag) GetName() string
- func (db *DataBag) NewDBItem(raw_dbag_item map[string]interface{}) (*DataBagItem, util.Gerror)
- func (db *DataBag) Save() error
- func (db *DataBag) URLType() string
- func (db *DataBag) UpdateDBItem(dbi_id string, raw_dbag_item map[string]interface{}) (*DataBagItem, error)
- type DataBagItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RawDataBagJson ¶
func RawDataBagJson(data io.ReadCloser) map[string]interface{}
Types ¶
type DataBag ¶
type DataBag struct { Name string DataBagItems map[string]DataBagItem }
func (*DataBag) DeleteDBItem ¶
func (*DataBag) NewDBItem ¶
func (db *DataBag) NewDBItem(raw_dbag_item map[string]interface{}) (*DataBagItem, util.Gerror)
func (*DataBag) UpdateDBItem ¶
func (db *DataBag) UpdateDBItem(dbi_id string, raw_dbag_item map[string]interface{}) (*DataBagItem, error)
type DataBagItem ¶
type DataBagItem struct { Name string `json:"name"` ChefType string `json:"chef_type"` JsonClass string `json:"json_class"` DataBagName string `json:"data_bag"` RawData map[string]interface{} `json:"raw_data"` }
func (*DataBagItem) DocId ¶
func (dbi *DataBagItem) DocId() string
Indexing functions for data bag items
func (*DataBagItem) Flatten ¶
func (dbi *DataBagItem) Flatten() []string
func (*DataBagItem) Index ¶
func (dbi *DataBagItem) Index() string
Click to show internal directories.
Click to hide internal directories.