sshDevClient

package
v1.19.20-beta0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoAccountDelete

func DoAccountDelete(logger *log.Entry, username string) error

func DoUserProcessKill

func DoUserProcessKill(logger *log.Entry, username string)

DoUserProcessKill 当用户没有进程时,将会产生 error,所以忽略 error

func LinuxUserPreset

func LinuxUserPreset(logger *log.Entry, username string) error

func SshAccountSet

func SshAccountSet(account *proto.SshAccount) error

SshAccountSet 返回 error 代表流需要重启

func SshAccountSync

func SshAccountSync(msg *proto.AccountStream) error

Types

type Config

type Config struct {
	Token string `yaml:"token"`
	Addr  string `yaml:"addr"`
}

func ReadConfig

func ReadConfig() Config

type GrpcAuth

type GrpcAuth struct {
	Token string
}

func (*GrpcAuth) GetRequestMetadata

func (a *GrpcAuth) GetRequestMetadata(_ context.Context, _ ...string) (map[string]string, error)

func (*GrpcAuth) RequireTransportSecurity

func (a *GrpcAuth) RequireTransportSecurity() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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