-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
src/main/scala/com/goyeau/kubernetes/client/ReplicaSetsOperations.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.goyeau.kubernetes.client | ||
|
||
import akka.actor.ActorSystem | ||
import io.circe._ | ||
import io.k8s.api.apps.v1beta2.{ReplicaSet, ReplicaSetList} | ||
|
||
private[client] case class ReplicaSetsOperations(protected val config: KubeConfig)( | ||
implicit protected val system: ActorSystem, | ||
protected val listDecoder: Decoder[ReplicaSetList], | ||
encoder: Encoder[ReplicaSet], | ||
decoder: Decoder[ReplicaSet] | ||
) extends Listable[ReplicaSetList] { | ||
protected val resourceUri = "apis/apps/v1beta2/replicasets" | ||
|
||
def namespace(namespace: String) = NamespacedReplicaSetsOperations(config, namespace) | ||
} | ||
|
||
private[client] case class NamespacedReplicaSetsOperations( | ||
protected val config: KubeConfig, | ||
protected val namespace: String | ||
)( | ||
implicit protected val system: ActorSystem, | ||
protected val resourceEncoder: Encoder[ReplicaSet], | ||
protected val resourceDecoder: Decoder[ReplicaSet], | ||
protected val listDecoder: Decoder[ReplicaSetList] | ||
) extends Creatable[ReplicaSet] | ||
with Replaceable[ReplicaSet] | ||
with Gettable[ReplicaSet] | ||
with Listable[ReplicaSetList] | ||
with Deletable | ||
with GroupDeletable { | ||
protected val resourceUri = s"apis/apps/v1beta2/namespaces/$namespace/replicasets" | ||
} |