Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
Storage stores information about something
func (*Storage) FindByID ¶
func (s *Storage) FindByID(id string) virtualmachine.TaskStatuser
func (*Storage) NewTask ¶
func (s *Storage) NewTask() virtualmachine.TaskStatuser
NewTask creates a new unique status for a task
type TaskStatus ¶
type TaskStatus struct { sync.RWMutex Status map[string]interface{} Created time.Time // contains filtered or unexported fields }
TaskStatus keep status messages and other metadata of task
func (*TaskStatus) Get ¶
func (t *TaskStatus) Get() (statuses map[string]interface{})
Get status messages from a task
func (*TaskStatus) Str ¶
func (t *TaskStatus) Str(keyvals ...string) virtualmachine.TaskStatuser
Str a key-value pairs to a task status message
func (*TaskStatus) StrArr ¶
func (t *TaskStatus) StrArr(key string, arr []string) virtualmachine.TaskStatuser
StrArr a key-value pairs to a task status message
Click to show internal directories.
Click to hide internal directories.