File: values.go

package info (click to toggle)
golang-github-containerd-nydus-snapshotter 0.13.4-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,824 kB
  • sloc: sh: 470; makefile: 129
file content (55 lines) | stat: -rw-r--r-- 1,693 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
 * Copyright (c) 2023. Nydus Developers. All rights reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

// constants of nydus snapshotter CLI config

package constant

const (
	DaemonModeMultiple  string = "multiple"
	DaemonModeDedicated string = "dedicated"
	DaemonModeShared    string = "shared"
	DaemonModeNone      string = "none"
	DaemonModeInvalid   string = ""
)

const (
	// Mount RAFS filesystem by using EROFS over block devices.
	FsDriverBlockdev string = "blockdev"
	// Mount RAFS filesystem by using FUSE subsystem
	FsDriverFusedev string = "fusedev"
	// Mount RAFS filesystem by using fscache/EROFS.
	FsDriverFscache string = "fscache"
	// Only prepare/supply meta/data blobs, do not mount RAFS filesystem.
	FsDriverNodev string = "nodev"
	// Relay layer content download operation to other agents.
	FsDriverProxy string = "proxy"
)

const (
	DefaultDaemonMode string = DaemonModeMultiple

	DefaultFsDriver string = FsDriverFusedev

	DefaultLogLevel string = "info"
	DefaultGCPeriod string = "24h"

	DefaultNydusDaemonConfigPath string = "/etc/nydus/nydusd-config.json"
	NydusdBinaryName             string = "nydusd"
	NydusImageBinaryName         string = "nydus-image"

	DefaultRootDir                 = "/var/lib/containerd-nydus"
	DefaultAddress                 = "/run/containerd-nydus/containerd-nydus-grpc.sock"
	DefaultSystemControllerAddress = "/run/containerd-nydus/system.sock"

	// Log rotation
	DefaultDaemonRotateLogMaxSize = 100 // 100 megabytes
	DefaultRotateLogMaxSize       = 200 // 200 megabytes
	DefaultRotateLogMaxBackups    = 5
	DefaultRotateLogMaxAge        = 0 // days
	DefaultRotateLogLocalTime     = true
	DefaultRotateLogCompress      = true
)