Advertisement
Guest User

leandors

a guest
Jul 13th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.44 KB | None | 0 0
  1.     getSecret := func(secretAgent *config.SecretAgent, secretPath string) func() []byte {
  2.         return func() []byte {
  3.             return secretAgent.GetSecret(secretPath)
  4.         }
  5.     }
  6.  
  7.  
  8. kai ston github client
  9. githubClient = github.NewClient(getSecret(secretAgent, o.githubTokenFile), o.githubEndpoint.Strings()...)
  10.  
  11. sto struct tou client
  12. token func() []byte
  13.  
  14. kai to gemizw sto NewClient fusika.
  15.  
  16.  
  17. kai apla to token sto request to pairnei sa c.token()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement