Documentation ¶
Overview ¶
Package lp provides an API for interacting with the CUPS daemon on Chrome OS via lp/lpstat/lpamin/etc.
Index ¶
- func CupsAddPrinter(ctx context.Context, printerName, uri, ppd string) error
- func CupsRemovePrinter(ctx context.Context, printerName string) error
- func CupsStartPrintJob(ctx context.Context, printerName, toPrint string) (job string, err error)
- func JobCompleted(ctx context.Context, printerName, job string) (bool, error)
- func PrinterNameByURI(ctx context.Context, uri string) (name string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CupsAddPrinter ¶
CupsAddPrinter adds a new printer using CUPS. Returns an error if the ppd is empty or lpadmin fails.
func CupsRemovePrinter ¶
CupsRemovePrinter removes the printer that was configured for testing.
func CupsStartPrintJob ¶
CupsStartPrintJob starts a new print job for the file toPrint. Returns the ID of the newly created job if successful.
func JobCompleted ¶
JobCompleted checks whether or not the given print job has been marked as completed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.