Documentation
¶
Index ¶
- type Asset
- type Command
- type Host
- type ListHostFilter
- type ListNetworkFilter
- type ListNetworkHostFilter
- type Network
- type NetworkHost
- type NetworkHostContextExportPayload
- type NetworkHostDTO
- type NetworkHostExportPayload
- type NetworkHostSetup
- type NetworkInfo
- type NetworkInterface
- type NetworkService
- type NetworkWithStatus
- type Release
- type Timestamp
- type UpdateInfo
- type VPNService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
Size int64 `json:"size"`
}
Asset represents a GitHub release asset.
type Host ¶
type ListHostFilter ¶
type ListNetworkFilter ¶
type ListNetworkHostFilter ¶
type NetworkHost ¶
type NetworkHost struct {
ID uint64 `db:"id" json:"ID"`
NetworkID uint64 `db:"network_id" json:"NetworkID"`
Address string `db:"address" json:"Address"`
Description *string `db:"description" json:"Description"`
CreatedAt Timestamp `db:"created_at" json:"CreatedAt"`
}
func NewNetworkHost ¶
func NewNetworkHost(networkID uint64, address, description string) (*NetworkHost, error)
type NetworkHostContextExportPayload ¶
type NetworkHostContextExportPayload struct {
ExportDate time.Time `json:"export_date"`
Hosts []NetworkHostDTO `json:"hosts"`
}
NetworkHostContextExportPayload represents the structure for exporting network hosts from a specific network context where network ID is already known.
type NetworkHostDTO ¶
type NetworkHostDTO struct {
Address string `json:"address"`
Description string `json:"description,omitempty"`
}
NetworkHostDTO represents a network host without internal IDs for export/import.
type NetworkHostExportPayload ¶
type NetworkHostExportPayload struct {
ExportDate time.Time `json:"export_date"`
NetworkID uint64 `json:"network_id"`
Hosts []NetworkHostDTO `json:"hosts"`
}
NetworkHostExportPayload represents the structure for exporting/importing network hosts Used for system-wide exports that may include network ID context.
type NetworkHostSetup ¶
type NetworkHostSetup struct {
ID uint64 `db:"id" json:"ID"`
NetworkHostID uint64 `db:"network_host_id" json:"NetworkHostID"`
NetworkHostIP string `db:"network_host_ip" json:"NetworkHostIP"`
SubnetMask string `db:"subnet_mask" json:"SubnetMask"`
Router string `db:"router" json:"Router"`
CreatedAt Timestamp `db:"created_at" json:"CreatedAt"`
}
type NetworkInfo ¶
func (*NetworkInfo) String ¶
func (n *NetworkInfo) String() string
type NetworkInterface ¶
type NetworkInterface string
type NetworkService ¶
type NetworkService string
type NetworkWithStatus ¶
type Release ¶
type Release struct {
TagName string `json:"tag_name"`
Name string `json:"name"`
Body string `json:"body"`
Draft bool `json:"draft"`
Prerelease bool `json:"prerelease"`
PublishedAt time.Time `json:"published_at"`
Assets []Asset `json:"assets"`
HTMLURL string `json:"html_url"`
}
Release represents a GitHub release.
type Timestamp ¶
Timestamp is a custom time type that handles JSON marshaling properly for Wails.
func NewTimestamp ¶
func NewTimestamp() Timestamp
NewTimestamp creates a new Timestamp with the current time.
func TimestampFromTime ¶
TimestampFromTime creates a Timestamp from a time.Time.
func (*Timestamp) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface.
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler interface.
type UpdateInfo ¶
type UpdateInfo struct {
Available bool `json:"available"`
CurrentVersion string `json:"current_version"`
LatestVersion string `json:"latest_version"`
ReleaseNotes string `json:"release_notes"`
DownloadURL string `json:"download_url"`
ReleasePageURL string `json:"release_page_url"`
PublishedAtAsString string `json:"published_at"`
HomebrewCommand string `json:"homebrew_command"`
}
UpdateInfo represents update information.
type VPNService ¶
type VPNService string