server

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: 16 Imported by: 0

Documentation

Overview

Package server ipswd API

This allows you to interact with <code>ipsw</code> in a VERY powerful and flexible way via a RESTful API.

The <code>ipswd</code> design was heavily influenced by the design of dockerd. So many of the same concepts apply.

Schemes: http
Host: localhost:3993
BasePath: /v1
Version: v1.0

Consumes:
- application/json

Produces:
- application/json

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host    string
	Port    int
	Socket  string
	Debug   bool
	LogFile string
}

Config is the server config

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the main server struct

func NewServer

func NewServer(conf *Config) *Server

NewServer creates a new server

func (*Server) Start

func (s *Server) Start() error

Start starts the server

func (*Server) Stop

func (s *Server) Stop() error

Stop stops the server

Directories

Path Synopsis
Package routes contains all the routes for the API
Package routes contains all the routes for the API
daemon
Package daemon provides the daemon routes
Package daemon provides the daemon routes
devicelist
Package devicelist contains the /device_list routes for the API
Package devicelist contains the /device_list routes for the API
diff
Package diff provides /diff routes for diffing two files/text blobs
Package diff provides /diff routes for diffing two files/text blobs
download
Package download contains the /download routes
Package download contains the /download routes
dsc
Package dsc provides the /dsc route and handlers
Package dsc provides the /dsc route and handlers
extract
Package extract provides the /extract API route
Package extract provides the /extract API route
idev
Package idev provides the /idev route and handlers
Package idev provides the /idev route and handlers
info
Package info provides a route for getting info about an IPSW or OTA file
Package info provides a route for getting info about an IPSW or OTA file
kernel
Package kernel provides the /kernel routes
Package kernel provides the /kernel routes
mount
Package mount provides the /mount API route
Package mount provides the /mount API route
ota

Jump to

Keyboard shortcuts

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