proxy

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	ContainerDClient containerdv1.ContainerDCaptureServiceClient
	DiscoverClient   discover.DiscoverServiceClient
}

func NewEndpoint

func NewEndpoint(IP string) (*Endpoint, error)

type Proxy

type Proxy struct {
	k8s.UnimplementedK8SCaptureServiceServer
	discover.UnimplementedDiscoverServiceServer

	DaemonSetEndpoints map[string]*Endpoint
	// contains filtered or unexported fields
}

func NewInclusterProxy

func NewInclusterProxy() (*Proxy, error)

func NewOutclusterProxy

func NewOutclusterProxy(kubeconfig string) (*Proxy, error)

func (*Proxy) Capture

At the moment we only use containerD api Need to use generic OpenContainerInterface later

func (*Proxy) ServerInformation

func (p *Proxy) ServerInformation(context.Context, *discover.Empty) (*types.ServerInfo, error)

func (*Proxy) Start

func (p *Proxy) Start()

func (*Proxy) UpdateDaemonSetMap

func (p *Proxy) UpdateDaemonSetMap() error

func (*Proxy) WatchDaemonSet

func (p *Proxy) WatchDaemonSet()

Jump to

Keyboard shortcuts

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