package
0.19.0
Repository: https://github.com/kopia/kopia.git
Documentation: pkg.go.dev

# Functions

AuthenticateHtpasswdFile returns an authenticator that accepts users in the provided htpasswd file.
AuthenticateRepositoryUsers returns authenticator that accepts username/password combinations stored in 'user' manifests in the repository.
AuthenticateSingleUser returns an Authenticator that only allows one username/password combination.
CombineAuthenticators return authenticator that applies the provided authenticators in order and returns true if any of them accepts given username/password combination.
DefaultAuthorizer returns Authorizer that will fetch ACLs from the repository and evaluate them in the context of current user to determine their permission levels.
LegacyAuthorizer is an Authorizer that returns authorizer with legacy (pre-ACL) authorization rules (authenticated users can see their own snapshots/policies only).
NoAccess returns AuthorizationInfo which grants no permissions.

# Constants

RO + create new.
read/write/delete.
Access levels forwarded to 'acl' package to allow it to easily implement AuthorizationInfo interface.
RO access.

# Variables

ContentRule is a special target rule that targets contents instead of manifests.
DefaultACLs specifies default ACLs.

# Interfaces

Authenticator verifies that the provided username/password is valid.
AuthorizationInfo determines logged in user's access level.
Authorizer gets authorization info for logged in user.

# Type aliases

AccessLevel specifies access level when accessing repository objects.