proxy

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: BSD-3-Clause Imports: 19 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 added in v0.2.1

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 added in v0.2.1

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

func (*Proxy) ServerInformation added in v0.2.1

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

func (*Proxy) Start added in v0.2.1

func (p *Proxy) Start()

func (*Proxy) UpdateDaemonSetMap added in v0.2.1

func (p *Proxy) UpdateDaemonSetMap() error

func (*Proxy) WatchDaemonSet added in v0.2.1

func (p *Proxy) WatchDaemonSet()

Jump to

Keyboard shortcuts

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