Versions in this module Expand all Collapse all v10 v10.0.1 Aug 2, 2023 v10.0.0 Jan 4, 2023 Changes in this version + func Sort(resources []Resource) + type Fingerprint struct + func GenerateFingerprint(reader io.Reader) (Fingerprint, error) + func NewFingerprint(raw []byte) (Fingerprint, error) + func ParseFingerprint(raw string) (Fingerprint, error) + type FingerprintHash struct + func NewFingerprintHash() *FingerprintHash + func (fph FingerprintHash) Fingerprint() Fingerprint + type Meta struct + Description string + Name string + Path string + Type Type + func (meta Meta) Validate() error + type Origin int + const OriginStore + const OriginUpload + func ParseOrigin(value string) (Origin, error) + func (o Origin) String() string + func (o Origin) Validate() error + type Resource struct + Fingerprint Fingerprint + Origin Origin + Revision int + Size int64 + func (res Resource) Validate() error + type Type int + const TypeContainerImage + const TypeFile + func ParseType(value string) (Type, error) + func (rt Type) String() string + func (rt Type) Validate() error Other modules containing this package github.com/juju/charm/v11 github.com/juju/charm/v12 github.com/juju/charm/v13 github.com/juju/charm/v7 github.com/juju/charm/v8 github.com/juju/charm/v9