Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update user package method #64

Closed
undassa opened this issue Oct 13, 2016 · 0 comments
Closed

Update user package method #64

undassa opened this issue Oct 13, 2016 · 0 comments

Comments

@undassa
Copy link
Member

undassa commented Oct 13, 2016

Update user package method

Should update user data into kubernetes

User update method
func (c *users) Create(user *du.User) (result *du.User, err error) {
    result = &du.User{}
    err = c.Put().Resource("users").Name(user.Username).Body(user).Do().Into(result)
    return
}
User structure
type User struct {
    ku.TypeMeta
    k.ObjectMeta

        Username string
        Email string
        Pass string
        Salt string
        Created time
        Updated time

    Identities []string
}
Where:
  • k - kubernetes api version (current - v1 package)
  • ku - kubernetes unversionned api types
  • du - deploy it user types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant