package manifest

import "github.com/open-policy-agent/opa/internal/manifest"

Package manifest implements helper functions for the stored manifest.

Index

Functions

func ReadBundleRevision

func ReadBundleRevision(ctx context.Context, store storage.Store, txn storage.Transaction) (string, error)

ReadBundleRevision returns the revision in the currently activated bundle. If there is no activated bundle, ths function will return storage NotFound error.

func ReadBundleRoots

func ReadBundleRoots(ctx context.Context, store storage.Store, txn storage.Transaction) ([]string, error)

ReadBundleRoots returns the roots specified in the currently activated bundle. If there is no activated bundle, this function will return storage NotFound error.

func Write

Write the manifest into the storage. This function is called when the bundle is activated.

Source Files

manifest.go

Version
v0.10.4
Published
Feb 19, 2019
Platform
js/wasm
Imports
5 packages
Last checked
8 seconds ago

Tools for package owners.