GitlabTokenLookup

mill.contrib.gitlab.GitlabTokenLookup
See theGitlabTokenLookup companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class CIJob(source: TokenSource) extends GitlabToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait GitlabToken
class Object
trait Matchable
class Any
Show all
case class Custom(f: () => Result[String]) extends TokenSource

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TokenSource
class Object
trait Matchable
class Any
Show all
case class CustomHeader(header: String, source: TokenSource) extends GitlabToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait GitlabToken
class Object
trait Matchable
class Any
Show all
case class Deploy(source: TokenSource) extends GitlabToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait GitlabToken
class Object
trait Matchable
class Any
Show all
case class Env(name: String) extends TokenSource

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TokenSource
class Object
trait Matchable
class Any
Show all
case class File(path: Path) extends TokenSource

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TokenSource
class Object
trait Matchable
class Any
Show all
@Scaladoc(value = "/**\n * Possible types of a Gitlab authentication header.\n * - Personal = \"Private-Token\" ->\n * - Deploy = \"Deploy-Token\"->\n * - CIJob = \"Job-Token\" ->\n * - CustomHeader = Use with TokenSource/Custom to produce anything you like\n *\n * Currently only one custom header is supported. If you need multiple override gitlabToken from GitlabPublishModule\n * directly\n */")
trait GitlabToken

Possible types of a Gitlab authentication header.

Possible types of a Gitlab authentication header.

  • Personal = "Private-Token" ->
  • Deploy = "Deploy-Token"->
  • CIJob = "Job-Token" ->
  • CustomHeader = Use with TokenSource/Custom to produce anything you like

Currently only one custom header is supported. If you need multiple override gitlabToken from GitlabPublishModule directly

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class CIJob
class CustomHeader
class Deploy
class Personal
case class Personal(source: TokenSource) extends GitlabToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait GitlabToken
class Object
trait Matchable
class Any
Show all
case class Property(property: String) extends TokenSource

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TokenSource
class Object
trait Matchable
class Any
Show all
@Scaladoc(value = "/**\n * Possible source of token value. Either an\n * - Env = Environment variable\n * - Property = Javas system property\n * - File =Contents of a file on local disk.\n * - Custom = Own function\n *\n * Possible additions, that can now be supported with Custom: KeyVault, Yaml, etc.\n */")
sealed trait TokenSource

Possible source of token value. Either an

Possible source of token value. Either an

  • Env = Environment variable
  • Property = Javas system property
  • File =Contents of a file on local disk.
  • Custom = Own function

Possible additions, that can now be supported with Custom: KeyVault, Yaml, etc.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Custom
class Env
class File
class Property
case class WorkspaceFile(path: RelPath) extends TokenSource

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TokenSource
class Object
trait Matchable
class Any
Show all