mirror of https://github.com/dapr/docs.git
Added full code snippets of secrets management
Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
This commit is contained in:
parent
6662f1a322
commit
ec61461b00
|
@ -160,17 +160,23 @@ import io.dapr.client.DaprClient;
|
||||||
import io.dapr.client.DaprClientBuilder;
|
import io.dapr.client.DaprClientBuilder;
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
=======
|
=======
|
||||||
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
||||||
|
=======
|
||||||
|
>>>>>>> 5b6521a2 (Added full code snippets of secrets management)
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
=======
|
=======
|
||||||
>>>>>>> 7bfd5715 (Modified based on the review comments - 2)
|
>>>>>>> 7bfd5715 (Modified based on the review comments - 2)
|
||||||
=======
|
=======
|
||||||
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
||||||
|
=======
|
||||||
|
>>>>>>> 5b6521a2 (Added full code snippets of secrets management)
|
||||||
|
|
||||||
//code
|
//code
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
|
@ -197,17 +203,23 @@ public class OrderProcessingServiceApplication {
|
||||||
#dependencies
|
#dependencies
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
=======
|
=======
|
||||||
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
||||||
|
=======
|
||||||
|
>>>>>>> 5b6521a2 (Added full code snippets of secrets management)
|
||||||
import random
|
import random
|
||||||
from time import sleep
|
from time import sleep
|
||||||
import requests
|
import requests
|
||||||
import logging
|
import logging
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
=======
|
=======
|
||||||
>>>>>>> 7bfd5715 (Modified based on the review comments - 2)
|
>>>>>>> 7bfd5715 (Modified based on the review comments - 2)
|
||||||
=======
|
=======
|
||||||
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
||||||
|
=======
|
||||||
|
>>>>>>> 5b6521a2 (Added full code snippets of secrets management)
|
||||||
from dapr.clients import DaprClient
|
from dapr.clients import DaprClient
|
||||||
from dapr.clients.grpc._state import StateItem
|
from dapr.clients.grpc._state import StateItem
|
||||||
from dapr.clients.grpc._request import TransactionalStateOperation, TransactionOperationType
|
from dapr.clients.grpc._request import TransactionalStateOperation, TransactionOperationType
|
||||||
|
@ -228,11 +240,14 @@ with DaprClient() as client:
|
||||||
logging.info(sorted(secret.secrets.items()))
|
logging.info(sorted(secret.secrets.items()))
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
=======
|
=======
|
||||||
|
|
||||||
>>>>>>> 03751403 (Modified based on the review comments - 1)
|
>>>>>>> 03751403 (Modified based on the review comments - 1)
|
||||||
=======
|
=======
|
||||||
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
||||||
|
=======
|
||||||
|
>>>>>>> 5b6521a2 (Added full code snippets of secrets management)
|
||||||
```
|
```
|
||||||
{{% /codetab %}}
|
{{% /codetab %}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue