Skip to content

Commit

Permalink
Merge pull request #804 from uptane/merge-upstream
Browse files Browse the repository at this point in the history
Merge upstream
  • Loading branch information
bclouser authored Sep 5, 2024
2 parents d86837e + 888179a commit a0816db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ trait ReposerverClient {

def fetchDelegationsInfo(namespace: Namespace): Future[Map[DelegatedRoleName, DelegationInfo]]
def refreshDelegatedRole(namespace: Namespace, fileName: DelegatedRoleName): Future[Unit]

def hardwareIdsWithPackages(namespace: Namespace): Future[PaginationResult[HardwareIdentifier]]
}

object ReposerverHttpClient extends ServiceHttpClientSupport {
Expand Down Expand Up @@ -815,4 +817,10 @@ class ReposerverHttpClient(reposerverUri: Uri,
}
}

override def hardwareIdsWithPackages(
namespace: Namespace): Future[PaginationResult[HardwareIdentifier]] = {
val req = HttpRequest(HttpMethods.GET, uri = apiV2Uri(Path(s"user_repo/hardwareids-packages")))
execHttpUnmarshalledWithNamespace[PaginationResult[HardwareIdentifier]](namespace, req).ok
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ object ClientDataType {

case class PubKeyInfo(pubkey: String, meta: Option[PubKeyMeta])

case class PubKeyMeta(name: String)
case class PubKeyMeta(name: Option[String])

trait EnumeratumUnmarshaller[T <: EnumEntry] { this: Enum[T] =>

Expand Down

0 comments on commit a0816db

Please sign in to comment.