Documentation ¶
Index ¶
- Variables
- func CreateGroup(c client.Client, u *iamv1alpha2.Group, workspace string) (*iamv1alpha2.Group, error)
- func CreateUser(c client.Client, u *iamv1alpha2.User) (*iamv1alpha2.User, error)
- func GetGroup(c client.Client, name, workspace string) (*iamv1alpha2.Group, error)
- func GetUser(c client.Client, name string) (*iamv1alpha2.User, error)
- func NewClient(s *runtime.Scheme, user, passsword string) (client.Client, error)
- func NewGroup(name, workspace string) *iamv1alpha2.Group
- func NewRestClient(user, passsword string) (*restclient.RestClient, error)
- func NewUser(name, globelRole string) *iamv1alpha2.User
Constants ¶
This section is empty.
Variables ¶
View Source
var URLOptions = client.URLOptions{
Group: "iam.kubesphere.io",
Version: "v1alpha2",
}
Functions ¶
func CreateGroup ¶
func CreateGroup(c client.Client, u *iamv1alpha2.Group, workspace string) (*iamv1alpha2.Group, error)
CreateGroup uses c to create Group. If the returned error is nil, the returned Group is valid and has been created.
func CreateUser ¶
func CreateUser(c client.Client, u *iamv1alpha2.User) (*iamv1alpha2.User, error)
CreateUser uses c to create User. If the returned error is nil, the returned User is valid and has been created.
func GetGroup ¶
GetGroup uses c to get the User by name. If the returned error is nil, the returned User is valid.
func GetUser ¶
GetUser uses c to get the User by name. If the returned error is nil, the returned User is valid.
func NewGroup ¶
func NewGroup(name, workspace string) *iamv1alpha2.Group
NewGroup returns a Group spec with the specified argument.
func NewRestClient ¶
func NewRestClient(user, passsword string) (*restclient.RestClient, error)
func NewUser ¶
func NewUser(name, globelRole string) *iamv1alpha2.User
NewUser returns a User spec with the specified argument.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.