storageprovider

package
v2.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// XSInvalid means the checksum type is invalid.
	XSInvalid XS = "invalid"
	// XSUnset means the checksum is optional.
	XSUnset = "unset"
	// XSAdler32 means the checksum is adler32
	XSAdler32 = "adler32"
	// XSMD5 means the checksum is md5
	XSMD5 = "md5"
	// XSSHA1 means the checksum is SHA1
	XSSHA1 = "sha1"
	// XSSHA256 means the checksum is SHA256.
	XSSHA256 = "sha256"
)

Variables

This section is empty.

Functions

func New

func New(m map[string]interface{}, ss *grpc.Server) (rgrpc.Service, error)

New creates a new storage provider svc

func PKG2GRPCXS

func PKG2GRPCXS(xsType string) provider.ResourceChecksumType

PKG2GRPCXS converts an internal checksum type to the grpc checksum type.

Types

type XS

type XS string

XS defines an hex-encoded string as checksum.

func GRPC2PKGXS

func GRPC2PKGXS(t provider.ResourceChecksumType) XS

GRPC2PKGXS converts the grpc checksum type to an internal pkg type.

func (XS) String

func (x XS) String() string

Jump to

Keyboard shortcuts

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