sshusercheckservice

package
v0.0.0-...-be2ef80 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSshUserCheckService

type MockSshUserCheckService struct {
	CheckSshUserDetailsFunc func(*models.SshUserChecksRequest) (*models.ChecksResponse, error)
}

func (*MockSshUserCheckService) CheckSshUserDetails

func (mssu *MockSshUserCheckService) CheckSshUserDetails(req *models.SshUserChecksRequest) (*models.ChecksResponse, error)

type SshUserCheckService

type SshUserCheckService interface {
	CheckSshUserDetails(*models.SshUserChecksRequest) (*models.ChecksResponse, error)
}

type SshUserServiceImpl

type SshUserServiceImpl struct {
	SshUtil sshutils.SSHUtil

	FileUtils fileutils.FileUtils
	// contains filtered or unexported fields
}

func NewSshUserCheckService

func NewSshUserCheckService(logger logger.Logger, fileutils fileutils.FileUtils, sshUtils sshutils.SSHUtil) *SshUserServiceImpl

func (*SshUserServiceImpl) CheckSshConnection

func (ssu *SshUserServiceImpl) CheckSshConnection(sshConfig sshutils.SSHConfig, ip string, sudoPassword string) ([]models.Checks, bool)

func (*SshUserServiceImpl) CheckSshUserDetails

func (ssu *SshUserServiceImpl) CheckSshUserDetails(req *models.SshUserChecksRequest) (*models.ChecksResponse, error)

Jump to

Keyboard shortcuts

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