pathz

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package pathz is a gNSI pathz server.

Index

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

func (s *Server) CheckPermit(path *gpb.Path, user string, write bool) bool

CheckPermit implements the gNMI path auth interface, by using Probe.

func (*Server) Get

Probe implements the pathz Get RPC.

func (*Server) IsInitialized

func (s *Server) IsInitialized() bool

IsInitialized implements the gNMI path auth interface, by checking the active policy exists.

func (*Server) Probe

Probe implements the pathz Probe RPC.

func (*Server) Rotate

func (s *Server) Rotate(rs pathzpb.Pathz_RotateServer) error

Rotate implements the pathz Rotate RPC.

Jump to

Keyboard shortcuts

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