Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + const DefaultProvenance + var ValidAlias = regexp.MustCompile("^[a-zA-Z0-9][-_.a-zA-Z0-9]*$") + var ValidApp = regexp.MustCompile("^[a-zA-Z0-9](?:-?[a-zA-Z0-9])*$") + var ValidProvenance = regexp.MustCompile("^[a-zA-Z0-9](?:-?[a-zA-Z0-9])*$") + var ValidSnapID = regexp.MustCompile("^[a-z0-9A-Z]{32}$") + func SameSnap(snapRef1, snapRef2 SnapRef) bool + func UseStagingIDs(staging bool) (restore func()) + func ValidateAlias(alias string) error + func ValidateApp(n string) error + func ValidateHook(name string) error + func ValidateInstance(instanceName string) error + func ValidateInterface(name string) error + func ValidatePlug(name string) error + func ValidateProvenance(prov string) error + func ValidateQuotaGroup(grp string) error + func ValidateSecurityTag(tag string) error + func ValidateSlot(name string) error + func ValidateSnap(name string) error + func ValidateSnapID(id string) error + func ValidateSocket(name string) error + func WellKnownSnapID(snapName string) string + type AppSecurityTag interface + AppName func() string + func ParseAppSecurityTag(tag string) (AppSecurityTag, error) + type HookSecurityTag interface + HookName func() string + func ParseHookSecurityTag(tag string) (HookSecurityTag, error) + type SecurityTag interface + InstanceName func() string + String func() string + func ParseSecurityTag(tag string) (SecurityTag, error) + type Snap string + func (s Snap) ID() string + func (s Snap) SnapName() string + type SnapRef interface + ID func() string + SnapName func() string + func NewSnapRef(name, id string) SnapRef + type SnapSet struct + func NewSnapSet(refs []SnapRef) *SnapSet + func (s *SnapSet) Add(ref SnapRef) + func (s *SnapSet) Contains(ref SnapRef) bool + func (s *SnapSet) Empty() bool + func (s *SnapSet) Lookup(which SnapRef) SnapRef + func (s *SnapSet) Size() int