Documentation ¶
Index ¶
- func CacheConfiguration() error
- func CheckSpec(spec *pb.ChaincodeSpec) error
- func DefaultLoggingLevel() logging.Level
- func LoggingInit(command string)
- func SecurityEnabled() bool
- func SetupTestConfig()
- func SetupTestLogging()
- type Config
- type Devops
- func (*Devops) Build(context context.Context, spec *pb.ChaincodeSpec) (*pb.ChaincodeDeploymentSpec, error)
- func (d *Devops) Deploy(ctx context.Context, spec *pb.ChaincodeSpec) (*pb.ChaincodeDeploymentSpec, error)
- func (d *Devops) EXP_ExecuteWithBinding(ctx context.Context, executeWithBinding *pb.ExecuteWithBinding) (*pb.Response, error)
- func (d *Devops) EXP_GetApplicationTCert(ctx context.Context, secret *pb.Secret) (*pb.Response, error)
- func (d *Devops) EXP_PrepareForTx(ctx context.Context, secret *pb.Secret) (*pb.Response, error)
- func (d *Devops) EXP_ProduceSigma(ctx context.Context, sigmaInput *pb.SigmaInput) (*pb.Response, error)
- func (d *Devops) Invoke(ctx context.Context, chaincodeInvocationSpec *pb.ChaincodeInvocationSpec) (*pb.Response, error)
- func (d *Devops) Login(ctx context.Context, secret *pb.Secret) (*pb.Response, error)
- func (d *Devops) Query(ctx context.Context, chaincodeInvocationSpec *pb.ChaincodeInvocationSpec) (*pb.Response, error)
- type PeerConnectionFSM
- type ServerAdmin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheConfiguration ¶
func CacheConfiguration() error
CacheConfiguration caches configuration settings so that reading the yaml file can be avoided on future requests
func CheckSpec ¶
func CheckSpec(spec *pb.ChaincodeSpec) error
CheckSpec to see if chaincode resides within current package capture for language.
func DefaultLoggingLevel ¶
func DefaultLoggingLevel() logging.Level
DefaultLoggingLevel returns the fallback value for loggers to use if parsing fails
func LoggingInit ¶
func LoggingInit(command string)
LoggingInit is a 'hook' called at the beginning of command processing to parse logging-related options specified either on the command-line or in config files. Command-line options take precedence over config file options, and can also be passed as suitably-named environment variables. To change module logging levels at runtime call `logging.SetLevel(level, module)`. To debug this routine include logging=debug as the first term of the logging specification.
func SecurityEnabled ¶
func SecurityEnabled() bool
SecurityEnabled returns true if security is enabled
func SetupTestConfig ¶
func SetupTestConfig()
SetupTestConfig setup the config during test execution
func SetupTestLogging ¶
func SetupTestLogging()
SetupTestLogging setup the logging during test execution
Types ¶
type Devops ¶
type Devops struct {
// contains filtered or unexported fields
}
Devops implementation of Devops services
func NewDevopsServer ¶
func NewDevopsServer(coord peer.MessageHandlerCoordinator) *Devops
NewDevopsServer creates and returns a new Devops server instance.
func (*Devops) Build ¶
func (*Devops) Build(context context.Context, spec *pb.ChaincodeSpec) (*pb.ChaincodeDeploymentSpec, error)
Build builds the supplied chaincode image
func (*Devops) Deploy ¶
func (d *Devops) Deploy(ctx context.Context, spec *pb.ChaincodeSpec) (*pb.ChaincodeDeploymentSpec, error)
Deploy deploys the supplied chaincode image to the validators through a transaction
func (*Devops) EXP_ExecuteWithBinding ¶
func (d *Devops) EXP_ExecuteWithBinding(ctx context.Context, executeWithBinding *pb.ExecuteWithBinding) (*pb.Response, error)
EXP_ExecuteWithBinding executes a transaction with a specific binding/TXHandler
func (*Devops) EXP_GetApplicationTCert ¶
func (d *Devops) EXP_GetApplicationTCert(ctx context.Context, secret *pb.Secret) (*pb.Response, error)
EXP_GetApplicationTCert retrieves an application TCert for the supplied user
func (*Devops) EXP_PrepareForTx ¶
EXP_PrepareForTx prepares a binding/TXHandler pair to be used in subsequent TX
func (*Devops) EXP_ProduceSigma ¶
func (d *Devops) EXP_ProduceSigma(ctx context.Context, sigmaInput *pb.SigmaInput) (*pb.Response, error)
EXP_ProduceSigma produces a sigma as []byte and returns in response
func (*Devops) Invoke ¶
func (d *Devops) Invoke(ctx context.Context, chaincodeInvocationSpec *pb.ChaincodeInvocationSpec) (*pb.Response, error)
Invoke performs the supplied invocation on the specified chaincode through a transaction
type PeerConnectionFSM ¶
PeerConnectionFSM example FSM for demonstration purposes.
func NewPeerConnectionFSM ¶
func NewPeerConnectionFSM(to string) *PeerConnectionFSM
NewPeerConnectionFSM creates and returns a PeerConnectionFSM
type ServerAdmin ¶
type ServerAdmin struct { }
ServerAdmin implementation of the Admin service for the Peer
func NewAdminServer ¶
func NewAdminServer() *ServerAdmin
NewAdminServer creates and returns a Admin service instance.
func (*ServerAdmin) GetStatus ¶
func (*ServerAdmin) GetStatus(context.Context, *google_protobuf.Empty) (*pb.ServerStatus, error)
GetStatus reports the status of the server
func (*ServerAdmin) StartServer ¶
func (*ServerAdmin) StartServer(context.Context, *google_protobuf.Empty) (*pb.ServerStatus, error)
StartServer starts the server
func (*ServerAdmin) StopServer ¶
func (*ServerAdmin) StopServer(context.Context, *google_protobuf.Empty) (*pb.ServerStatus, error)
StopServer stops the server
Directories ¶
Path | Synopsis |
---|---|
shim
Package shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes.
|
Package shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes. |
attributes/proto
Package protos is a generated protocol buffer package.
|
Package protos is a generated protocol buffer package. |