service

package
v0.1.2-0...-df60a3f Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginService

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

func NewLoginService

func NewLoginService(api *proxmox.Client, ssh *ssh.Client) *LoginService

func (*LoginService) Login

func (l *LoginService) Login(username string, password string, host string) error

type ProjectData

type ProjectData struct {
	KubeConfig string         `json:"kubeConfig" yaml:"kubeConfig"`
	SshKey     ssh.RsaKeyPair `json:"sshKey" yaml:"sshKey"`
	Cluster    k4p.Cluster    `json:"cluster" yaml:"cluster"`
}

type ProjectService

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

func NewProjectService

func NewProjectService(proxmoxClient *proxmox.Client) *ProjectService

func (*ProjectService) GetDefaultNetwork

func (p *ProjectService) GetDefaultNetwork() (proxmox.Network, error)

func (*ProjectService) GetDefaultStorage

func (p *ProjectService) GetDefaultStorage() (string, error)

func (*ProjectService) GetDefaultVmId

func (p *ProjectService) GetDefaultVmId() (uint32, error)

func (*ProjectService) GetFirstAddressFromFreePool

func (p *ProjectService) GetFirstAddressFromFreePool() (string, int, error)

func (*ProjectService) LoadProject

func (p *ProjectService) LoadProject() (ProjectData, error)

func (*ProjectService) OpenProjectDialog

func (p *ProjectService) OpenProjectDialog() (bool, error)

func (*ProjectService) SaveKubeConfigDialog

func (p *ProjectService) SaveKubeConfigDialog() error

func (*ProjectService) SaveProject

func (p *ProjectService) SaveProject(project ProjectData) error

func (*ProjectService) SaveProjectDialog

func (p *ProjectService) SaveProjectDialog() (bool, error)

func (*ProjectService) SaveSshAuthorizationKeyDialog

func (p *ProjectService) SaveSshAuthorizationKeyDialog() error

func (*ProjectService) SaveSshPrivateKeyDialog

func (p *ProjectService) SaveSshPrivateKeyDialog() error

func (*ProjectService) SetContext

func (p *ProjectService) SetContext(ctx context.Context)

type ProvisionerService

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

func NewProvisionerService

func NewProvisionerService(
	projectService *ProjectService,
	proxmoxClient *proxmox.Client,
	sshClient *ssh.Client,
	eventCollector *event.Collector) *ProvisionerService

func (*ProvisionerService) CreateCluster

func (p *ProvisionerService) CreateCluster(provisionRequest k4p.ProvisionRequest) error

func (*ProvisionerService) GetNetworkBridges

func (p *ProvisionerService) GetNetworkBridges() ([]string, error)

func (*ProvisionerService) GetStorage

func (p *ProvisionerService) GetStorage() ([]string, error)

func (*ProvisionerService) SetupEnvironmentOnProxmox

func (p *ProvisionerService) SetupEnvironmentOnProxmox() error

type TaskLogService

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

func NewTaskLogService

func NewTaskLogService(eventCollector *event.Collector, taskLogReader *tasklog.Reader) *TaskLogService

func (*TaskLogService) ClearTaskLog

func (t *TaskLogService) ClearTaskLog() int

func (*TaskLogService) GetTaskLog

func (t *TaskLogService) GetTaskLog() []tasklog.Task

type WailsContext

type WailsContext interface {
	SetContext(ctx context.Context)
}

Jump to

Keyboard shortcuts

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