Skip to content
Go JavaScript Other
Branch: master
Clone or download
carolynvs Add crud.BackingStore (#176)
* Add crud.BackingStore

BackingStore is a utility for people developing CRUD stores that makes
it easier for them to do late binding / initialization when the
list/save/delete/read methods are called, instead of in the constructor,
when you may not be ready to connect to databases, plugins, etc or returning errors.

Signed-off-by: Carolyn Van Slyck <carolyn.vanslyck@microsoft.com>

* Finish comment sentence

Signed-off-by: Carolyn Van Slyck <carolyn.vanslyck@microsoft.com>

* Incorporate review feedback

Signed-off-by: Carolyn Van Slyck <carolyn.vanslyck@microsoft.com>

* Take into account item type in the backing store

Now that #175 has been merged into master, update BackingStore to
account for bucketing by item type (credentials/claims).

Signed-off-by: Carolyn Van Slyck <carolyn.vanslyck@microsoft.com>
Latest commit 8ae1722 Feb 6, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
action Rename imports to cnabio Dec 6, 2019
bundle Rename deislabs to cnabio Dec 24, 2019
claim Add crud.BackingStore (#176) Feb 6, 2020
credentials Add crud.BackingStore (#176) Feb 6, 2020
driver Use WaitConditionNotRunning Jan 9, 2020
imagestore Rename imports to cnabio Dec 6, 2019
packager Rename imports to cnabio Dec 6, 2019
secrets Make CredentialStrategy generic Jan 29, 2020
testdata Rename deislabs to cnabio Dec 24, 2019
utils/crud Add crud.BackingStore (#176) Feb 6, 2020
.gitignore test(docker, kubernetes): execute integration tests Dec 7, 2019
CODEOWNERS Remove youreddy as core maintainer Jan 31, 2020
CONTRIBUTING.md Rename imports to cnabio Dec 6, 2019
GOVERNANCE.md Rename deislabs to cnabio Dec 24, 2019
LICENSE Change license text to The CNAB Authors Jan 31, 2020
Makefile Pin golang.org/x/sys to fix windows compilation Jan 6, 2020
NOTICE implement `duffle push` and `duffle pull` (#231) Oct 12, 2018
README.md Rename deislabs to cnabio Dec 24, 2019
azure-pipelines.yml Pin golang.org/x/sys to fix windows compilation Jan 6, 2020
brigade.js Pin golang.org/x/sys to fix windows compilation Jan 6, 2020
e2e-kind.sh chore: use atomic coverage mode Dec 8, 2019
go.mod
go.sum Pin golang.org/x/sys to fix windows compilation Jan 6, 2020
golangci.yml Keep only pkg and update import path from deislabs/duffle Mar 27, 2019

README.md

cnab-go

Build Status Azure Pipelines coverage

cnab-go is a library for building CNAB clients. It provides the building blocks relevant to the CNAB specification so that you may build tooling without needing to implement all aspects of the CNAB specification.

cnab-go is currently being used by Docker App, Duffle, and Porter. If you'd like to see your CNAB project listed here, please submit a PR.

Community

cnab-go is maintained by the CNAB community. We sometimes discuss cnab-go issues during the bi-weekly CNAB community meeting, but we encourage open communication via our issue queue and via PRs. If you are interested in contributing to cnab-go, please refer to our contributing guidelines.

Development

Getting the code

Cloning this repository and change directory to it:

$ go get -d github.com/cnabio/cnab-go/...
$ cd $(go env GOPATH)/src/github.com/cnabio/cnab-go

Prerequisites

You need:

  • make
  • Go

Get dependencies

Retrieve all needed packages to start developing. This will download the binaries for the linter, dep and go imports in the end it will run dep ensure to download all the go package dependencies

$ make bootstrap

Building, testing and linting

Compile all the code:

$ make build

Run unit tests:

$ make test

Run integration tests:

Note: The integration tests use a local docker daemon to create containers. Please ensure you have one configured before running the tests.

$ make integration-test

This will only run the linter to ensure the code meet the standard. It does not format the code

$ make lint
You can’t perform that action at this time.