pcapstorage

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetaFile = "pcap.json"
)

Variables

This section is empty.

Functions

func MigrateV3

func MigrateV3(u iosrc.URI, pcapuri iosrc.URI) error

Types

type Info

type Info struct {
	PcapURI  iosrc.URI
	PcapSize int64
	Span     nano.Span
}
type Search struct {
	*pcap.SearchReader
	io.Closer
}

type Store

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

func Load

func Load(ctx context.Context, u iosrc.URI) (*Store, error)

func New

func New(root iosrc.URI) *Store

func (*Store) Delete

func (s *Store) Delete(ctx context.Context) error

func (*Store) Empty

func (s *Store) Empty() bool

func (*Store) Info

func (s *Store) Info(ctx context.Context) (Info, error)

func (*Store) NewSearch

func (s *Store) NewSearch(ctx context.Context, req api.PcapSearch) (*Search, error)

NewSearch returns a *Search that streams all the packets meeting the provided search request. If pcaps are not supported in this Space, ErrPcapOpsNotSupported is returned.

func (*Store) PcapURI added in v0.21.0

func (s *Store) PcapURI() iosrc.URI

func (*Store) Update

func (s *Store) Update(ctx context.Context, pcapuri iosrc.URI, warningCh chan<- string) error

Jump to

Keyboard shortcuts

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