MCPcopy Create free account
hub / github.com/Xenov-X/csbot / executeTokenStoreRemoveAll

Method executeTokenStoreRemoveAll

workflow/executor_credentials.go:222–229  ·  view source on GitHub ↗

executeTokenStoreRemoveAll removes all tokens from the token store

(ctx context.Context, client *csclient.Client, beaconID string)

Source from the content-addressed store, hash-verified

220
221// executeTokenStoreRemoveAll removes all tokens from the token store
222func (e *Executor) executeTokenStoreRemoveAll(ctx context.Context, client *csclient.Client, beaconID string) (string, error) {
223 resp, err := client.TokenStoreRemoveAll(ctx, beaconID)
224 if err != nil {
225 return "", err
226 }
227
228 return e.fireAndForget(resp.TaskID, "token store remove all")
229}
230
231// executeTokenStoreList lists all tokens in the token store
232func (e *Executor) executeTokenStoreList(ctx context.Context, client *csclient.Client, beaconID string) (string, error) {

Callers 1

executeActionMethod · 0.95

Calls 1

fireAndForgetMethod · 0.95

Tested by

no test coverage detected