Documentation ¶
Index ¶
Constants ¶
View Source
const MetadataFile = "metadata.json"
Variables ¶
This section is empty.
Functions ¶
func RunCommand ¶
func RunCommand(logger *flogging.FabricLogger, cmd *exec.Cmd) error
Types ¶
type BuildContext ¶
type BuildContext struct { CCID string Metadata *persistence.ChaincodePackageMetadata ScratchDir string SourceDir string MetadataDir string OutputDir string LaunchDir string }
func NewBuildContext ¶
func NewBuildContext(ccid string, md *persistence.ChaincodePackageMetadata, codePackage io.Reader) (*BuildContext, error)
func (*BuildContext) Cleanup ¶
func (bc *BuildContext) Cleanup()
type Builder ¶
type Builder struct { Location string Logger *flogging.FabricLogger }
func (*Builder) Build ¶
func (b *Builder) Build(buildContext *BuildContext) error
func (*Builder) Detect ¶
func (b *Builder) Detect(buildContext *BuildContext) bool
func (*Builder) Launch ¶
func (b *Builder) Launch(buildContext *BuildContext, peerConnection *ccintf.PeerConnection) error
type Detector ¶
type Detector struct {
Builders []string
}
func (*Detector) Build ¶
func (d *Detector) Build(ccid string, md *persistence.ChaincodePackageMetadata, codeStream io.Reader) (*Instance, error)
func (*Detector) Detect ¶
func (d *Detector) Detect(buildContext *BuildContext) *Builder
type Instance ¶
type Instance struct { BuildContext *BuildContext Builder *Builder }
Click to show internal directories.
Click to hide internal directories.