Documentation ¶
Index ¶
- Constants
- func NewCniServer(log *log.Entry, t, uri string, serveFunc func() error) (types.Server, error)
- type CniServer
- func (s *CniServer) Add(ctx context.Context, in *pb.AddRequest) (*pb.AddReply, error)
- func (s *CniServer) Check(ctx context.Context, in *healthgrpc.HealthCheckRequest) (*healthgrpc.HealthCheckResponse, error)
- func (s *CniServer) Del(ctx context.Context, in *pb.DelRequest) (*pb.DelReply, error)
- func (s *CniServer) GetName() string
- func (s *CniServer) Start(t *tomb.Tomb) error
- func (s *CniServer) StopServer()
- func (s *CniServer) Watch(in *healthgrpc.HealthCheckRequest, _ healthgrpc.Health_WatchServer) error
Constants ¶
View Source
const (
CNIServerSocket = "/var/run/calico/cni-server.sock"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CniServer ¶
type CniServer struct {
// contains filtered or unexported fields
}
infra-agent Server information.
func (*CniServer) Check ¶
func (s *CniServer) Check(ctx context.Context, in *healthgrpc.HealthCheckRequest) (*healthgrpc.HealthCheckResponse, error)
Check is used to check the status of GRPC service
func (*CniServer) StopServer ¶
func (s *CniServer) StopServer()
func (*CniServer) Watch ¶
func (s *CniServer) Watch(in *healthgrpc.HealthCheckRequest, _ healthgrpc.Health_WatchServer) error
Watch was created to fulfil interface requirements, unused
Click to show internal directories.
Click to hide internal directories.