poolEvent

package
v1.1.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {

	// Lifecycle event type default is 6, when occur a virStoragePoolEventLifecycleType (which
	// is less than 6) is emitted during storage pool lifecycle events. See more about Storage
	// Pool Event Type:
	// https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolEventLifecycleType
	EventLifecycle libvirt.StoragePoolEventLifecycle `json:"eventLifecycle"`

	// Refresh event default is 0, when occur it will change to 1.
	EventRefresh int `json:"eventRefresh"`
}

type Request

type Request struct {
	Uuid  string `default:"0"`
	Types string `default:"0"`
}

type Response

type Response struct {
	Response bool         `json:"response"`
	Code     int          `json:"code"`
	Data     Event        `json:"data"`
	Error    virest.Error `json:"error"`
}

Jump to

Keyboard shortcuts

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