Ejemplo n.º 1
0
 public Client() : this(SecretHubXGOPINVOKE.new_Client(), true)
 {
     if (SecretHubXGOPINVOKE.SWIGPendingException.Pending)
     {
         throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
 public void Write(string path, string secret)
 {
     SecretHubXGOPINVOKE.Client_Write(swigCPtr, path, secret);
     if (SecretHubXGOPINVOKE.SWIGPendingException.Pending)
     {
         throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 3
0
 public void Remove(string path)
 {
     SecretHubXGOPINVOKE.Client_Remove(swigCPtr, path);
     if (SecretHubXGOPINVOKE.SWIGPendingException.Pending)
     {
         throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 4
0
        public string Resolve(string path)
        {
            string ret = SecretHubXGOPINVOKE.Client_Resolve(swigCPtr, path);

            if (SecretHubXGOPINVOKE.SWIGPendingException.Pending)
            {
                throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        public bool Exists(string path)
        {
            bool ret = SecretHubXGOPINVOKE.Client_Exists(swigCPtr, path);

            if (SecretHubXGOPINVOKE.SWIGPendingException.Pending)
            {
                throw SecretHubXGOPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 7
0
 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);
         }
     }
 }
Ejemplo n.º 8
0
        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);
        }