iam

package
v0.0.0-...-e779149 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func GetGroup(c client.Client, name, workspace string) (*iamv1alpha2.Group, error)

GetGroup uses c to get the User by name. If the returned error is nil, the returned User is valid.

func GetUser

func GetUser(c client.Client, name string) (*iamv1alpha2.User, error)

GetUser uses c to get the User by name. If the returned error is nil, the returned User is valid.

func NewClient

func NewClient(s *runtime.Scheme, user, passsword string) (client.Client, error)

NewClient creates a new client with user authencation

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL