Class/Object

coursier.cache

MockCache

Related Docs: object MockCache | package cache

Permalink

final case class MockCache[F[_]](base: Path, extraData: Seq[Path], writeMissing: Boolean, pool: ExecutorService, S: Sync[F], dummyArtifact: (Artifact) ⇒ Boolean = _ => false) extends Cache[F] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Cache[F], PlatformCache[F], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MockCache
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Cache
  7. PlatformCache
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MockCache(base: Path, extraData: Seq[Path], writeMissing: Boolean, pool: ExecutorService, S: Sync[F], dummyArtifact: (Artifact) ⇒ Boolean = _ => false)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val S: Sync[F]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val base: Path

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val dummyArtifact: (Artifact) ⇒ Boolean

    Permalink
  9. lazy val ec: ExecutionContextExecutorService

    Permalink
    Definition Classes
    MockCacheCache
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. val extraData: Seq[Path]

    Permalink
  12. def fetch: Fetch[F]

    Permalink

    Method to fetch an Artifact.

    Method to fetch an Artifact.

    Note that this method tries all the coursier.CachePolicyies of this cache straightaway. During resolutions, you should prefer to try all repositories for the first policy, then the other policies if needed (in pseudo-code, for (policy <- policies; repo <- repositories) …, rather than for (repo <- repositories, policy <- policies) …). You should use the fetchs method in that case.

    Definition Classes
    MockCacheCache
  13. def fetchs: Seq[Fetch[F]]

    Permalink

    Sequence of Repository.Fetch able to fetch an Artifact.

    Sequence of Repository.Fetch able to fetch an Artifact.

    Each element correspond to a coursier.CachePolicy of this Cache. You may want to pass each of them to coursier.core.ResolutionProcess.fetch().

    returns

    a non empty sequence

    Definition Classes
    Cache
  14. def file(artifact: Artifact): EitherT[F, ArtifactError, File]

    Permalink

    This method computes the task needed to get a file.

    This method computes the task needed to get a file.

    Definition Classes
    MockCachePlatformCache
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def loggerOpt: Option[CacheLogger]

    Permalink
    Definition Classes
    Cache
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. val pool: ExecutorService

    Permalink
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. val writeMissing: Boolean

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Cache[F]

Inherited from PlatformCache[F]

Inherited from AnyRef

Inherited from Any

Ungrouped