This file is indexed.

/usr/share/gocode/src/github.com/google/cups-connector/cdd/cjs.go is in google-cloud-print-connector 0.0~git20151105.24.1902938-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
/*
Copyright 2015 Google Inc. All rights reserved.

Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/

package cdd

type PrintJobState struct {
	Version          string   `json:"version"`
	State            JobState `json:"state"`
	PagesPrinted     *int32   `json:"pages_printed,omitempty"`
	DeliveryAttempts *int32   `json:"delivery_attempts,omitempty"`
}

type PrintJobStateDiff struct {
	State        *JobState `json:"state,omitempty"`
	PagesPrinted *int32    `json:"pages_printed,omitempty"`
}

type JobStateType string

const (
	JobStateDraft      JobStateType = "DRAFT"
	JobStateHeld       JobStateType = "HELD"
	JobStateQueued     JobStateType = "QUEUED"
	JobStateInProgress JobStateType = "IN_PROGRESS"
	JobStateStopped    JobStateType = "STOPPED"
	JobStateDone       JobStateType = "DONE"
	JobStateAborted    JobStateType = "ABORTED"
)

type JobState struct {
	Type               JobStateType        `json:"type"`
	UserActionCause    *UserActionCause    `json:"user_action_cause,omitempty"`
	DeviceStateCause   *DeviceStateCause   `json:"device_state_cause,omitempty"`
	DeviceActionCause  *DeviceActionCause  `json:"device_action_cause,omitempty"`
	ServiceActionCause *ServiceActionCause `json:"service_action_cause,omitempty"`
}

type UserActionCauseCode string

const (
	UserActionCauseCanceled UserActionCauseCode = "CANCELLED" // Two L's
	UserActionCausePaused   UserActionCauseCode = "PAUSED"
	UserActionCauseOther    UserActionCauseCode = "OTHER"
)

type UserActionCause struct {
	ActionCode UserActionCauseCode `json:"action_code"`
}

type DeviceStateCauseCode string

const (
	DeviceStateCauseInputTray DeviceStateCauseCode = "INPUT_TRAY"
	DeviceStateCauseMarker    DeviceStateCauseCode = "MARKER"
	DeviceStateCauseMediaPath DeviceStateCauseCode = "MEDIA_PATH"
	DeviceStateCauseMediaSize DeviceStateCauseCode = "MEDIA_SIZE"
	DeviceStateCauseMediaType DeviceStateCauseCode = "MEDIA_TYPE"
	DeviceStateCauseOther     DeviceStateCauseCode = "OTHER"
)

type DeviceStateCause struct {
	ErrorCode DeviceStateCauseCode `json:"error_code"`
}

type DeviceActionCauseCode string

const (
	DeviceActionCauseDownloadFailure DeviceActionCauseCode = "DOWNLOAD_FAILURE"
	DeviceActionCauseInvalidTicket   DeviceActionCauseCode = "INVALID_TICKET"
	DeviceActionCausePrintFailure    DeviceActionCauseCode = "PRINT_FAILURE"
	DeviceActionCauseOther           DeviceActionCauseCode = "OTHER"
)

type DeviceActionCause struct {
	ErrorCode DeviceActionCauseCode `json:"error_code"`
}

type ServiceActionCauseCode string

const (
	ServiceActionCauseCommunication        ServiceActionCauseCode = "COMMUNICATION_WITH_DEVICE_ERROR"
	ServiceActionCauseConversionError      ServiceActionCauseCode = "CONVERSION_ERROR"
	ServiceActionCauseConversionFileTooBig ServiceActionCauseCode = "CONVERSION_FILE_TOO_BIG"
	ServiceActionCauseConversionType       ServiceActionCauseCode = "CONVERSION_UNSUPPORTED_CONTENT_TYPE"
	ServiceActionCauseDeliveryFailure      ServiceActionCauseCode = "DELIVERY_FAILURE"
	ServiceActionCauseExpiration           ServiceActionCauseCode = "EXPIRATION"
	ServiceActionCauseFetchForbidden       ServiceActionCauseCode = "FETCH_DOCUMENT_FORBIDDEN"
	ServiceActionCauseFetchNotFound        ServiceActionCauseCode = "FETCH_DOCUMENT_NOT_FOUND"
	ServiceActionCauseDriveQuota           ServiceActionCauseCode = "GOOGLE_DRIVE_QUOTA"
	ServiceActionCauseInconsistentJob      ServiceActionCauseCode = "INCONSISTENT_JOB"
	ServiceActionCauseInconsistentPrinter  ServiceActionCauseCode = "INCONSISTENT_PRINTER"
	ServiceActionCausePrinterDeleted       ServiceActionCauseCode = "PRINTER_DELETED"
	ServiceActionCauseRemoteJobNoExist     ServiceActionCauseCode = "REMOTE_JOB_NO_LONGER_EXISTS"
	ServiceActionCauseRemoteJobError       ServiceActionCauseCode = "REMOTE_JOB_ERROR"
	ServiceActionCauseRemoteJobTimeout     ServiceActionCauseCode = "REMOTE_JOB_TIMEOUT"
	ServiceActionCauseRemoteJobAborted     ServiceActionCauseCode = "REMOTE_JOB_ABORTED"
	ServiceActionCauseOther                ServiceActionCauseCode = "OTHER"
)

type ServiceActionCause struct {
	ErrorCode ServiceActionCauseCode `json:"error_code"`
}