admin

package
v1.4.6-gm Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControlEvaluator

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
}

AccessControlEvaluator evaluates whether the creator of the given SignedData is eligible of using the admin service

type ServerAdmin

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

ServerAdmin implementation of the Admin service for the Peer

func NewAdminServer

func NewAdminServer(ace AccessControlEvaluator) *ServerAdmin

NewAdminServer creates and returns a Admin service instance.

func (*ServerAdmin) GetLogSpec

func (s *ServerAdmin) GetLogSpec(ctx context.Context, env *common.Envelope) (*pb.LogSpecResponse, error)

func (*ServerAdmin) GetModuleLogLevel

func (s *ServerAdmin) GetModuleLogLevel(ctx context.Context, env *common.Envelope) (*pb.LogLevelResponse, error)

func (*ServerAdmin) GetStatus

func (s *ServerAdmin) GetStatus(ctx context.Context, env *common.Envelope) (*pb.ServerStatus, error)

func (*ServerAdmin) RevertLogLevels

func (s *ServerAdmin) RevertLogLevels(ctx context.Context, env *common.Envelope) (*empty.Empty, error)

func (*ServerAdmin) SetLogSpec

func (s *ServerAdmin) SetLogSpec(ctx context.Context, env *common.Envelope) (*pb.LogSpecResponse, error)

func (*ServerAdmin) SetModuleLogLevel

func (s *ServerAdmin) SetModuleLogLevel(ctx context.Context, env *common.Envelope) (*pb.LogLevelResponse, error)

func (*ServerAdmin) StartServer

func (s *ServerAdmin) StartServer(ctx context.Context, env *common.Envelope) (*pb.ServerStatus, error)

Jump to

Keyboard shortcuts

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