Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2016 Changes in this version + var ErrNotFound = errors.New("openchain: resource not found") + func CheckSpec(spec *pb.ChaincodeSpec) error + func GetRootNode() (string, error) + func LoggingInit(command string) + func SetupTestConfig() + func SetupTestLogging() + type Config struct + type Devops struct + func NewDevopsServer(coord peer.MessageHandlerCoordinator) *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) 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 struct + FSM *fsm.FSM + To string + func NewPeerConnectionFSM(to string) *PeerConnectionFSM + type PeerInfo interface + GetPeers func() (*pb.PeersMessage, error) + type ServerAdmin struct + func NewAdminServer() *ServerAdmin + func (*ServerAdmin) GetStatus(context.Context, *google_protobuf.Empty) (*pb.ServerStatus, error) + func (*ServerAdmin) StartServer(context.Context, *google_protobuf.Empty) (*pb.ServerStatus, error) + func (*ServerAdmin) StopServer(context.Context, *google_protobuf.Empty) (*pb.ServerStatus, error) + type ServerOpenchain struct + func NewOpenchainServer() (*ServerOpenchain, error) + func NewOpenchainServerWithPeerInfo(peerServer PeerInfo) (*ServerOpenchain, error) + func (s *ServerOpenchain) GetBlockByNumber(ctx context.Context, num *pb.BlockNumber) (*pb.Block, error) + func (s *ServerOpenchain) GetBlockCount(ctx context.Context, e *google_protobuf1.Empty) (*pb.BlockCount, error) + func (s *ServerOpenchain) GetBlockchainInfo(ctx context.Context, e *google_protobuf1.Empty) (*pb.BlockchainInfo, error) + func (s *ServerOpenchain) GetPeers(ctx context.Context, e *google_protobuf1.Empty) (*pb.PeersMessage, error) + func (s *ServerOpenchain) GetState(ctx context.Context, chaincodeID, key string) ([]byte, error) + func (s *ServerOpenchain) GetTransactionByUUID(ctx context.Context, txUUID string) (*pb.Transaction, error)