{"id":13339920,"url":"https://github.com/andrewstuart/soffit-go","last_synced_at":"2025-08-20T10:03:35.238Z","repository":{"id":57480254,"uuid":"64558822","full_name":"andrewstuart/soffit-go","owner":"andrewstuart","description":null,"archived":false,"fork":false,"pushed_at":"2017-05-26T17:27:25.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T06:41:54.493Z","etag":null,"topics":["soffit","uportal"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewstuart.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}},"created_at":"2016-07-30T18:35:16.000Z","updated_at":"2017-05-25T21:44:49.000Z","dependencies_parsed_at":"2022-09-26T17:41:38.765Z","dependency_job_id":null,"html_url":"https://github.com/andrewstuart/soffit-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fsoffit-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fsoffit-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fsoffit-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fsoffit-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewstuart","download_url":"https://codeload.github.com/andrewstuart/soffit-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246100418,"owners_count":20723466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["soffit","uportal"],"created_at":"2024-07-29T19:21:21.754Z","updated_at":"2025-03-28T20:38:05.630Z","avatar_url":"https://github.com/andrewstuart.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# soffit\n--\n    import \"astuart.co/soffit-go\"\n\nPackage soffit provides data structures for the data types one can expect from\nthe uPortal Soffit portlet. This should help enable more rapid iteration when\nworking in a soffit environment.\n\n## Usage\n\n#### type Context\n\n```go\ntype Context struct {\n\tPortalInfo            PortalInfo `json:\"portalInfo\"`\n\tSupportedWindowStates []string   `json:\"supportedWindowStates\"`\n\tAttributes            url.Values `json:\"attributes\"`\n}\n```\n\nContext represents information about the portal creating the request\n\n#### type Payload\n\n```go\ntype Payload struct {\n\tRequest Request     `json:\"request\"`\n\tUser    UserDetails `json:\"user\"`\n\tContext Context     `json:\"context\"`\n}\n```\n\nPayload is the tentative name for the main Soffit request body\n\n#### type PortalInfo\n\n```go\ntype PortalInfo struct {\n\tProvider string         `json:\"provider\"`\n\tVersion  semver.Version `json:\"version\"`\n\tSnapshot bool           `json:\"snapshot\"`\n}\n```\n\nPortalInfo is the representation of the portal information sent by the uPortal\nserver.\n\n#### func (*PortalInfo) UnmarshalJSON\n\n```go\nfunc (p *PortalInfo) UnmarshalJSON(bs []byte) error\n```\nUnmarshalJSON implements json.Unmarshaler\n\n#### type Request\n\n```go\ntype Request struct {\n\tMode        string `json:\"mode\"`\n\tWindowID    string `json:\"windowId\"`\n\tNamespace   string `json:\"namespace\"`\n\tWindowState string `json:\"windowState\"`\n\n\tProperties  map[string]string `json:\"properties\"`\n\tPreferences url.Values        `json:\"preferences\"`\n\tAttributes  url.Values        `json:\"attributes\"`\n}\n```\n\nRequest is the go representation of the Soffit JSON request format v_1.\n\n#### type UserDetails\n\n```go\ntype UserDetails struct {\n\tUsername   string     `json:\"username\"`\n\tAttributes url.Values `json:\"attributes\"`\n\tRoles      []string   `json:\"roles\"`\n\tGroups     []string   `json:\"groups\"`\n}\n```\n\nUserDetails is the representation of the user information sent by uPortal.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewstuart%2Fsoffit-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewstuart%2Fsoffit-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewstuart%2Fsoffit-go/lists"}