fabric: github.com/hyperledger/fabric/core/chaincode/platforms Index | Files | Directories

package platforms

import "github.com/hyperledger/fabric/core/chaincode/platforms"

Index

Package Files

builder.go platforms.go

Variables

var SupportedPlatforms = []Platform{
    &java.Platform{},
    &golang.Platform{},
    &node.Platform{},
}

SupportedPlatforms is the canonical list of platforms Fabric supports

type Builder Uses

type Builder struct {
    Registry *Registry
    Client   *docker.Client
}

func (*Builder) GenerateDockerBuild Uses

func (b *Builder) GenerateDockerBuild(ccType, path string, codePackage io.Reader) (io.Reader, error)

type PackageWriter Uses

type PackageWriter interface {
    Write(name string, payload []byte, tw *tar.Writer) error
}

type PackageWriterWrapper Uses

type PackageWriterWrapper func(name string, payload []byte, tw *tar.Writer) error

func (PackageWriterWrapper) Write Uses

func (pw PackageWriterWrapper) Write(name string, payload []byte, tw *tar.Writer) error

type Platform Uses

type Platform interface {
    Name() string
    GenerateDockerfile() (string, error)
    DockerBuildOptions(path string) (util.DockerBuildOptions, error)
}

Interface for validating the specification and writing the package for the given platform

type Registry Uses

type Registry struct {
    Platforms     map[string]Platform
    PackageWriter PackageWriter
}

func NewRegistry Uses

func NewRegistry(platformTypes ...Platform) *Registry

func (*Registry) GenerateDockerBuild Uses

func (r *Registry) GenerateDockerBuild(ccType, path string, codePackage io.Reader, client *docker.Client) (io.Reader, error)

func (*Registry) GenerateDockerfile Uses

func (r *Registry) GenerateDockerfile(ccType string) (string, error)

func (*Registry) StreamDockerBuild Uses

func (r *Registry) StreamDockerBuild(ccType, path string, codePackage io.Reader, inputFiles map[string][]byte, tw *tar.Writer, client *docker.Client) error

Directories

PathSynopsis
ccmetadata
golang
java
mockCode generated by counterfeiter.
node
util

Package platforms imports 14 packages (graph) and is imported by 95 packages. Updated 2019-11-17. Refresh now. Tools for package owners.