Skip to content

Commit

Permalink
added command accessors to the ExecAuth and GcpAuth classes
Browse files Browse the repository at this point in the history
  • Loading branch information
cgbaker committed Sep 27, 2018
1 parent c21e8eb commit bd59031
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/main/scala/skuber/api/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ package object client {
final case class ExecAuth private(private[api] val cmd: ExecAuthCommand, executioner: CommandExecutioner) extends AuthProviderAuth {
override def name: String = "exec"

def command = cmd.command

@volatile private var refresh: ExecRefresh = new ExecRefresh("", None)

def refreshToken(): ExecRefresh = {
Expand Down Expand Up @@ -172,6 +174,8 @@ package object client {
final case class GcpAuth private(private val config: GcpConfiguration, executioner: CommandExecutioner) extends AuthProviderAuth {
override val name = "gcp"

def command = config.cmd.cmd

@volatile private var refresh: GcpRefresh = new GcpRefresh(config.accessToken, config.expiry)

def refreshGcpToken(): GcpRefresh = {
Expand Down

0 comments on commit bd59031

Please sign in to comment.