Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Hockin (0.52 sec)

  1. backend/remote-state/http/client.go

    type httpClient struct {
    	// Update & Retrieve
    	URL          *url.URL
    	UpdateMethod string
    
    	// Locking
    	LockURL      *url.URL
    	LockMethod   string
    	UnlockURL    *url.URL
    	UnlockMethod string
    
    	// HTTP
    	Client   *retryablehttp.Client
    	Username string
    	Password string
    
    	lockID       string
    	jsonLockInfo []byte
    }
    
    Go
    - Registered: 2021-10-29 08:04
    - Last Modified: 2021-01-26 19:39
    - 5.6K bytes
    - Viewed (0)
  2. backend/remote-state/pg/client.go

    	if err != nil {
    		return err
    	}
    	return nil
    }
    
    func (c *RemoteClient) Lock(info *statemgr.LockInfo) (string, error) {
    	var err error
    	var lockID string
    
    	if info.ID == "" {
    		lockID, err = uuid.GenerateUUID()
    		if err != nil {
    			return "", err
    		}
    		info.ID = lockID
    	}
    
    	// Local helper function so we can call it multiple places
    	//
    	lockUnlock := func(pgLockId string) error {
    Go
    - Registered: 2021-10-29 08:04
    - Last Modified: 2020-08-11 15:43
    - 4.1K bytes
    - Viewed (0)
  3. backend/remote-state/manta/client.go

    			Info: lockInfo,
    		}
    		return "", lockErr
    	}
    
    	info.Path = path.Join(c.directoryName, lockFileName)
    
    	if info.ID == "" {
    		lockID, err := uuid.GenerateUUID()
    		if err != nil {
    			return "", err
    		}
    
    		info.ID = lockID
    	}
    
    	data := info.Marshal()
    
    	contentType := "application/json"
    	contentLength := int64(len(data))
    
    	params := &storage.PutObjectInput{
    Go
    - Registered: 2021-10-29 08:04
    - Last Modified: 2020-08-11 15:43
    - 5K bytes
    - Viewed (0)
  4. contrib/lock/client/client.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    // An example distributed locking with fencing in the case of etcd
    // Based on https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.html
    
    // Important usage:
    // If you are invoking this program as client 1, you need to configure GODEBUG env var like below:
    // GODEBUG=gcstoptheworld=2 ./client 1
    
    Go
    - Registered: 2021-10-28 01:10
    - Last Modified: 2021-04-29 16:18
    - 4.9K bytes
    - Viewed (0)
Back to top