case class TokenRequest(audience: String, expirationSeconds: Optional[Long] = Optional.Absent) extends Product with Serializable
TokenRequest contains parameters of a service account token.
- audience
Audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
- expirationSeconds
ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".
- Alphabetic
- By Inheritance
- TokenRequest
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
TokenRequest(audience: String, expirationSeconds: Optional[Long] = Optional.Absent)
- audience
Audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
- expirationSeconds
ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".
Value Members
- val audience: String
- val expirationSeconds: Optional[Long]
-
def
getAudience: IO[K8sFailure, String]
Audience is the intended audience of the token in "TokenRequestSpec".
Audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
This effect always succeeds, it is safe to use the field audience directly.
-
def
getExpirationSeconds: IO[K8sFailure, Long]
ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec".
ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.