plugins

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: BSD-3-Clause Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.5.9

type Config struct {
	CodeBaseDir string // code base directory
	ProjectID   string
}

type ConfigDiagnostics added in v0.5.9

type ConfigDiagnostics struct {
	Config      *Config                           `json:"Config,omitempty"`
	Diagnostics []*diagnostics.SecurityDiagnostic `json:"Diagnostics,omitempty"`
}

type DiagnosticTransformer

type DiagnosticTransformer interface {
	Transform(*Config, ...*diagnostics.SecurityDiagnostic) []*diagnostics.SecurityDiagnostic
}

type DiagnosticTransformerPlugin added in v0.6.1

type DiagnosticTransformerPlugin interface {
	DiagnosticTransformer
	ShutDown() error
}

func NewDiagnosticTransformerPlugin added in v0.5.9

func NewDiagnosticTransformerPlugin(path string) (DiagnosticTransformerPlugin, io.Reader, error)

creates and runs a new diagnostic transformer plugin

type MicroService added in v0.5.9

type MicroService struct {
	Port       int
	HTTPServer *http.Server
	// contains filtered or unexported fields
}

func RegisterDiagnosticTransformer added in v0.5.9

func RegisterDiagnosticTransformer(transformer DiagnosticTransformer) (micro MicroService, err error)

func (*MicroService) ShutDown added in v0.5.9

func (m *MicroService) ShutDown()

shut down server and service

func (*MicroService) Start added in v0.5.9

func (m *MicroService) Start()

Jump to

Keyboard shortcuts

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