check

package
v1.2.2-0...-1fea88e Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Form  *AuthForm
	Token *AuthToken
}

type AuthForm

type AuthForm struct {
	Category string
	Username string
	Password string
}

type AuthMethod

type AuthMethod int
const (
	AuthMethodUnknown AuthMethod = iota
	AuthMethodForm
	AuthMethodToken
)

type AuthToken

type AuthToken struct {
	Token string
}

type Check

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

func NewCheck

func NewCheck(cfg cfg.Check, log *zerolog.Logger) *Check

func (*Check) CheckHypervisor

func (c *Check) CheckHypervisor(ctx context.Context, authMethod AuthMethod, auth Auth, host, hyperID, templateID string, failSelfSigned, failMaintenance bool) (CheckResult, error)

func (*Check) CheckIsardVDI

func (c *Check) CheckIsardVDI(ctx context.Context, authMethod AuthMethod, auth Auth, host, templateID string, failSelfSigned, failMaintenance bool) (CheckResult, error)

type CheckResult

type CheckResult struct {
	IsardVDIVersion      string
	MaintenanceMode      bool
	DependenciesVersions DependenciesVersions
	HypervisorNum        int
}

type DependenciesVersions

type DependenciesVersions struct {
	Remmina      string
	RemoteViewer string
	WireGuard    string
}

type Interface

type Interface interface {
	CheckIsardVDI(ctx context.Context, authMethod AuthMethod, auth Auth, host, templateID string, failSelfSigned, failMaintenance bool) (CheckResult, error)
	CheckHypervisor(ctx context.Context, authMethod AuthMethod, auth Auth, host, hyperID, templateID string, failSelfSigned, failMaintenance bool) (CheckResult, error)
}

Jump to

Keyboard shortcuts

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