sha

package
v0.0.0-...-1c9a7a8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO-P3 remove
	ShaNull = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
	Null    = ShaNull
)

Variables

This section is empty.

Functions

func MakeHashWriter

func MakeHashWriter() (h hash.Hash)

func MakeReadCloser

func MakeReadCloser(r io.Reader) (src readCloser)

func MakeReadCloserTee

func MakeReadCloserTee(r io.Reader, w io.Writer) (src readCloser)

func MakeWriter

func MakeWriter(in io.Writer) (out *writer)

func NopAkteFactory

func NopAkteFactory() schnittstellen.AkteIOFactory

Types

type PathComponents

type PathComponents interface {
	PathComponents() []string
}

type ReadCloser

type ReadCloser = schnittstellen.ShaReadCloser

TODO-P4 remove

func MakeNopReadCloser

func MakeNopReadCloser(rc io.ReadCloser) ReadCloser

type Sha

type Sha struct {
	// contains filtered or unexported fields
}

func FromFormatString

func FromFormatString(f string, vs ...interface{}) Sha

func FromHash

func FromHash(h hash.Hash) (s Sha)

func FromString

func FromString(s string) Sha

func FromStringer

func FromStringer(v schnittstellen.Stringer) Sha

func Make

func Make(s schnittstellen.ShaLike) Sha

func MakeSha

func MakeSha(v string) (s Sha, err error)

func MakeShaFromPath

func MakeShaFromPath(p string) (s Sha, err error)

func Must

func Must(v string) (s Sha)

func (Sha) Equals

func (a Sha) Equals(b Sha) bool

func (Sha) EqualsAny

func (a Sha) EqualsAny(b any) bool

func (Sha) EqualsSha

func (a Sha) EqualsSha(b schnittstellen.ShaLike) bool

func (Sha) GetShaLike

func (s Sha) GetShaLike() schnittstellen.ShaLike

func (Sha) GetShaString

func (s Sha) GetShaString() string

func (Sha) IsNull

func (s Sha) IsNull() bool

func (Sha) Kopf

func (s Sha) Kopf() string

func (Sha) MarshalBinary

func (s Sha) MarshalBinary() (text []byte, err error)

func (Sha) MarshalText

func (s Sha) MarshalText() (text []byte, err error)

func (Sha) Path

func (s Sha) Path(pc ...string) string

func (*Sha) Reset

func (s *Sha) Reset()

func (*Sha) ResetWith

func (s *Sha) ResetWith(s1 Sha)

func (*Sha) ResetWithShaLike

func (s *Sha) ResetWithShaLike(s1 schnittstellen.ShaLike)

func (Sha) Schwanz

func (s Sha) Schwanz() string

func (*Sha) Set

func (s *Sha) Set(v string) (err error)

func (*Sha) SetParts

func (s *Sha) SetParts(a, b string) (err error)

func (Sha) Sha

func (s Sha) Sha() Sha

func (Sha) String

func (s Sha) String() string

func (*Sha) UnmarshalBinary

func (s *Sha) UnmarshalBinary(text []byte) (err error)

func (*Sha) UnmarshalText

func (s *Sha) UnmarshalText(text []byte) (err error)

type ShaLike

type ShaLike = schnittstellen.ShaGetter

type WriteCloser

type WriteCloser = schnittstellen.ShaWriteCloser

TODO-P4 remove

Jump to

Keyboard shortcuts

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