serviceInterface

package
v0.0.0-...-054b70b Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerPlatformInterface

type ContainerPlatformInterface interface {
	VirtualPlatformInterface

	ListContainer(clusterItem *domain.ResItem) ([]*model.Container, error)
	CreateContainer(queueId uint, image model.ContainerImage, computer model.Computer, cluster model.Cluster) (model.Container, error)
	DestroyContainer(ident string, computer model.Computer, cluster model.Cluster) error
}

type VirtualPlatformInterface

type VirtualPlatformInterface interface {
	GetNodeTree(clusterItem *domain.ResItem) error
}

type VmPlatformInterface

type VmPlatformInterface interface {
	VirtualPlatformInterface

	ListVm(clusterItem *domain.ResItem) ([]*model.Vm, error)
	CreateVm(name string, templ model.VmTempl, computer model.Computer, cluster model.Cluster) (string, error)
	DestroyVm(ident string, cluster model.Cluster) error
}

Jump to

Keyboard shortcuts

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