_const

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	UintEnable  = uint64(1)
	UintDisable = uint64(0)

	DefaultEmailSuffix = "@nocalhost.dev"

	DefaultNewFilePermission   = 0755
	DefaultBinDirName          = "bin"
	DefaultBinSyncThingDirName = "syncthing"
	DefaultLogDirName          = "logs"
	DefaultLogFileName         = "nhctl.log"

	NocalhostApplicationName         = "dev.nocalhost/application-name"
	NocalhostApplicationNamespace    = "dev.nocalhost/application-namespace"
	NocalhostDevContainerAnnotations = "dev.nocalhost/nocalhost-dev"

	NocalhostDefaultDevContainerName = "nocalhost-dev"
	NocalhostDefaultDevSidecarName   = "nocalhost-sidecar"

	OriginWorkloadDefinition    = "dev.nocalhost/origin-workload-definition"
	OriginProbeDefinition       = "dev.nocalhost/origin-probe-definition"
	DevModeCount                = "dev.nocalhost/dev-mode-count"
	AppManagedByLabel           = "app.kubernetes.io/managed-by"
	AppManagedByNocalhost       = "nocalhost"
	DefaultNocalhostSideCarName = "nocalhost-sidecar"

	PersistentVolumeDirLabel = "nocalhost.dev/dir"
	ServiceLabel             = "nocalhost.dev/service"
	ServiceTypeLabel         = "nocalhost.dev/service-type"
	AppLabel                 = "nocalhost.dev/app"

	DefaultSideCarImage = "registry.cn-hangzhou.aliyuncs.com/acejilam/nocalhost-sidecar:syncthing"
	SSHSideCarImage     = "nocalhost-docker.pkg.coding.net/nocalhost/public/nocalhost-sidecar:sshversion"
	DefaultVPNImage     = "nocalhost-docker.pkg.coding.net/nocalhost/public/nocalhost-vpn:v1"

	DefaultApplicationSyncPidFile = "syncthing.pid"

	EnableFullLogEnvKey = "NH_FULL_LOG"

	// default is a special app type, it can be uninstalled neither installed
	// it's a virtual application to managed that those manifest out of Nocalhost management
	DefaultNocalhostApplication           = "default.application"
	DefaultNocalhostApplicationOperateErr = "default.application is a virtual application " +
		"to managed that those manifest out of Nocalhost" +
		" management so can't be install, uninstall, reset, etc."

	HelmReleaseName = "meta.helm.sh/release-name"

	DevWorkloadIgnored = "nocalhost.dev.workload.ignored"

	NocalhostCmLabelKey   = "dep-management"
	NocalhostCmLabelValue = "nocalhost"

	NocalhostRoleBindingLabelKey = "owner"
	NocalhostRoleBindingLabelVal = "nocalhost"

	NocalhostDefaultSaNs        = "default"
	NocalhostDefaultRoleBinding = "nocalhost-role-binding"
	NocalhostDevRoleName        = "nocalhost-dev-role"

	NocalhostCooperatorRoleBinding = "nocalhost-cooperator-role-binding"
	NocalhostCooperatorRoleName    = "nocalhost-cooperator-role"

	NocalhostViewerRoleBinding = "nocalhost-viewer-role-binding"
	NocalhostViewerRoleName    = "nocalhost-viewer-role"

	HPAOriginalMaxReplicasKey = "nocalhost.dev.hpa.origin.max.replicas"
	HPAOriginalMinReplicasKey = "nocalhost.dev.hpa.origin.min.replicas"

	// sync type
	DefaultSyncType       = "sendReceive" // default sync mode
	SendOnlySyncType      = "sendonly"
	SendOnlySyncTypeAlias = "send"

	// sync mode
	GitIgnoreMode = "gitIgnore"
	PatternMode   = "pattern"
)

Variables

View Source
var (
	IsDaemon              = false
	DevModeTerminalBanner = color.New(color.BgGreen).Add(color.FgBlack).Add(color.Bold).Sprint(banner)
)

Functions

func BoolToUint64Pointer

func BoolToUint64Pointer(bool bool) *uint64

func Uint64PointerToBool

func Uint64PointerToBool(value *uint64) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL