models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package models contains the models for the database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DyldSharedCache

type DyldSharedCache struct {
	gorm.Model
	Version string `json:"version"`
	Header  string `json:"header"`
}

DyldSharedCache is the model for a dyld_shared_cache.

type File

type File struct {
	gorm.Model
	Name string      `json:"name"`
	Info os.FileInfo `json:"info"`
}

type FileSystem

type FileSystem struct {
	gorm.Model
	Files []File `json:"files"`
}

type IPSW

type IPSW struct {
	gorm.Model                   // adds ID, created_at etc.
	Version    string            `json:"version"`
	BuildID    string            `json:"buildid"`
	Devices    []string          `json:"devices"`
	Date       time.Time         `json:"date"`
	Kernels    []Kernelcache     `json:"kernels"`
	DSCs       []DyldSharedCache `json:"dscs"`
	Files      FileSystem        `json:"files"`
}

IPSW is the model for an IPSW file.

type Kernelcache

type Kernelcache struct {
	gorm.Model
	Version string `json:"version"`
}

Kernelcache is the model for a kernelcache.

Jump to

Keyboard shortcuts

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