Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DeleteKey (0.19 sec)

  1. internal/kms/key-manager.go

    	CreateKey(ctx context.Context, keyID string) error
    
    	// DeleteKey deletes a key at the KMS with the given key ID.
    	// Please note that is a dangerous operation.
    	// Once a key has been deleted all data that has been encrypted with it cannot be decrypted
    	// anymore, and therefore, is lost.
    	DeleteKey(ctx context.Context, keyID string) error
    
    	// ListKeys lists all key names.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  2. internal/kms/kes.go

    	defer c.lock.RUnlock()
    
    	return c.client.CreateKey(ctx, keyID)
    }
    
    // DeleteKey deletes a key at the KMS with the given key ID.
    // Please note that is a dangerous operation.
    // Once a key has been deleted all data that has been encrypted with it cannot be decrypted
    // anymore, and therefore, is lost.
    func (c *kesClient) DeleteKey(ctx context.Context, keyID string) error {
    	c.lock.RLock()
    	defer c.lock.RUnlock()
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  3. cmd/kms-handlers.go

    		return
    	}
    	manager, ok := GlobalKMS.(kms.KeyManager)
    	if !ok {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    		return
    	}
    	if err := manager.DeleteKey(ctx, r.Form.Get("key-id")); err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    	writeSuccessResponseHeadersOnly(w)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 20.7K bytes
    - Viewed (0)
Back to top