c
com.advancedtelematic.libtuf_server.repo.client
ReposerverHttpClient
Companion object ReposerverHttpClient
class ReposerverHttpClient extends TracingHttpClient with ReposerverClient
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ReposerverHttpClient
- ReposerverClient
- TracingHttpClient
- ServiceHttpClient
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ReposerverHttpClient(reposerverUri: Uri, httpClient: (HttpRequest) => Future[HttpResponse], authHeaders: Option[HttpHeader] = None)(implicit ec: ExecutionContext, system: ActorSystem, tracing: ServerRequestTracing)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ReposerverError(msg: String): RawError
- Attributes
- protected
- Definition Classes
- ReposerverClient
- def addTarget(namespace: Namespace, fileName: String, uri: Uri, checksum: Checksum, length: Int, targetFormat: TargetFormat, name: Option[TargetName] = None, version: Option[TargetVersion] = None, hardwareIds: Seq[HardwareIdentifier] = Seq.empty): Future[Unit]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def addTargetFromContent(namespace: Namespace, fileName: String, length: Int, targetFormat: TargetFormat, content: Source[ByteString, Any], name: TargetName, version: TargetVersion, hardwareIds: Seq[HardwareIdentifier]): Future[Unit]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def createOrUpdateRemoteDelegation(namespace: Namespace, delegatedRoleName: DelegatedRoleName, uri: Uri, remoteHeaders: Option[Map[String, String]], friendlyName: Option[DelegationFriendlyName]): Future[Unit]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def createRoot(namespace: Namespace, keyType: KeyType): Future[RepoId]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def deleteTarget(namespace: Namespace, targetFilename: TargetFilename): Future[Unit]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def deleteTrustedDelegation(namespace: Namespace, delegatedRoleName: DelegatedRoleName): Future[Unit]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def editTarget(namespace: Namespace, targetFilename: TargetFilename, uri: Option[URI] = None, hardwareIds: Seq[HardwareIdentifier] = Seq.empty, proprietaryMeta: Option[Json] = None): Future[ClientTargetItem]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def execHttpFull[T](request: HttpRequest)(implicit arg0: ClassTag[T], um: FromEntityUnmarshaller[T]): Future[Either[RemoteServiceError, ServiceHttpFullResponse[T]]]
- Attributes
- protected
- Definition Classes
- ServiceHttpClient
- def execHttpFullWithNamespace[T](namespace: Namespace, request: HttpRequest)(implicit ct: ClassTag[T], ev: FromEntityUnmarshaller[T]): Future[ServiceHttpFullResponseEither[T]]
- Attributes
- protected
- Definition Classes
- ReposerverHttpClient → ServiceHttpClient
- def execHttpUnmarshalled[T](request: HttpRequest)(implicit arg0: ClassTag[T], um: FromEntityUnmarshaller[T]): Future[Either[RemoteServiceError, T]]
- Attributes
- protected
- Definition Classes
- ServiceHttpClient
- def execHttpUnmarshalledWithNamespace[T](namespace: Namespace, request: HttpRequest)(implicit arg0: ClassTag[T], arg1: FromEntityUnmarshaller[T]): Future[Either[RemoteServiceError, T]]
- Attributes
- protected
- Definition Classes
- ServiceHttpClient
- def execJsonHttp[Res, Req](request: HttpRequest, entity: Req)(implicit arg0: ClassTag[Res], arg1: FromEntityUnmarshaller[Res], arg2: Encoder[Req]): Future[Either[RemoteServiceError, Res]]
- Attributes
- protected
- Definition Classes
- ServiceHttpClient
- def execJsonHttpWithNamespace[Res, Req](ns: Namespace, request: HttpRequest, entity: Req)(implicit arg0: ClassTag[Res], arg1: FromEntityUnmarshaller[Res], arg2: Encoder[Req]): Future[Either[RemoteServiceError, Res]]
- Attributes
- protected
- Definition Classes
- ServiceHttpClient
- def fetchDelegationMetadata(namespace: Namespace, roleName: String): Future[JsonSignedPayload]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def fetchDelegationsInfo(namespace: Namespace): Future[Map[DelegatedRoleName, DelegationInfo]]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def fetchRoot(namespace: Namespace, version: Option[Int]): Future[(RepoId, SignedPayload[RootRole])]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def fetchSingleTargetComments(namespace: Namespace, targetFilename: TargetFilename): Future[FilenameComment]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def fetchSnapshotMetadata(namespace: Namespace): Future[JsonSignedPayload]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def fetchTargetContent(namespace: Namespace, targetFilename: TargetFilename): Future[HttpResponse]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def fetchTargets(namespace: Namespace): Future[SignedPayload[TargetsRole]]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def fetchTargetsComments(namespace: Namespace, targetNameContains: Option[String], offset: Option[Long], limit: Option[Long]): Future[PaginationResult[FilenameComment]]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def fetchTargetsCommentsByFilename(namespace: Namespace, filenames: Seq[TargetFilename]): Future[Seq[FilenameComment]]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def fetchTimestampMetadata(namespace: Namespace): Future[JsonSignedPayload]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def fetchTrustedDelegations(namespace: Namespace): Future[List[Delegation]]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def fetchTrustedDelegationsKeys(namespace: Namespace): Future[List[TufKey]]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hardwareIdsWithPackages(namespace: Namespace): Future[PaginationResult[HardwareIdentifier]]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def httpClient: (HttpRequest) => Future[HttpResponse]
- Definition Classes
- TracingHttpClient → ServiceHttpClient
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val log: Logger
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def refreshDelegatedRole(namespace: Namespace, fileName: DelegatedRoleName): Future[Unit]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def repoExists(namespace: Namespace)(implicit ec: ExecutionContext): Future[Boolean]
- Definition Classes
- ReposerverClient
- def rotateRoot(namespace: Namespace): Future[Unit]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def searchSingleTargetV2(namespace: Namespace, filename: TargetFilename, origin: Option[String], originNot: Option[String]): Future[ClientPackage]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def searchTargetsGroupedV2(namespace: Namespace, offset: Option[Long], limit: Option[Long], origins: Seq[String], nameContains: Option[String], name: Option[String], version: Option[String], hardwareIds: Seq[HardwareIdentifier], hashes: Seq[TargetHash], filenames: Seq[Refined[String, ValidTargetFilename]], sortBy: Option[AggregatedTargetItemsSort], sortDirection: Option[SortDirection]): Future[PaginationResult[ClientAggregatedPackage]]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def searchTargetsV2(namespace: Namespace, offset: Option[Long], limit: Option[Long], origins: Seq[String], nameContains: Option[String], name: Option[String], version: Option[String], hardwareIds: Seq[HardwareIdentifier], hashes: Seq[TargetHash], filenames: Seq[Refined[String, ValidTargetFilename]], sortBy: Option[TargetItemsSort], sortDirection: Option[SortDirection]): Future[PaginationResult[ClientPackage]]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def setTargetComments(namespace: Namespace, targetFilename: TargetFilename, comment: String): Future[Unit]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def setTargetsMetadataExpiration(namespace: Namespace, expiry: Instant): Future[Unit]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def targetExists(namespace: Namespace, targetFilename: TargetFilename): Future[Boolean]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit val unitFromEntityUnmarshaller: FromEntityUnmarshaller[Unit]
- Attributes
- protected
- Definition Classes
- ServiceHttpClient
- def updateDelegationFriendlyName(namespace: Namespace, delegatedRoleName: DelegatedRoleName, name: DelegationFriendlyName): Future[Unit]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def updateTrustedDelegations(namespace: Namespace, trustedDelegations: List[Delegation]): Future[Unit]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- def updateTrustedDelegationsKeys(namespace: Namespace, keys: List[TufKey]): Future[Unit]
- Definition Classes
- ReposerverHttpClient → ReposerverClient
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)