Documentation ¶
Index ¶
- func BuildDigestHeader(method string, uri string, realm string, nonce string, username string, ...) (string, error)
- func DeleteFile(file string, host string, username string, password string) error
- func GenericDelete(host string, path string, username string, password string) error
- func GenericGet[Res any](host string, path string, username string, password string) (*Res, error)
- func Md5Hash(s string) string
- func Perform(client *http.Client, req *http.Request, username string, password string) (*http.Response, error)
- type DigestResponse
- type FileItemResponse
- type FilesResponse
- type JobFileResponse
- type JobResponse
- type StatusJobResponse
- type StatusPrinterResponse
- type StatusResponse
- type StorageInfoResponse
- type StorageResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDigestHeader ¶
func GenericDelete ¶
func GenericGet ¶
Types ¶
type DigestResponse ¶
func ParseDigestResponse ¶
func ParseDigestResponse(s string) (*DigestResponse, error)
type FileItemResponse ¶
type FilesResponse ¶
type FilesResponse struct { Type string `json:"type"` ReadOnly bool `json:"ro"` Name string `json:"name"` Children []FileItemResponse `json:"children"` }
type JobFileResponse ¶
type JobResponse ¶
type StatusJobResponse ¶
type StatusPrinterResponse ¶
type StatusPrinterResponse struct {
State string `json:"state"`
}
type StatusResponse ¶
type StatusResponse struct { Job StatusJobResponse `json:"job"` Printer StatusPrinterResponse `json:"printer"` }
type StorageInfoResponse ¶
type StorageResponse ¶
type StorageResponse struct {
StorageList []StorageInfoResponse `json:"storage_list"`
}
func GetStorage ¶
func GetStorage(host string, username string, password string) (*StorageResponse, error)
Click to show internal directories.
Click to hide internal directories.