plugininterface

package
v0.0.0-...-abb798d Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vulnchecker

type Vulnchecker interface {
	Scan(i *image.Image) (*types.Report, error)
}

type VulncheckerPlugin

type VulncheckerPlugin struct {
	// Impl Injection
	Impl Vulnchecker
}

func (VulncheckerPlugin) Client

func (VulncheckerPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (*VulncheckerPlugin) Server

func (p *VulncheckerPlugin) Server(*plugin.MuxBroker) (interface{}, error)

type VulncheckerRPC

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

Here is an implementation that talks over RPC

func (*VulncheckerRPC) Scan

func (g *VulncheckerRPC) Scan(i *image.Image) (*types.Report, error)

type VulncheckerRPCServer

type VulncheckerRPCServer struct {
	// This is the real implementation
	Impl Vulnchecker
}

Here is the RPC server that VulncheckerRPC talks to, conforming to the requirements of net/rpc

func (*VulncheckerRPCServer) Scan

func (s *VulncheckerRPCServer) Scan(args interface{}, resp *any) error

Jump to

Keyboard shortcuts

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