MetadataProvider provides Metadata
type MetadataProvider struct { }
func (carMetadataProv *MetadataProvider) GetMetadataAsTarEntries() ([]byte, error)
GetMetadataAsTarEntries extracts metata data from ChaincodeDeploymentSpec
Platform for the CAR type
type Platform struct { }
func (carPlatform *Platform) GenerateDockerBuild(path string, code []byte, tw *tar.Writer) error
func (carPlatform *Platform) GenerateDockerfile() (string, error)
func (carPlatform *Platform) GetDeploymentPayload(path string) ([]byte, error)
func (carPlatform *Platform) GetMetadataProvider(code []byte) platforms.MetadataProvider
GetMetadataProvider fetches metadata provider given deployment spec
func (carPlatform *Platform) Name() string
Name returns the name of this platform
func (carPlatform *Platform) ValidateCodePackage(codePackage []byte) error
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