{"id":41413795,"url":"https://github.com/phin1x/go-ipp","last_synced_at":"2026-01-23T13:41:35.066Z","repository":{"id":51259346,"uuid":"174858030","full_name":"phin1x/go-ipp","owner":"phin1x","description":"Pure Go IPP library","archived":false,"fork":false,"pushed_at":"2023-09-12T08:54:07.000Z","size":111,"stargazers_count":129,"open_issues_count":4,"forks_count":33,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-18T15:38:03.930Z","etag":null,"topics":["cups","go","golang","ipp","printing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phin1x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-10T17:37:26.000Z","updated_at":"2024-06-13T09:14:13.000Z","dependencies_parsed_at":"2024-06-18T15:31:02.780Z","dependency_job_id":null,"html_url":"https://github.com/phin1x/go-ipp","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/phin1x/go-ipp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phin1x%2Fgo-ipp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phin1x%2Fgo-ipp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phin1x%2Fgo-ipp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phin1x%2Fgo-ipp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phin1x","download_url":"https://codeload.github.com/phin1x/go-ipp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phin1x%2Fgo-ipp/sbom","scorecard":{"id":731815,"data":{"date":"2025-08-11","repo":{"name":"github.com/phin1x/go-ipp","commit":"091da977c0e98bca4d813bd1ada1069fc7227df3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":5,"reason":"Found 10/17 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T14:39:33.323Z","repository_id":51259346,"created_at":"2025-08-22T14:39:33.323Z","updated_at":"2025-08-22T14:39:33.323Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28693331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cups","go","golang","ipp","printing"],"created_at":"2026-01-23T13:41:34.270Z","updated_at":"2026-01-23T13:41:35.048Z","avatar_url":"https://github.com/phin1x.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-ipp\n\n[![Version](https://img.shields.io/github/release-pre/phin1x/go-ipp.svg)](https://github.com/phin1x/go-ipp/releases/tag/v1.6.1)\n[![Documentation](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white)](https://pkg.go.dev/github.com/phin1x/go-ipp?tab=doc)\n[![Go Report Card](https://goreportcard.com/badge/github.com/phin1x/go-ipp)](https://goreportcard.com/report/github.com/phin1x/go-ipp)\n[![Licence](https://img.shields.io/github/license/phin1x/go-ipp.svg)](https://github.com/phin1x/go-ipp/blob/master/LICENSE)\n\n## Go Get\n\nTo get the package, execute:\n```\ngo get -u github.com/phin1x/go-ipp\n```\n\n## Features\n\n* only depends on the standard go library (only dependency is for testing)\n* basic ipp 2.0 compatible Client\n* extended client for cups server\n* create custom ipp requests\n* parse ipp responses and ipp control files\n\n## Example\n\nPrint a file with the ipp client\n\n```go\npackage main\n\nimport \"github.com/phin1x/go-ipp\"\n\nfunc main() {\n    // create a new ipp client\n    client := ipp.NewIPPClient(\"printserver\", 631, \"user\", \"password\", true)\n    // print file\n    client.PrintFile(\"/path/to/file\", \"my-printer\", map[string]interface{}{})\n}\n```\n\nCraft and send a custom request\n\n```go\n\npackage main\n\nimport \"github.com/phin1x/go-ipp\"\n\nfunc main() {             \n    // define a ipp request\n    req := ipp.NewRequest(ipp.OperationGetJobs, 1)\n    req.OperationAttributes[ipp.AttributeWhichJobs] = \"completed\"\n    req.OperationAttributes[ipp.AttributeMyJobs] = myJobs\n    req.OperationAttributes[ipp.AttributeFirstJobID] = 42\n    req.OperationAttributes[ipp.AttributeRequestingUserName] = \"fabian\"\n    \n    // encode request to bytes\n    payload, err := req.Encode()\n    if err != nil {\n        panic(err)\n    }\n    \n    // send ipp request to remote server via http\n    httpReq, err := http.NewRequest(\"POST\", \"http://my-print-server:631/printers/my-printer\", bytes.NewBuffer(payload))\n    if err != nil {\n        panic(err)\n    }\n    \n    // set ipp headers\n    httpReq.Header.Set(\"Content-Length\", len(payload))\n    httpReq.Header.Set(\"Content-Type\", ipp.ContentTypeIPP)\n    \n    httpClient := \u0026http.Client()\n    httpResp, err := httpClient.Do(httpReq)\n    if err != nil {\n        panic(err)\n    }\n    defer httpResp.Body.Close()\n    \n    // response must be 200 for a successful operation\n    // other possible http codes are: \n    // - 500 -\u003e server error\n    // - 426 -\u003e sever requests a encrypted connection\n    // - 401 -\u003e forbidden -\u003e need authorization header or user is not permitted\n    if httpResp.StatusCode != 200 {\n        panic(\"non 200 response from server\")\n    }\n    \n    // decode ipp response\n    resp, err := ipp.NewResponseDecoder(httpResp.Body).Decode(nil)\n    if err != nil {\n        panic(err)\n    }\n    \n    // check if the response status is \"ok\" \n    if err := resp.CheckForErrors(); err != nil {\n        panic(err)\n    }\n    \n    // do something with the returned data\n    for _, job := resp.JobAttributes {\n        // ...\n    }\n}\n```\n\n## Licence\n\nApache Licence Version 2.0\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphin1x%2Fgo-ipp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphin1x%2Fgo-ipp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphin1x%2Fgo-ipp/lists"}