Versions in this module Expand all Collapse all v7 v7.0.3 Mar 12, 2021 v7.0.2 Mar 2, 2021 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/v10 github.com/juju/charm/v11 github.com/juju/charm/v12 github.com/juju/charm/v13 github.com/juju/charm/v8 github.com/juju/charm/v9