Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrCast = errors.New("unable to cast")
Functions ¶
func CastToSlice ¶
func LookupGroup ¶ added in v1.16.0
LookupGroup returns the numeric gid for groupName. It accepts either a numeric string or a system group name and returns an error if the group cannot be resolved.
func StringConcat ¶ added in v1.6.0
StringConcat concatenates all provided strings and returns the result. It avoids intermediate allocations by using a strings.Builder.
func TransformCommonName ¶ added in v1.12.0
func TransformCommonName(mode config.OpenVPNCommonNameMode, commonName string) string
TransformCommonName returns the common name according to the provided mode. If mode is CommonNameModePlain the original name is returned, otherwise CommonNameModeOmitValue is returned.
Types ¶
type OverlayFS ¶ added in v1.20.0
type OverlayFS struct {
// contains filtered or unexported fields
}
func NewOverlayFS ¶ added in v1.20.0
NewOverlayFS creates a filesystem that overlays the provided overlay over the base root filesystem. Files present in the overlay take precedence over files in the root.
type UserAgentTransport ¶ added in v1.13.0
type UserAgentTransport struct {
// contains filtered or unexported fields
}
func NewUserAgentTransport ¶ added in v1.13.0
func NewUserAgentTransport(rt http.RoundTripper) *UserAgentTransport
NewUserAgentTransport returns a transport that sets a default User-Agent header for all requests. If rt is nil the http.DefaultTransport is used.