Documentation ¶
Index ¶
- func CertPoolFromPEM(pemCerts []byte) (*x509.CertPool, error)
- func NewDigest(algorithm Algorithm, digest string) digestImpl
- func NewUnknownAlgorithm(name string) unknownAlgorithmImpl
- type Algorithm
- type ArchiveDigestFilePathReader
- type Digest
- type MultipleDigest
- func MustNewMultipleDigest(digests ...Digest) MultipleDigest
- func MustParseMultipleDigest(json string) MultipleDigest
- func NewMultipleDigest(stream io.ReadSeeker, algos []Algorithm) (MultipleDigest, error)
- func NewMultipleDigestFromPath(filePath string, fs boshsys.FileSystem, algos []Algorithm) (MultipleDigest, error)
- func ParseMultipleDigest(json string) (MultipleDigest, error)
- func (m MultipleDigest) Algorithm() Algorithm
- func (m *MultipleDigest) DigestFor(algo Algorithm) (Digest, error)
- func (m MultipleDigest) MarshalJSON() ([]byte, error)
- func (m MultipleDigest) String() string
- func (m *MultipleDigest) UnmarshalJSON(data []byte) error
- func (m MultipleDigest) Verify(reader io.Reader) error
- func (m MultipleDigest) VerifyFilePath(filePath string, fs boshsys.FileSystem) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUnknownAlgorithm ¶
func NewUnknownAlgorithm(name string) unknownAlgorithmImpl
Types ¶
type MultipleDigest ¶
type MultipleDigest struct {
// contains filtered or unexported fields
}
func MustNewMultipleDigest ¶
func MustNewMultipleDigest(digests ...Digest) MultipleDigest
func MustParseMultipleDigest ¶
func MustParseMultipleDigest(json string) MultipleDigest
func NewMultipleDigest ¶
func NewMultipleDigest(stream io.ReadSeeker, algos []Algorithm) (MultipleDigest, error)
func NewMultipleDigestFromPath ¶
func NewMultipleDigestFromPath(filePath string, fs boshsys.FileSystem, algos []Algorithm) (MultipleDigest, error)
func ParseMultipleDigest ¶
func ParseMultipleDigest(json string) (MultipleDigest, error)
func (MultipleDigest) Algorithm ¶
func (m MultipleDigest) Algorithm() Algorithm
func (*MultipleDigest) DigestFor ¶
func (m *MultipleDigest) DigestFor(algo Algorithm) (Digest, error)
func (MultipleDigest) MarshalJSON ¶
func (m MultipleDigest) MarshalJSON() ([]byte, error)
func (MultipleDigest) String ¶
func (m MultipleDigest) String() string
func (*MultipleDigest) UnmarshalJSON ¶
func (m *MultipleDigest) UnmarshalJSON(data []byte) error
func (MultipleDigest) VerifyFilePath ¶
func (m MultipleDigest) VerifyFilePath(filePath string, fs boshsys.FileSystem) error
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.