Versions in this module Expand all Collapse all v1 v1.0.48 May 8, 2018 v1.0.44 Feb 21, 2018 Changes in this version + const DefaultConfigFilename + const DefaultConfigFilepath + const PermList + const PermRead + const PermReadAndList + const Version1 + const Version1Str + const VersionUnknown + const VersionUnknownStr + type AccessControlV1 struct + AnonymousPermissions string + WhitelistAdditionalPermissions map[string]string + type Common struct + Version string + type Config interface + Authenticate func(username, password string) bool + Encode func(w io.Writer, prettify bool) error + GetPermissions func(path string, username *string) (read, list bool, possibleRead, possibleList bool, realm string, err error) + Version func() Version + func ParseConfig(reader io.Reader) (config Config, err error) + type ErrDuplicateAccessControlPath struct + func (e ErrDuplicateAccessControlPath) Error() string + type ErrInvalidPermissions struct + func (e ErrInvalidPermissions) Error() string + type ErrInvalidVersion struct + func (e ErrInvalidVersion) Error() string + type ErrUndefinedUsername struct + func (e ErrUndefinedUsername) Error() string + type V1 struct + ACLs map[string]AccessControlV1 + Users map[string]string + func DefaultV1() *V1 + func (c *V1) Authenticate(username, password string) bool + func (c *V1) Encode(w io.Writer, prettify bool) error + func (c *V1) EnsureInit() error + func (c *V1) GetPermissions(path string, username *string) (read, list bool, possibleRead, possibleList bool, realm string, err error) + func (c *V1) Validate() error + func (c *V1) Version() Version + type Version int + func (v Version) String() string Incompatible versions in this module v2.11.0+incompatible Nov 30, 2018