Package | Description |
---|---|
com.suse.salt.netapi.calls | |
com.suse.salt.netapi.client | |
com.suse.salt.netapi.datatypes.target |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletionStage<java.util.Optional<LocalAsyncResult<R>>> |
LocalCall.callAsync(SaltClient client,
Target<?> target,
AuthMethod auth)
Calls a execution module function on the given target asynchronously and
returns information about the scheduled job that can be used to query the result.
|
java.util.concurrent.CompletionStage<java.util.Optional<LocalAsyncResult<R>>> |
LocalCall.callAsync(SaltClient client,
Target<?> target,
AuthMethod auth,
Batch batch)
Calls a execution module function on the given target asynchronously and
returns information about the scheduled job that can be used to query the result.
|
java.util.concurrent.CompletionStage<java.util.Optional<java.util.Map<java.lang.String,java.util.concurrent.CompletionStage<Result<R>>>>> |
LocalCall.callAsync(SaltClient client,
Target<?> target,
AuthMethod auth,
EventStream events,
java.util.concurrent.CompletionStage<GenericError> cancel,
Batch batch)
Calls this salt call via the async client and returns the results
as they come in via the event stream.
|
java.util.concurrent.CompletionStage<java.util.Optional<java.util.Map<java.lang.String,java.util.concurrent.CompletionStage<Result<R>>>>> |
LocalCall.callAsync(SaltClient client,
Target<?> target,
AuthMethod auth,
EventStream events,
java.util.concurrent.CompletionStage<GenericError> cancel,
java.util.Optional<Batch> batch)
Calls this salt call via the async client and returns the results
as they come in via the event stream.
|
java.util.concurrent.CompletionStage<java.util.Optional<LocalAsyncResult<R>>> |
LocalCall.callAsync(SaltClient client,
Target<?> target,
AuthMethod auth,
java.util.Optional<Batch> batch)
Calls a execution module function on the given target asynchronously and
returns information about the scheduled job that can be used to query the result.
|
java.util.concurrent.CompletionStage<java.util.Map<java.lang.String,Result<R>>> |
LocalCall.callSync(SaltClient client,
Target<?> target,
AuthMethod auth)
Calls a execution module function on the given target and synchronously
waits for the result.
|
java.util.concurrent.CompletionStage<java.util.List<java.util.Map<java.lang.String,Result<R>>>> |
LocalCall.callSync(SaltClient client,
Target<?> target,
AuthMethod auth,
Batch batch)
Calls a execution module function on the given target with batching and
synchronously waits for the result.
|
java.util.concurrent.CompletionStage<java.util.List<java.util.Map<java.lang.String,Result<R>>>> |
LocalCall.callSync(SaltClient client,
Target<?> target,
AuthMethod auth,
java.util.Optional<Batch> batch)
Calls a execution module function on the given target with batching and
synchronously waits for the result.
|
private java.util.concurrent.CompletionStage<java.util.List<java.util.Map<java.lang.String,Result<R>>>> |
LocalCall.callSyncHelperNonBlock(SaltClient client,
Target<?> target,
AuthMethod auth,
java.util.Optional<Batch> batch)
Helper to call an execution module function on the given target for batched or
unbatched while also providing an option to use the given credentials or to use a
prior created token.
|
Modifier and Type | Method and Description |
---|---|
<T> java.util.concurrent.CompletionStage<java.util.Map<java.lang.String,java.lang.Object>> |
SaltClient.run(java.lang.String username,
java.lang.String password,
AuthModule eauth,
java.lang.String client,
Target<T> target,
java.lang.String function,
java.util.List<java.lang.Object> args,
java.util.Map<java.lang.String,java.lang.Object> kwargs)
Generic interface to start any execution command bypassing normal session handling.
|
<T> java.util.concurrent.CompletionStage<java.util.Map<java.lang.String,Result<SSHRawResult>>> |
SaltClient.runRawSSHCommand(java.lang.String command,
Target<T> target,
SaltSSHConfig cfg)
Calls salt-ssh with a command in raw shell mode (commands bypass Salt and
gets executed as shell commands).
|
Modifier and Type | Method and Description |
---|---|
<R> java.util.concurrent.CompletionStage<R> |
SaltClient.call(Call<?> call,
Client client,
java.util.Optional<Target<?>> target,
java.util.Map<java.lang.String,java.lang.Object> custom,
com.google.gson.reflect.TypeToken<R> type,
AuthMethod auth) |
Modifier and Type | Interface and Description |
---|---|
interface |
SSHTarget<T>
Target interface for specifying a group of minions.
|
Modifier and Type | Class and Description |
---|---|
class |
Compound
Target for specifying minions by compound expression.
|
class |
Glob
Target for specifying minions by glob pattern.
|
class |
Grains
Matcher based on salt grains
|
class |
GrainsRegEx
Matcher based on salt grains
|
class |
IPCidr
Target for specifying minions by IP CIDR.
|
class |
MinionList
Target for specifying a list of minions.
|
class |
NodeGroup
Target for referencing a nodegroup.
|
class |
Pillar
Matcher based on salt pillar with glob matching
|
class |
PillarExact
Matcher based on salt pillar without glob matching
|
class |
PillarRegEx
Matcher based on salt pillar with regular expression matching
|
class |
Range
Target for specifying minions by range expression.
|
class |
RegEx
Target for specifying minions by regular expression.
|