Documentation ¶
Index ¶
- type Checksum
- type ImmutableChecksum
- type ImmutableChecksums
- type WritableChecksum
- func (c *WritableChecksum) Algorithm() algorithm.Algorithm
- func (c *WritableChecksum) Data() []byte
- func (c *WritableChecksum) ImmutableChecksum() ImmutableChecksum
- func (c WritableChecksum) MarshalText() ([]byte, error)
- func (c WritableChecksum) String() string
- func (c *WritableChecksum) Write(p []byte) (int, error)
- type WritableChecksums
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImmutableChecksum ¶
type ImmutableChecksum struct {
// contains filtered or unexported fields
}
func CreateFromString ¶
func CreateFromString(raw string) (ImmutableChecksum, error)
func NewExisting ¶
func NewExisting(a algorithm.Algorithm, d []byte) ImmutableChecksum
func (*ImmutableChecksum) Algorithm ¶
func (c *ImmutableChecksum) Algorithm() algorithm.Algorithm
func (*ImmutableChecksum) Data ¶
func (c *ImmutableChecksum) Data() []byte
func (ImmutableChecksum) MarshalText ¶
func (c ImmutableChecksum) MarshalText() ([]byte, error)
func (ImmutableChecksum) String ¶
func (c ImmutableChecksum) String() string
func (*ImmutableChecksum) UnmarshalJSON ¶
func (c *ImmutableChecksum) UnmarshalJSON(data []byte) error
type ImmutableChecksums ¶
type ImmutableChecksums []ImmutableChecksum
func (ImmutableChecksums) Contains ¶
func (c ImmutableChecksums) Contains(expected Checksum) bool
func (ImmutableChecksums) Preferred ¶
func (c ImmutableChecksums) Preferred() ImmutableChecksum
func (ImmutableChecksums) Prioritized ¶
func (c ImmutableChecksums) Prioritized() ImmutableChecksums
type WritableChecksum ¶
type WritableChecksum struct {
// contains filtered or unexported fields
}
func New ¶
func New(a algorithm.Algorithm) *WritableChecksum
func (*WritableChecksum) Algorithm ¶
func (c *WritableChecksum) Algorithm() algorithm.Algorithm
func (*WritableChecksum) Data ¶
func (c *WritableChecksum) Data() []byte
func (*WritableChecksum) ImmutableChecksum ¶
func (c *WritableChecksum) ImmutableChecksum() ImmutableChecksum
func (WritableChecksum) MarshalText ¶
func (c WritableChecksum) MarshalText() ([]byte, error)
func (WritableChecksum) String ¶
func (c WritableChecksum) String() string
type WritableChecksums ¶
type WritableChecksums []*WritableChecksum
func (WritableChecksums) ImmutableChecksums ¶
func (cs WritableChecksums) ImmutableChecksums() ImmutableChecksums
Source Files ¶
Click to show internal directories.
Click to hide internal directories.