Versions in this module Expand all Collapse all v0 v0.19.4 May 24, 2023 Changes in this version + var AllRepoUnitTypes = []Type + var DefaultForkRepoUnits = []Type + var DefaultRepoUnits = []Type + var DisabledRepoUnits = []Type + var NotAllowedDefaultRepoUnits = []Type + var UnitActions = Unit + var UnitCode = Unit + var UnitExternalTracker = Unit + var UnitExternalWiki = Unit + var UnitIssues = Unit + var UnitPackages = Unit + var UnitProjects = Unit + var UnitPullRequests = Unit + var UnitReleases = Unit + var UnitWiki = Unit + var Units = map[Type]Unit + func AllUnitKeyNames() []string + func LoadUnitConfig() error + func MinUnitAccessMode(unitsMap map[Type]perm.AccessMode) perm.AccessMode + type Type int + const TypeActions + const TypeCode + const TypeExternalTracker + const TypeExternalWiki + const TypeInvalid + const TypeIssues + const TypePackages + const TypeProjects + const TypePullRequests + const TypeReleases + const TypeWiki + func FindUnitTypes(nameKeys ...string) (res []Type, invalidKeys []string) + func TypeFromKey(nameKey string) Type + func (u *Type) CanBeDefault() bool + func (u Type) LogString() string + func (u Type) String() string + func (u Type) UnitGlobalDisabled() bool + func (u Type) Value() int + type Unit struct + DescKey string + Idx int + MaxAccessMode perm.AccessMode + NameKey string + Type Type + URI string + func (u Unit) IsLessThan(unit Unit) bool + func (u Unit) MaxPerm() perm.AccessMode