# Functions
Count returns total number of cluster peers 1-call service to get length of exiting cluster peers items 2-create X-Total-Count header with the length 3-return.
Create creates IPFS cluster peer from spec 1-Todo validate request body and return validation error 2-call ipfs cluster peer service to create ipfs peer 2-marshall node to dto and format the response.
Delete deletes IPFS cluster peer by name 1-get node from locals which checked and assigned by ValidateClusterPeerExist 2-call service to delete the node 3-return ok if deleted with no errors.
Get gets a single IPFS cluster peer by name 1-get the node validated from ValidateClusterPeerExist method 2-marshall node to dto and format the response.
List returns all IPFS cluster peers 1-get the pagination qs default to 0 2-call service to return peers list 3-make the pagination 3-marshall cluster peers to the dto struct and format the response using NewResponse.
Update updates IPFS cluster peer by name from spec 1-todo validate request body and return validation errors if exits 2-get node from locals which checked and assigned by ValidateClusterPeerExist 3-call ipfs cluster peer service to update node which returns *ipfsv1alpha1.ClusterPeer 4-marshall node to node dto and format the response.
ValidateClusterPeerExist validate cluster peer by name exist 1-call service to check if node exits 2-return 404 if it's not 3-save the peer to local with the key peer to be used by the other handlers.