// itemToGithubConnector attempts to decode the supplied `backend.Item` as
// a github connector resource.
itemToGithubConnector attempts to decode the supplied `backend.Item` as
a github connector resource.
// itemToGithubConnector attempts to decode the supplied ` backend . Item ` as // a github connector resource .
func itemToGithubConnector(item backend.Item) (services.GithubConnector, error) {
	gc, err := services.GetGithubConnectorMarshaler().Unmarshal(item.Value)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	return gc, nil
}
func itemToGithubConnector ( item backend . Item ) ( services . GithubConnector , error ) { gc , err := services . GetGithubConnectorMarshaler ( ) . Unmarshal ( item . Value ) if err != nil { return nil , trace . Wrap ( err ) } return gc , nil }
itemToGithubConnector attempts to decode the supplied `backend.Item` as
a github connector resource.
itemToGithubConnector attempts to decode the supplied ` backend . Item ` as a github connector resource .
// XXX: The `GithubConnectorMarshaler` interface is an outlier in that it // does not support marshal options (e.g. `WithResourceID(..)`).  Support should // be added unless this is an intentional omission.