Skip to content

cb-store is a common repository for managing Meta Info of Cloud-Barista.

License

Notifications You must be signed in to change notification settings

cloud-barista/cb-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

13c2420 · Dec 19, 2024
Mar 17, 2021
Sep 6, 2022
Jun 14, 2024
Jun 3, 2022
Aug 23, 2019
Sep 6, 2022
Oct 25, 2022
Jun 5, 2022
Oct 1, 2019
Nov 21, 2022
Feb 14, 2021
Feb 8, 2021
Sep 6, 2022
Sep 29, 2020
Dec 19, 2024
Dec 19, 2024
Sep 6, 2022

Repository files navigation

cb-store

GitHub go.mod Go version GoDoc    Release Version License

cb-store is a common repository for managing Meta Info of Cloud-Barista. You can choose NUTSDB or ETCD for repository of cb-store.

[NOTE]
cb-store is currently under development.
So, we do not recommend using the current release in production.
Please note that the functionalities of cb-store are not stable and secure yet.
If you have any difficulties in using cb-store, please let us know.
(Open an issue or Join the cloud-barista Slack)

1. install cb-store library pkg

2. example & test

  • example: https://github.com/cloud-barista/cb-store/blob/master/test/test.go

  • install ETCD (Client V3.0): When using ETCD

  • $ cd test

  • $ go run test.go

    =========================== Put(...)
    </> root
    </key1> value
    </key1> value1
    </key1/> value2
    </key1/%> value3%
    </key1/key2/key3> value4
    </space key> space value5
    </newline
     key> newline
     value6
    </a/b/c/123/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u> value/value/value
    ===========================
    =========================== Get("/")
    </> root
    ===========================
    =========================== Get("space key")
    </space key> space value5
    ===========================
    =========================== GetList("/", Ascending)
    </> root
    </a/b/c/123/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u> value/value/value
    </key1> value1
    </key1/> value2
    </key1/%> value3%
    </key1/key2/key3> value4
    </newline
     key> newline
     value6
    </space key> space value5
    ===========================
    =========================== GetList("/", Descending)
    </space key> space value5
    </newline
     key> newline
     value6
    </key1/key2/key3> value4
    </key1/%> value3%
    </key1/> value2
    </key1> value1
    </a/b/c/123/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u> value/value/value
    </> root