flipt-io / cup

Git Contribution Automation
https://cup.flipt.io
Apache License 2.0
76 stars 1 forks source link

Implement local.FilesystemStore #9

Closed GeorgeMac closed 1 year ago

GeorgeMac commented 1 year ago

This issues tracks the work required to build a local FilesystemStore for the pkg/api package.

This source is primarily useful for local evaluation / development experience. This storage implementation works directly on the underlying target filesystem. There are no proposals made during an update, just direct and immediate effect change.

The implementation should be super straight-forward and we can simply just pass the path to the location on the actual filesystem.

The store should be configurable such that, in theory, multiple directories could be named in configuration.

sources:
  flipt:
    type: local
    local:
      path: "/projects/flipt"
  cup:
    type: local
    local:
      path: "/projects/cup"

Ultimately, these manifest as API Server sources:

/apis/flipt/...

/apis/cup/...