Package cloud.dnation.hetznerclient
Class ClientFactory
java.lang.Object
cloud.dnation.hetznerclient.ClientFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HetznerApiCreate new proxy ofHetznerApiusing token provider.
-
Constructor Details
-
ClientFactory
public ClientFactory()
-
-
Method Details
-
create
Create new proxy ofHetznerApiusing token provider.- Parameters:
tokenProvider- supplier of Hetzner API token.- Returns:
- Proxy of
HetznerApi - Throws:
IllegalStateException- when credentialsId is not valid
-