plugin

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "aserto_decision_log"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled    bool       `json:"enabled"`
	PolicyInfo PolicyInfo `json:"policy_info"`
}

type DecisionLogsPlugin

type DecisionLogsPlugin struct {
	// contains filtered or unexported fields
}

func Lookup

func (*DecisionLogsPlugin) Log

func (plugin *DecisionLogsPlugin) Log(ctx context.Context, d *api.Decision) error

func (*DecisionLogsPlugin) Reconfigure

func (plugin *DecisionLogsPlugin) Reconfigure(ctx context.Context, config interface{})

func (*DecisionLogsPlugin) Start

func (plugin *DecisionLogsPlugin) Start(ctx context.Context) error

func (*DecisionLogsPlugin) Stop

func (plugin *DecisionLogsPlugin) Stop(ctx context.Context)

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(logger decisionlog.DecisionLogger) Factory

func (Factory) New

func (f Factory) New(m *plugins.Manager, config interface{}) plugins.Plugin

func (Factory) Validate

func (Factory) Validate(m *plugins.Manager, config []byte) (interface{}, error)

type PolicyInfo

type PolicyInfo struct {
	PolicyID        string `json:"policy_id"`
	RegistryService string `json:"registry_service"`
	RegistryImage   string `json:"registry_image"`
	RegistryTag     string `json:"registry_tag"`
	Digest          string `json:"digest"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL