imageunpacker

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 18

Documentation

Index

Constants

View Source
const (
	StatusStreamNoDevice     = 0
	StatusStreamNotMounted   = 1
	StatusStreamMounted      = 2
	StatusStreamScanning     = 3
	StatusStreamScanned      = 4
	StatusStreamFetching     = 5
	StatusStreamUpdating     = 6
	StatusStreamPreparing    = 7
	StatusStreamExporting    = 8
	StatusStreamNoFileSystem = 9
	StatusStreamTransferring = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociateStreamWithDeviceRequest

type AssociateStreamWithDeviceRequest struct {
	StreamName string
	DeviceId   string
}

type AssociateStreamWithDeviceResponse

type AssociateStreamWithDeviceResponse struct{}

type ClaimDeviceRequest added in v0.3.2

type ClaimDeviceRequest struct {
	DeviceId   string
	DeviceName string // Relative to "/dev" directory.
}

type ClaimDeviceResponse added in v0.3.2

type ClaimDeviceResponse struct{}

type DeviceInfo

type DeviceInfo struct {
	DeviceName string
	Size       uint64
	StreamName string
}

type ExportImageRequest

type ExportImageRequest struct {
	StreamName  string
	Type        string
	Destination string
}

type ExportImageResponse

type ExportImageResponse struct{}

type ForgetStreamRequest added in v0.3.2

type ForgetStreamRequest struct {
	StreamName string
}

type ForgetStreamResponse added in v0.3.2

type ForgetStreamResponse struct{}

type GetRawRequest added in v0.3.2

type GetRawRequest struct {
	StreamName string
}

type GetRawResponse added in v0.3.2

type GetRawResponse struct {
	Error string
	Size  uint64

} // Image data are streamed afterwards.

type GetStatusRequest

type GetStatusRequest struct{}

type GetStatusResponse

type GetStatusResponse struct {
	Devices           map[string]DeviceInfo      // Key: DeviceId.
	ImageStreams      map[string]ImageStreamInfo // Key: StreamName.
	TimeSinceLastUsed time.Duration
}

type ImageStreamInfo

type ImageStreamInfo struct {
	DeviceId string
	Status   StreamStatus
}

type PrepareForCaptureRequest

type PrepareForCaptureRequest struct {
	StreamName string
}

type PrepareForCaptureResponse

type PrepareForCaptureResponse struct{}

type PrepareForCopyRequest

type PrepareForCopyRequest struct {
	StreamName string
}

type PrepareForCopyResponse

type PrepareForCopyResponse struct{}

type PrepareForUnpackRequest

type PrepareForUnpackRequest struct {
	StreamName         string
	SkipIfPrepared     bool
	DoNotWaitForResult bool
}

type PrepareForUnpackResponse

type PrepareForUnpackResponse struct{}

type RemoveDeviceRequest

type RemoveDeviceRequest struct {
	DeviceId string
}

type RemoveDeviceResponse

type RemoveDeviceResponse struct{}

type StreamStatus

type StreamStatus uint

func (StreamStatus) String

func (status StreamStatus) String() string

type UnpackImageRequest

type UnpackImageRequest struct {
	StreamName    string
	ImageLeafName string
}

type UnpackImageResponse

type UnpackImageResponse struct{}

Jump to

Keyboard shortcuts

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