models

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 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 ListContainersModel

type ListContainersModel struct {
	Docker struct {
		Containers []struct {
			ID    string `json:"id"`
			Image string `json:"image"`
			State string `json:"state"`
		} `json:"containers"`
	} `json:"docker"`
}

func (*ListContainersModel) String

func (m *ListContainersModel) String() string

type ListSharesModel added in v0.4.0

type ListSharesModel struct {
	Shares []Share `json:"shares"`
}

func (*ListSharesModel) String added in v0.4.0

func (m *ListSharesModel) String() string

type ListVMsModel

type ListVMsModel struct {
	VMs struct {
		ID      string `json:"id"`
		Domains []struct {
			Name  string `json:"name"`
			State string `json:"state"`
			Id    string `json:"id"`
		} `json:"domains"`
	} `json:"vms"`
}

func (*ListVMsModel) String

func (m *ListVMsModel) String() string

type MutateArrayModel

type MutateArrayModel struct {
	Id string `json:"id"`
}

func (*MutateArrayModel) String

func (m *MutateArrayModel) String() string

type Share added in v0.4.0

type Share struct {
	Name string `json:"name"`
	Free int    `json:"free"`
	Used int    `json:"used"`
}

func (*Share) String added in v0.4.0

func (s *Share) String() string

type ShowArrayModel

type ShowArrayModel struct {
	Array struct {
		State string `json:"state"`
	} `json:"array"`
}

func (*ShowArrayModel) String

func (m *ShowArrayModel) String() string

type StartContainerModel

type StartContainerModel struct {
	Docker struct {
		Start struct {
			ID string `json:"id"`
		} `json:"start"`
	} `json:"docker"`
}

func (*StartContainerModel) String

func (m *StartContainerModel) String() string

type StartVMModel

type StartVMModel struct {
	Id string `json:"id"`
}

func (*StartVMModel) String

func (m *StartVMModel) String() string

type StopContainerModel

type StopContainerModel struct {
	Docker struct {
		Stop struct {
			ID string `json:"id"`
		} `json:"stop"`
	} `json:"docker"`
}

func (*StopContainerModel) String

func (m *StopContainerModel) String() string

type StopVMModel

type StopVMModel struct {
	Id string `json:"id"`
}

func (*StopVMModel) String

func (m *StopVMModel) String() string

Jump to

Keyboard shortcuts

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