car

package
v0.0.0-...-523a819 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataProvider

type MetadataProvider struct {
}

元数据提供程序提供元数据

func (*MetadataProvider) GetMetadataAsTarEntries

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

getmetadataastarentries从chaincodedeploymentspec中提取metata数据

type Platform

type Platform struct {
}

轿厢类型平台

func (*Platform) GenerateDockerBuild

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

func (*Platform) GenerateDockerfile

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

func (*Platform) GetDeploymentPayload

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

func (*Platform) GetMetadataProvider

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

GetMetadataProvider获取给定部署规范的元数据提供程序

func (*Platform) Name

func (carPlatform *Platform) Name() string

name返回此平台的名称

func (*Platform) ValidateCodePackage

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

func (*Platform) ValidatePath

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

validatePath验证汽车类型要满足的链码路径 平台接口。此链码类型当前没有 需要任何特定的内容,所以我们只是隐式地批准任何规范

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL