Package client
Class MarathonClient
java.lang.Object
client.MarathonClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MarathongetInstance(String endpoint) static MarathongetInstance(String endpoint, feign.RequestInterceptor... interceptors) The generalized version of the method that allows more in-depth customizations viaRequestInterceptors.static MarathongetInstanceWithBasicAuth(String endpoint, String username, String password) Creates a Marathon client proxy that performs HTTP basic authentication.static MarathongetInstanceWithTokenAuth(String endpoint, String token) Creates a Marathon client proxy that uses a token for authentication.
-
Constructor Details
-
MarathonClient
public MarathonClient()
-
-
Method Details
-
getInstance
-
getInstance
The generalized version of the method that allows more in-depth customizations viaRequestInterceptors.- Parameters:
endpoint- URL of Marathon
-
getInstanceWithBasicAuth
Creates a Marathon client proxy that performs HTTP basic authentication. -
getInstanceWithTokenAuth
Creates a Marathon client proxy that uses a token for authentication.- Parameters:
endpoint- URL of Marathontoken- token- Returns:
- Marathon client
-