Skip to content

Instantly share code, notes, and snippets.

@alok87

alok87/user.go Secret

Last active August 4, 2022 20:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alok87/a4fe13ef443ed1252da10eb65eb7ab23 to your computer and use it in GitHub Desktop.
Save alok87/a4fe13ef443ed1252da10eb65eb7ab23 to your computer and use it in GitHub Desktop.
api/v1/user.go
package v1
import (
metav1 "github.com/alok87/config/internal/meta/v1"
)
type User struct {
metav1.ObjectMeta `json:",inline"`
Spec UserSpec `json:"spec,omitempty"`
}
type UserSpec struct {
HashedPassword string `json:"hashed_password,omitempty"`
Role string `json:"role,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment