Documentation ¶
Index ¶
- type CUPS
- func (c *CUPS) ConnQtyMax() uint
- func (c *CUPS) ConnQtyOpen() uint
- func (c *CUPS) GetJobState(_ string, jobID uint32) (*cdd.PrintJobStateDiff, error)
- func (c *CUPS) GetPrinters() ([]lib.Printer, error)
- func (c *CUPS) Print(printer *lib.Printer, filename, title, user, gcpJobID string, ...) (uint32, error)
- func (c *CUPS) Quit()
- func (c *CUPS) ReleaseJob(printerName string, jobID uint32) error
- 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 NewCUPS ¶
func NewCUPS(infoToDisplayName, prefixJobIDToJobTitle bool, displayNamePrefix string, printerAttributes, vendorPPDOptions []string, maxConnections uint, connectTimeout time.Duration, printerBlacklist, printerWhitelist []string, ignoreRawPrinters bool, ignoreClassPrinters bool, fcmNotificationsEnable bool) (*CUPS, error)
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 ¶
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(printer *lib.Printer, 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.