Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeS3 = "s3" TypeFile = "file" TypeMemory = "memory" )
Variables ¶
View Source
var (
ErrPackageNotFound = fmt.Errorf("package not found")
)
Functions ¶
func ParseObjectKey ¶
Types ¶
type Storage ¶
type Storage interface { // Put saves chaincode package into storage. Put(context.Context, *ccpackage.PutPackageRequest) error // Get gets chaincode package info from storage. Get(context.Context, *ccpackage.PackageID) (*ccpackage.Package, error) // List gets stored chaincode packages' infos. List(context.Context) ([]*ccpackage.Package, error) // Fetch fetches chaincode package. Fetch(context.Context, *ccpackage.PackageID) (io.ReadCloser, error) // Close closes storage Close() error }
Click to show internal directories.
Click to hide internal directories.