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

Watch user changes package method #67

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

Watch user changes package method #67

undassa opened this issue Oct 13, 2016 · 0 comments

Comments

@undassa
Copy link
Member

undassa commented Oct 13, 2016

Watch users changes package method

Should connect to kubernetes and watch user changes in realtime

User create method
func (c *users) Watch(opts k.ListOptions) (watch.Interface, error) {
    return c.Get().
        Prefix("watch").
        Resource("users").
        VersionedParams(&opts, k.ParameterCodec).
        Watch()
}
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
@undassa undassa added this to the v0.1.0 milestone Oct 13, 2016
@undassa undassa closed this as completed Nov 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant