public Client() : this(SecretHubXGOPINVOKE.new_Client(), true) { if (SecretHubXGOPINVOKE.SWIGPendingException.Pending) { throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve(); } }
public void Write(string path, string secret) { SecretHubXGOPINVOKE.Client_Write(swigCPtr, path, secret); if (SecretHubXGOPINVOKE.SWIGPendingException.Pending) { throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve(); } }
public void Remove(string path) { SecretHubXGOPINVOKE.Client_Remove(swigCPtr, path); if (SecretHubXGOPINVOKE.SWIGPendingException.Pending) { throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve(); } }
public string Resolve(string path) { string ret = SecretHubXGOPINVOKE.Client_Resolve(swigCPtr, path); if (SecretHubXGOPINVOKE.SWIGPendingException.Pending) { throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public SecretVersion Read(string path) { SecretVersion ret = new SecretVersion(SecretHubXGOPINVOKE.Client_Read(swigCPtr, path), true); if (SecretHubXGOPINVOKE.SWIGPendingException.Pending) { throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool Exists(string path) { bool ret = SecretHubXGOPINVOKE.Client_Exists(swigCPtr, path); if (SecretHubXGOPINVOKE.SWIGPendingException.Pending) { throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
protected virtual void Dispose(bool disposing) { lock (this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; SecretHubXGOPINVOKE.delete_SecretVersion(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } } }
public System.Collections.Generic.Dictionary <string, string> ResolveEnv() { var temp = SecretHubXGOPINVOKE.Client_ResolveEnv(swigCPtr); if (SecretHubXGOPINVOKE.SWIGPendingException.Pending) { throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve(); } var res = Newtonsoft.Json.JsonConvert.DeserializeObject <System.Collections.Generic.Dictionary <string, string> >(temp); if (SecretHubXGOPINVOKE.SWIGPendingException.Pending) { throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve(); } return(res); }