# Functions
New returns a new samba container config.
NewConfigSection returns a new ConfigSection.
NewDefaultUsers returns a full subsection for a default (good for testing) set of users.
NewGlobalOptions is the constructor for struct SambaConfigOptions.
NewGlobals returns a default GlobalConfig.
NewPermissionsConfig returns a new PermissionsConfig.
NewSimpleShare returns a ShareConfig with a simple configuration.
# Constants
AllEntriesKey is used for the standard "all_entries" default key for users and groups.
BrowseableParam controls if a share is browseable.
CTDB feature flag indicates the system should be configured with CTDB.
DefaultSmbPort is the default port which containerized smbd binds to.
Globals is used for the default globals subsection.
No means no.
ReadOnlyParam controls if a share is read only.
Yes means yes.
# Structs
ConfigSection identifies the shares, globals, and instance name of a single configuration.
GlobalConfig holds configuration values for samba server globals.
GlobalOptions is used to pass options to modify the samba configuration.
GroupEntry represents a single "local" group for share access.
PermissionsConfig indicates the permissions to be set on the share mountpoint.
SambaContainerConfig holds one or more configuration for samba containers.
ShareConfig holds configuration values for one share.
UserEntry represents a single "local" user for share access.
# Type aliases
FeatureFlag values are used to select top level features that sambacc will apply when setting up a container.
GroupEntries is a slice of GroupEntry values.
Key values are used to select subsections in the container config.
SmbOptions is a common type for storing smb.conf parameters.
UserEntries is a slice of UserEntry values.