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

package car

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

# Copyright State Street Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0


Package Files

metadataprovider.go platform.go

type MetadataProvider Uses

type MetadataProvider struct {

MetadataProvider provides Metadata

func (*MetadataProvider) GetMetadataAsTarEntries Uses

func (carMetadataProv *MetadataProvider) GetMetadataAsTarEntries() ([]byte, error)

GetMetadataAsTarEntries extracts metata data from ChaincodeDeploymentSpec

type Platform Uses

type Platform struct {

Platform for the CAR type

func (*Platform) GenerateDockerBuild Uses

func (carPlatform *Platform) GenerateDockerBuild(path string, code []byte, tw *tar.Writer) error

func (*Platform) GenerateDockerfile Uses

func (carPlatform *Platform) GenerateDockerfile() (string, error)

func (*Platform) GetDeploymentPayload Uses

func (carPlatform *Platform) GetDeploymentPayload(path string) ([]byte, error)

func (*Platform) GetMetadataProvider Uses

func (carPlatform *Platform) GetMetadataProvider(code []byte) platforms.MetadataProvider

GetMetadataProvider fetches metadata provider given deployment spec

func (*Platform) Name Uses

func (carPlatform *Platform) Name() string

Name returns the name of this platform

func (*Platform) ValidateCodePackage Uses

func (carPlatform *Platform) ValidateCodePackage(codePackage []byte) error

func (*Platform) ValidatePath Uses

func (carPlatform *Platform) ValidatePath(path string) error

ValidatePath validates the chaincode path for CAR types to satisfy the platform interface. This chaincode type currently doesn't require anything specific so we just implicitly approve any spec

Package car imports 10 packages (graph) and is imported by 26 packages. Updated 2018-12-12. Refresh now. Tools for package owners.