configs.go (902B)
1 package configs 2 3 import "time" 4 5 const ( 6 // DefaultRootDomain is the default root domain for the function runtime. 7 // For example, if the root domain is "fn", then the function "hello" 8 // in namespace "foo" is reachable at "foo.fn/hello". 9 DefaultRootDomain = "fn" 10 11 // DefaultServerAddr is the address on which the server listens. 12 ServerAddr = ":8080" 13 14 // ReadTimeout is the maximum duration for reading the entire request. 15 ReadTimeout = 5 * time.Second 16 17 // WriteTimeout is the maximum duration before timing out writes of the 18 // response. 19 WriteTimeout = 5 * time.Second 20 21 // ShutdownTimeout is the timeout for graceful shutdown. 22 ShutdownTimeout = 5 * time.Second 23 24 // CNIConfDir is the directory where CNI configuration files are stored 25 // on the host. 26 CNIConfDir = "/etc/cni/conf.d" 27 28 // CNIBinDir is the directory where CNI binaries are stored on the host. 29 CNIBinDir = "/opt/cni/bin" 30 )