AccessControlEvaluator evaluates whether the creator of the given SignedData is eligible of using the admin service
type AccessControlEvaluator interface { // Evaluate evaluates the eligibility of the creator of the given SignedData // for being serviced by the admin service Evaluate(signatureSet []*common.SignedData) error }
ServerAdmin implementation of the Admin service for the Peer
type ServerAdmin struct {
// contains filtered or unexported fields
}
func NewAdminServer(ace AccessControlEvaluator) *ServerAdmin
NewAdminServer creates and returns a Admin service instance.
func (s *ServerAdmin) GetLogSpec(ctx context.Context, env *common.Envelope) (*pb.LogSpecResponse, error)
func (s *ServerAdmin) GetModuleLogLevel(ctx context.Context, env *common.Envelope) (*pb.LogLevelResponse, error)
func (s *ServerAdmin) GetStatus(ctx context.Context, env *common.Envelope) (*pb.ServerStatus, error)
func (s *ServerAdmin) RevertLogLevels(ctx context.Context, env *common.Envelope) (*empty.Empty, error)
func (s *ServerAdmin) SetLogSpec(ctx context.Context, env *common.Envelope) (*pb.LogSpecResponse, error)
func (s *ServerAdmin) SetModuleLogLevel(ctx context.Context, env *common.Envelope) (*pb.LogLevelResponse, error)
func (s *ServerAdmin) StartServer(ctx context.Context, env *common.Envelope) (*pb.ServerStatus, error)