)]}'
{
  "commit": "0175d7ab5a5f0414fa4a472b7cf0e066fe8e5f66",
  "tree": "6c519e0d656373c0fbe273f4e6eeb5747fa329c7",
  "parents": [
    "997faa44e945697717b2eaf22786ba803f741a1e"
  ],
  "author": {
    "name": "Jan Schär",
    "email": "jan@monogon.tech",
    "time": "Wed Mar 26 12:57:23 2025 +0000"
  },
  "committer": {
    "name": "Jan Schär",
    "email": "jan@monogon.tech",
    "time": "Mon Apr 07 10:21:53 2025 +0000"
  },
  "message": "osbase/net/sshtakeover: refactor package\n\nThis is an extensive refactoring of the sshtakeover package.\n\nThe package is renamed from //go/net/ssh to //osbase/net/sshtakeover,\nto make it more clear what the package is for and avoid clashes with\ngolang.org/x/crypto/ssh.\n\nThe previous Client type was removed, and Dial is now a top-level\nfunction which takes an ssh.ClientConfig. The previous Connection type\nwas renamed to Client, which makes the naming match ssh.Client.\n\nThe Client interface type was moved to //cloud/shepherd/manager. This\nallows us to add more functions to sshtakeover.Client without breaking\nconsumers of the package, which would need to add dummy implementations\nfor functions which they don\u0027t need.\n\nThe Upload function was renamed to UploadExecutable, and the new Upload\nfunction can be used for files that don\u0027t need to be executable.\n\nThe sftp client is now created at the same time as the client, instead\nof creating a new one for each uploaded file.\n\nChange-Id: I3be9c346713cb4e5c2b33f9c8c9a6f11ca569a75\nReviewed-on: https://review.monogon.dev/c/monogon/+/4047\nTested-by: Jenkins CI\nReviewed-by: Tim Windelschmidt \u003ctim@monogon.tech\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "aa61caabbadeba1f678026ee9e361be6e8b07971",
      "old_mode": 33188,
      "old_path": "cloud/shepherd/manager/BUILD.bazel",
      "new_id": "92a2ffe278b3d1387310225f65fac9cdb9634225",
      "new_mode": 33188,
      "new_path": "cloud/shepherd/manager/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "d932210347e4d282d815cc44c080411d3e9b8ae6",
      "old_mode": 33188,
      "old_path": "cloud/shepherd/manager/fake_ssh_client.go",
      "new_id": "97de57522023db5bf8b2585a3bbcf6cf05b33545",
      "new_mode": 33188,
      "new_path": "cloud/shepherd/manager/fake_ssh_client.go"
    },
    {
      "type": "modify",
      "old_id": "f4495e8240a00d06d4781d0a799867069d55fba9",
      "old_mode": 33188,
      "old_path": "cloud/shepherd/manager/initializer.go",
      "new_id": "d9e35796751a120454897f013a2304d6658f35e2",
      "new_mode": 33188,
      "new_path": "cloud/shepherd/manager/initializer.go"
    },
    {
      "type": "modify",
      "old_id": "3c95527bfd26f05bf81a7598b91612819fdd3ee7",
      "old_mode": 33188,
      "old_path": "cloud/shepherd/manager/initializer_test.go",
      "new_id": "3b4104409a4e4bab2cd0c9fdc1ac22208034c6fa",
      "new_mode": 33188,
      "new_path": "cloud/shepherd/manager/initializer_test.go"
    },
    {
      "type": "modify",
      "old_id": "003fd5efe205eeaa7e10c68c155ae9c785e59213",
      "old_mode": 33188,
      "old_path": "cloud/shepherd/manager/provider_test.go",
      "new_id": "2dc3fa94296f37f67e4772e8b0ac5c2ce40ceecb",
      "new_mode": 33188,
      "new_path": "cloud/shepherd/manager/provider_test.go"
    },
    {
      "type": "modify",
      "old_id": "948eb4013206d71e6528ef3ee598173b27f43f9a",
      "old_mode": 33188,
      "old_path": "cloud/shepherd/mini/BUILD.bazel",
      "new_id": "7b1a7ad56394e8e3f10179a148ed04bcdccfef01",
      "new_mode": 33188,
      "new_path": "cloud/shepherd/mini/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "75a50050c6cfa3ee1cdd0b9e078da37afe4cdfe1",
      "old_mode": 33188,
      "old_path": "cloud/shepherd/mini/main.go",
      "new_id": "b056d20d78249f30ab07330fde747f69ac2c955a",
      "new_mode": 33188,
      "new_path": "cloud/shepherd/mini/main.go"
    },
    {
      "type": "modify",
      "old_id": "dceafc438417124a30022117591c672ac6bd4941",
      "old_mode": 33188,
      "old_path": "cloud/shepherd/mini/ssh.go",
      "new_id": "59cefca18d46b48112422330758282855ab27faf",
      "new_mode": 33188,
      "new_path": "cloud/shepherd/mini/ssh.go"
    },
    {
      "type": "modify",
      "old_id": "23502b365c27c1a6882bea2363e3ef443cbbde28",
      "old_mode": 33188,
      "old_path": "cloud/shepherd/provider/equinix/BUILD.bazel",
      "new_id": "e0333b1ebf6240d4f5e90d1ef39bba3ea61976ac",
      "new_mode": 33188,
      "new_path": "cloud/shepherd/provider/equinix/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "587b70a430c9f878e67818c0a85732bf07c07491",
      "old_mode": 33188,
      "old_path": "cloud/shepherd/provider/equinix/initializer_test.go",
      "new_id": "fc34a10d55b91dcc91cc926f16dbc517b1ccd764",
      "new_mode": 33188,
      "new_path": "cloud/shepherd/provider/equinix/initializer_test.go"
    },
    {
      "type": "modify",
      "old_id": "13220399091f9914e1790455466159c78765b71c",
      "old_mode": 33188,
      "old_path": "cloud/shepherd/provider/equinix/main.go",
      "new_id": "9903b04b0ff445408abfa7df264a26bbbccfd9df",
      "new_mode": 33188,
      "new_path": "cloud/shepherd/provider/equinix/main.go"
    },
    {
      "type": "delete",
      "old_id": "73974d3636aa89cdd9991587b6af762129bf95c4",
      "old_mode": 33188,
      "old_path": "go/net/ssh/ssh_client.go",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "modify",
      "old_id": "bd7ab70b557549a806499b6cc90b8bc543cc065e",
      "old_mode": 33188,
      "old_path": "metropolis/cli/metroctl/BUILD.bazel",
      "new_id": "8829be4a8a32e7b6e5871b08627faf4ad1d7c3af",
      "new_mode": 33188,
      "new_path": "metropolis/cli/metroctl/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "f0a537962f4d6e28907376828af206977e345404",
      "old_mode": 33188,
      "old_path": "metropolis/cli/metroctl/cmd_install_ssh.go",
      "new_id": "410a88dc621eca21bcbe44c7f7194599bbd5775f",
      "new_mode": 33188,
      "new_path": "metropolis/cli/metroctl/cmd_install_ssh.go"
    },
    {
      "type": "rename",
      "old_id": "cb822628488e7815c98d34193055b906a95c1aec",
      "old_mode": 33188,
      "old_path": "go/net/ssh/BUILD.bazel",
      "new_id": "d7a35b046aae271449eabc39c7ad78a548a3bee0",
      "new_mode": 33188,
      "new_path": "osbase/net/sshtakeover/BUILD.bazel",
      "score": 63
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "20a70d247983609b07698c0279e317d00d744416",
      "new_mode": 33188,
      "new_path": "osbase/net/sshtakeover/sshtakeover.go"
    }
  ]
}
