c

dev.hnaderi.k8s.client

SttpJdkHttpSyncClientBuilder

final case class SttpJdkHttpSyncClientBuilder(builder: Builder = ...) extends SttpJVM[Identity] with Product with Serializable

Client using java.net.http.HttpClient in a blocking fashion. It requires JDK 11+

builder

Client builder

Source
SttpJdkHttpSyncClientBuilder.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SttpJdkHttpSyncClientBuilder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SttpJVM
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SttpJdkHttpSyncClientBuilder(builder: Builder = ...)

    builder

    Client builder

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def buildWithSSLContext: (SSLContext) ⇒ SttpBackend[Identity, Any]
    Attributes
    protected
    Definition Classes
    SttpJdkHttpSyncClientBuilder → SttpJVM
  6. val builder: Builder
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. def defaultConfig[T](implicit arg0: Builder[T], arg1: Reader[T], arg2: BodySerializer[T]): HttpClient[[β$6$]Identity[Response[β$6$]]]

    Build kubernetes client kubectl config file found from default locations.

    Build kubernetes client kubectl config file found from default locations. It tries:

    • KUBECONFIG from env
    • ~/.kube/config
    • pod's service account in /var/run/secrets/kubernetes.io/serviceaccount
    Definition Classes
    SttpJVM
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def from[T](server: String, ca: Option[File] = None, clientCert: Option[File] = None, clientKey: Option[File] = None, clientKeyPassword: Option[String] = None, authentication: AuthenticationParams = AuthenticationParams.empty)(implicit arg0: Builder[T], arg1: Reader[T], arg2: BodySerializer[T]): HttpClient[[β$2$]Identity[Response[β$2$]]]

    Build kubernetes client using the certificate files.

    Build kubernetes client using the certificate files.

    server

    Server address

    ca

    certificate authority file

    clientCert

    client certificate file

    clientKey

    client key file

    clientKeyPassword

    password for client key if any

    authentication

    Authentication parameters

    Definition Classes
    SttpJVM
  11. def fromConfig[T](config: Config, context: Option[String] = None)(implicit arg0: Builder[T], arg1: Reader[T], arg2: BodySerializer[T]): HttpClient[[β$0$]Identity[Response[β$0$]]]

    Build kubernetes client from Config data structure

    Build kubernetes client from Config data structure

    config

    Config to use

    context

    If provided, overrides the config's current context

    Definition Classes
    SttpJVM
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def load[T](config: Path, context: Option[String] = None)(implicit arg0: Builder[T], arg1: Reader[T], arg2: BodySerializer[T]): HttpClient[[β$4$]Identity[Response[β$4$]]]

    Build kubernetes client from kubectl config file

    Build kubernetes client from kubectl config file

    config

    Path to kubeconfig file

    context

    If provided, overrides the config's current context

    Definition Classes
    SttpJVM
  15. def loadFile[T](config: String, context: Option[String] = None)(implicit arg0: Builder[T], arg1: Reader[T], arg2: BodySerializer[T]): HttpClient[[β$5$]Identity[Response[β$5$]]]

    Build kubernetes client from kubectl config file

    Build kubernetes client from kubectl config file

    config

    Path to kubeconfig file

    context

    If provided, overrides the config's current context

    Definition Classes
    SttpJVM
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SttpJVM[Identity]

Inherited from AnyRef

Inherited from Any

Ungrouped