Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigFileName = "config.json" ConfigFileDir = ".ratify" PluginsFolder = "plugins" )
Variables ¶
This section is empty.
Functions ¶
func CreateFromConfig ¶
func CreateFromConfig(cf Config) ([]referrerstore.ReferrerStore, []verifier.ReferenceVerifier, policyprovider.PolicyProvider, error)
Returns created referer store, verifier, policyprovider objects from config
func GetDefaultPluginPath ¶
func GetDefaultPluginPath() string
func InitDefaultPaths ¶
func InitDefaultPaths()
Types ¶
type Config ¶
type Config struct { StoresConfig rsConfig.StoresConfig `json:"store,omitempty"` PoliciesConfig pcConfig.PoliciesConfig `json:"policy,omitempty"` VerifiersConfig vfConfig.VerifiersConfig `json:"verifier,omitempty"` ExecutorConfig exConfig.ExecutorConfig `json:"executor,omitempty"` // contains filtered or unexported fields }
type GetExecutor ¶
func GetExecutorAndWatchForUpdate ¶
func GetExecutorAndWatchForUpdate(configFilePath string) (GetExecutor, error)
Create a executor from configurationFile and setup config file watcher
Click to show internal directories.
Click to hide internal directories.