cni

package
v0.0.0-...-c316130 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CNIServerSocket = "/var/run/calico/cni-server.sock"
)

Variables

This section is empty.

Functions

func NewCniServer

func NewCniServer(log *log.Entry, t, uri string, serveFunc func() error) (types.Server, error)

Types

type CniServer

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

infra-agent Server information.

func (*CniServer) Add

func (s *CniServer) Add(ctx context.Context, in *pb.AddRequest) (*pb.AddReply, error)

func (*CniServer) Check

Check is used to check the status of GRPC service

func (*CniServer) Del

func (s *CniServer) Del(ctx context.Context, in *pb.DelRequest) (*pb.DelReply, error)

func (*CniServer) GetName

func (s *CniServer) GetName() string

func (*CniServer) Start

func (s *CniServer) Start(t *tomb.Tomb) error

func (*CniServer) StopServer

func (s *CniServer) StopServer()

func (*CniServer) Watch

Watch was created to fulfil interface requirements, unused

Jump to

Keyboard shortcuts

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