utils

package
v1.21.6 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCast = errors.New("unable to cast")

Functions

func CastToSlice

func CastToSlice[T any](tokenGroups any) ([]T, error)

func LookupGroup

func LookupGroup(groupName string) (int, error)

func StringConcat

func StringConcat(strs ...string) string

func TransformCommonName

func TransformCommonName(mode config.OpenVPNCommonNameMode, commonName string) string

Types

type OverlayFS

type OverlayFS struct {
	// contains filtered or unexported fields
}

func NewOverlayFS

func NewOverlayFS(fs, over fs.FS) *OverlayFS

func (*OverlayFS) Open

func (f *OverlayFS) Open(name string) (fs.File, error)

type UserAgentTransport

type UserAgentTransport struct {
	// contains filtered or unexported fields
}

func NewUserAgentTransport

func NewUserAgentTransport(rt http.RoundTripper) *UserAgentTransport

func (*UserAgentTransport) RoundTrip

func (adt *UserAgentTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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