Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigArchiveRepoGCDelay = ConfigArchiveRepoGCDelayDays * 24 * time.Hour
View Source
const ConfigArchiveRepoGCDelayDays = 7
View Source
const ConfigErrorMessageTruncateLength = 120
`ConfigErrorMessageTruncateLength` limits the length of error messages when storing them on a repo. Longer messages are truncated. The limit must be smaller than the maximum length that nogfsoregd accepts.
View Source
const ConfigMaxArchiveRepoRetries = 5
View Source
const ConfigMaxFreezeRepoRetries = 5
View Source
const ConfigMaxStreams = 20
View Source
const ConfigMaxUnarchiveRepoRetries = 5
View Source
const ConfigMaxUnfreezeRepoRetries = 5
View Source
const ConfigUnarchiveRepoGCDelay = ConfigUnarchiveRepoGCDelayDays * 24 * time.Hour
View Source
const ConfigUnarchiveRepoGCDelayDays = 7
Variables ¶
View Source
var ErrAclsDisabled = errors.New("ACLs disabled")
View Source
var ErrUnknownEvent = errors.New("unknown event")
Functions ¶
Types ¶
type AclPropagator ¶
type ArchiveRepoPrivileges ¶
type ArchiveRepoPrivileges interface { privileges.UdoChattrPrivileges }
type Config ¶
type Config struct { Registries []string Prefixes []string Conn *grpc.ClientConn SysRPCCreds credentials.PerRPCCredentials RepoProcessor RepoProcessor Privileges Privileges AclPropagator AclPropagator ArchiveRepoSpool string UnarchiveRepoSpool string }
type Privileges ¶
type Privileges interface { privileges.UdoChattrPrivileges }
type RepoProcessor ¶
type RepoProcessor interface { WaitEnableRepo4(ctx context.Context, id uuid.I) error FreezeRepo( ctx context.Context, repoId uuid.I, author nogfsostad.GitUser, ) error UnfreezeRepo( ctx context.Context, repoId uuid.I, author nogfsostad.GitUser, ) error TarttIsFrozenArchive( ctx context.Context, repoId uuid.I, ) (*shadows.TarttIsFrozenArchiveInfo, error) ArchiveRepo( ctx context.Context, repoId uuid.I, workfingDir string, author nogfsostad.GitUser, ) error UnarchiveRepo( ctx context.Context, repoId uuid.I, workfingDir string, author nogfsostad.GitUser, ) error }
type UnarchiveRepoPrivileges ¶
type UnarchiveRepoPrivileges interface { privileges.UdoChattrPrivileges }
Click to show internal directories.
Click to hide internal directories.