Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SecretFieldNames = []string{"Username", "Credential", "URL", "LastUpdate", "LastUpdateBy", "Comment"}
View Source
var SecretHumanFieldNames = []string{"Username", "Credential", "URL", "Comment"}
Functions ¶
func ConvertFromSecret ¶
this function will convert the secret to map[string]interface {}
Types ¶
type Secret ¶
type Secret struct { Username string `json:"username"` Credential string `json:"credential"` URL string `json:"url,omitempty"` //optional Comment string `json:"comment"` LastUpdate time.Time `json:"lastupdate"` LastUpdateBy string `json:"lastupdateby"` }
reset to this
func ConvertToSecret ¶
convert the map[string]interface {} to Secret return the secret and true if the conversion is successful otherwise return empty secret and false
Click to show internal directories.
Click to hide internal directories.