package
0.3.1
Repository: https://github.com/kotalco/core-api.git
Documentation: pkg.go.dev

# Functions

Count returns total number of secrets 1-call secrets service to count secrets items 2-set the X-Total-Count header with default to 0.
Create creates k8s secret from spec 1-creates dto from request 2-call service to create and save the secret model 3-marshall the model to the dto and format the response.
Delete deletes k8s secret by name 1-check if secrets with this name exits 2-call service to make the delete action 3-return the respective response.
Get gets a single secret by name 1-get the node validated from ValidateSecretExist method 2-marshall secretModel and format the reponse.
List returns all k8s secrets 1-get the pagination and type qs 2-call service to return secret models 3-paginate the list 3-marshall secrets model to secrets dto and format the response using NewResponse.
Update updates k8s secret by name from spec.
ValidateSecretExist validate secret by name exist acts as a validation for all handlers the needs to find secret by name 1-call secrets service to check if secret exits 2-return 404 if it's not 3-save the secret to local with the key secret to be used by the other handlers.