Documentation ¶
Index ¶
- type CUPS
- func (c *CUPS) ConnQtyMax() uint
- func (c *CUPS) ConnQtyOpen() uint
- func (c *CUPS) GetJobState(jobID uint32) (cdd.PrintJobStateDiff, error)
- func (c *CUPS) GetPrinters() ([]lib.Printer, error)
- func (c *CUPS) Print(printername, filename, title, user, gcpJobID string, ...) (uint32, error)
- func (c *CUPS) Quit()
- func (c *CUPS) RemoveCachedPPD(printername string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CUPS ¶
type CUPS struct {
// contains filtered or unexported fields
}
Interface between Go and the CUPS API.
func (*CUPS) ConnQtyMax ¶
ConnQtyOpen gets the maximum quantity of open CUPS connections.
func (*CUPS) ConnQtyOpen ¶
ConnQtyOpen gets the current quantity of open CUPS connections.
func (*CUPS) GetJobState ¶
func (c *CUPS) GetJobState(jobID uint32) (cdd.PrintJobStateDiff, error)
GetJobState gets the current state of the job indicated by jobID.
func (*CUPS) GetPrinters ¶
GetPrinters gets all CUPS printers found on the CUPS server.
func (*CUPS) Print ¶
func (c *CUPS) Print(printername, filename, title, user, gcpJobID string, ticket *cdd.CloudJobTicket) (uint32, error)
Print sends a new print job to the specified printer. The job ID is returned.
func (*CUPS) RemoveCachedPPD ¶
RemoveCachedPPD removes a printer's PPD from the cache.
Click to show internal directories.
Click to hide internal directories.