Versions in this module Expand all Collapse all v1 v1.5.6 Oct 3, 2021 Changes in this version + const CCServerReleaseDir + const DialTimeout + var DefaultPropagateEnvironment = []string + func CopyDir(logger *flogging.FabricLogger, srcroot, destroot string) error + func SanitizeCCIDPath(ccid string) string + func Untar(buffer io.Reader, dst string) error + func ValidPath(uncleanPath string) bool + type BuildContext struct + BldDir string + CCID string + MetadataDir string + ReleaseDir string + ScratchDir string + SourceDir string + func NewBuildContext(ccid string, mdBytes []byte, codePackage io.Reader) (bc *BuildContext, err error) + func (bc *BuildContext) Cleanup() + type BuildInfo struct + BuilderName string + type Builder struct + Location string + Logger *flogging.FabricLogger + MSPID string + Name string + PropagateEnvironment []string + func CreateBuilders(builderConfs []peer.ExternalBuilder, mspid string) []*Builder + func (b *Builder) Build(buildContext *BuildContext) error + func (b *Builder) Detect(buildContext *BuildContext) bool + func (b *Builder) NewCommand(name string, args ...string) *exec.Cmd + func (b *Builder) Release(buildContext *BuildContext) error + func (b *Builder) Run(ccid, bldDir string, peerConnection *ccintf.PeerConnection) (*Session, error) + type ChaincodeServerUserData struct + Address string + ClientAuthRequired bool + ClientCert string + ClientKey string + DialTimeout Duration + RootCert string + TLSRequired bool + func (c *ChaincodeServerUserData) ChaincodeServerInfo(cryptoDir string) (*ccintf.ChaincodeServerInfo, error) + type Detector struct + Builders []*Builder + DurablePath string + func (d *Detector) Build(ccid string, mdBytes []byte, codeStream io.Reader) (*Instance, error) + func (d *Detector) CachedBuild(ccid string) (*Instance, error) + type Duration struct + func (d *Duration) UnmarshalJSON(b []byte) error + func (d Duration) MarshalJSON() ([]byte, error) + type ExitFunc func(error) + type Instance struct + BldDir string + Builder *Builder + PackageID string + ReleaseDir string + Session *Session + TermTimeout time.Duration + func (i *Instance) ChaincodeServerInfo() (*ccintf.ChaincodeServerInfo, error) + func (i *Instance) ChaincodeServerReleaseDir() string + func (i *Instance) Start(peerConnection *ccintf.PeerConnection) error + func (i *Instance) Stop() error + func (i *Instance) Wait() (int, error) + type MetadataProvider struct + DurablePath string + func (mp *MetadataProvider) PackageMetadata(ccid string) ([]byte, error) + type Session struct + func Start(logger *flogging.FabricLogger, cmd *exec.Cmd, exitFuncs ...ExitFunc) (*Session, error) + func (s *Session) Signal(sig os.Signal) + func (s *Session) Wait() error