Documentation
¶
Overview ¶
Package pathz is a gNSI pathz server.
Index ¶
- type Server
- func (s *Server) CheckPermit(path *gpb.Path, user string, write bool) bool
- func (s *Server) Get(_ context.Context, req *pathzpb.GetRequest) (*pathzpb.GetResponse, error)
- func (s *Server) IsInitialized() bool
- func (s *Server) Probe(_ context.Context, req *pathzpb.ProbeRequest) (*pathzpb.ProbeResponse, error)
- func (s *Server) Rotate(rs pathzpb.Pathz_RotateServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { pathzpb.UnimplementedPathzServer // contains filtered or unexported fields }
Server implements the pathz gRPC server.
func (*Server) CheckPermit ¶
CheckPermit implements the gNMI path auth interface, by using Probe.
func (*Server) Get ¶
func (s *Server) Get(_ context.Context, req *pathzpb.GetRequest) (*pathzpb.GetResponse, error)
Probe implements the pathz Get RPC.
func (*Server) IsInitialized ¶
IsInitialized implements the gNMI path auth interface, by checking the active policy exists.
func (*Server) Probe ¶
func (s *Server) Probe(_ context.Context, req *pathzpb.ProbeRequest) (*pathzpb.ProbeResponse, error)
Probe implements the pathz Probe RPC.
Click to show internal directories.
Click to hide internal directories.