Documentation
¶
Overview ¶
Package policy locates and parses a JSON policy file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶ added in v0.15.0
Load reads the specified policy file. If pubkey and signature files are also set, then load them as well. Note that the pubkey and signature files need to be set together (i.e., either they are both set or neither is set).
func Verify ¶ added in v0.15.0
func Verify() error
Verify verifies the policy file using the public key and signature.
func VerifyPubkey ¶ added in v0.15.0
VerifyPubkey verifies the public key file against the provided hash.
Types ¶
Click to show internal directories.
Click to hide internal directories.