Documentation ¶
Index ¶
- func CacheConfiguration() error
- func CheckSpec(spec *pb.ChaincodeSpec) error
- func SecurityEnabled() bool
- 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.
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
func (*Devops) Login ¶
Login establishes the security context with the Devops service
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, *empty.Empty) (*pb.ServerStatus, error)
GetStatus reports the status of the server
func (*ServerAdmin) StartServer ¶
func (*ServerAdmin) StartServer(context.Context, *empty.Empty) (*pb.ServerStatus, error)
StartServer starts the server
func (*ServerAdmin) StopServer ¶
func (*ServerAdmin) StopServer(context.Context, *empty.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. |