core

package
v0.0.0-...-82629c9 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 SecurityEnabled

func SecurityEnabled() bool

SecurityEnabled returns true if security is enabled

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

Build builds the supplied chaincode image

func (*Devops) Deploy

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

func (d *Devops) EXP_PrepareForTx(ctx context.Context, secret *pb.Secret) (*pb.Response, error)

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

func (d *Devops) Login(ctx context.Context, secret *pb.Secret) (*pb.Response, error)

Login establishes the security context with the Devops service

func (*Devops) Query

func (d *Devops) Query(ctx context.Context, chaincodeInvocationSpec *pb.ChaincodeInvocationSpec) (*pb.Response, error)

Query performs the supplied query on the specified chaincode through a transaction

type PeerConnectionFSM

type PeerConnectionFSM struct {
	To  string
	FSM *fsm.FSM
}

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

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

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.
api

Jump to

Keyboard shortcuts

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