pansecurityadapter

package
v0.0.0-...-5fb02f9 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0, BSD-3-Clause, Apache-2.0, + 1 more Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomData

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

type MyGrpcAdapter

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

MyGrpcAdapter supports metric template.

func (*MyGrpcAdapter) Addr

func (s *MyGrpcAdapter) Addr() string

Addr returns the listening address of the server

func (*MyGrpcAdapter) Close

func (s *MyGrpcAdapter) Close() error

Close gracefully shuts down the server; used for testing

func (*MyGrpcAdapter) HandleAuthorization

HandleLogEntry records log entries

func (*MyGrpcAdapter) HandleLogEntry

HandleLogEntry records log entries

func (*MyGrpcAdapter) Run

func (s *MyGrpcAdapter) Run(shutdown chan error)

Run starts the server run

type SecurityPolicy

type SecurityPolicy struct {
	SourceService        string `json:"source_service"`
	DestinationService   string `json:"destination_service"`
	SourceNamespace      string `json:"source_namespace"`
	DestinationNamespace string `json:"destination_namespace"`
	Protocol             string `json:protocol`
	Action               string `json:action`
}

Security Policy definition

type Server

type Server interface {
	Addr() string
	Close() error
	Run(shutdown chan error)
}

Server is basic server interface

func NewMyGrpcAdapter

func NewMyGrpcAdapter(addr string) (Server, error)

NewMyGrpcAdapter creates a new adapter that listens at provided port.

Directories

Path Synopsis
Package config is a generated protocol buffer package.
Package config is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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