common

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCertFile             = "tls.crt"
	DefaultKeyFile              = "tls.key"
	DefaultTLSCertDirName       = "tls"
	DefaultCertDirName          = "certs"
	DefaultConfigFileName       = "config"
	DefaultConfigDir            = "deploy"
	TestConfigDir               = "test-config"
	TempConfigDir               = "test-config/tmp"
	TestConfigFileName          = "config.yaml"
	EnvCertDirName              = "X_CSI_REVPROXY_CERT_DIR"
	EnvTLSCertDirName           = "X_CSI_REVPROXY_TLS_CERT_DIR"
	EnvWatchNameSpace           = "X_CSI_REVPROXY_WATCH_NAMESPACE"
	EnvConfigFileName           = "X_CSI_REVPROXY_CONFIG_FILE_NAME"
	EnvConfigDirName            = "X_CSI_REVPROXY_CONFIG_DIR"
	EnvInClusterConfig          = "X_CSI_REVRPOXY_IN_CLUSTER"
	EnvIsLeaderElectionEnabled  = "X_CSI_REVPROXY_IS_LEADER_ENABLED"
	DefaultNameSpace            = "powermax"
	MaxActiveReadRequests       = 5
	MaxOutStandingWriteRequests = 50
	MaxActiveWriteRequests      = 4
	MaxOutStandingReadRequests  = 50
)

Constants for the proxy

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	UserName string `json:"username"`
	Password string `json:"password"`
}

Credentials represent a pair of username and password

type Limits

type Limits struct {
	MaxActiveRead       int `yaml:"maxActiveRead,omitempty"`
	MaxActiveWrite      int `yaml:"maxActiveWrite,omitempty"`
	MaxOutStandingRead  int `yaml:"maxOutStandingRead,omitempty"`
	MaxOutStandingWrite int `yaml:"maxOutStandingWrite,omitempty"`
}

Limits is used for storing the various types of limits applied for a particular proxy instance

Jump to

Keyboard shortcuts

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