client

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckApplicationError

func CheckApplicationError(resp *http.Response) error

func GetInitScripts

func GetInitScripts() ([]models.InitScriptState, error)

GetInitScripts fetches a snapshot of all init script states from the daemon.

func HijackAttach

func HijackAttach(sessionId string) (net.Conn, error)

HijackAttach opens a raw connection to POST /api/v1/shells/{id}/attach. It sends the HTTP request manually, reads the "HTTP/1.1 101 Switching Protocols" response, drains the remaining headers, and returns the bare net.Conn ready for PTY I/O.

func MakeRequest

func MakeRequest(method string, url string, headers map[string]string, data io.Reader) (*http.Response, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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