utils

package
v1.0.0-beta.20240501 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAuthToFile

func AddAuthToFile(user, pubKey, sshDir string) error

func AuthFromFile

func AuthFromFile(ctx ssh.Context, key ssh.PublicKey, sshDir string) bool

func FileExited

func FileExited(path string) bool

FileExited check file exited

func FilePath

func FilePath(path string) string

FilePath replace ~ -> $HOME

func IsDirector

func IsDirector(path string) bool

IsDirector IsDir

Types

type Ldap

type Ldap struct {
	Conn   *ldap.Conn
	Config config.WithLdap
}

func NewLdap

func NewLdap(config config.WithLdap) (*Ldap, error)

func (*Ldap) Login

func (l *Ldap) Login(username, password string) error

Jump to

Keyboard shortcuts

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