Versions in this module Expand all Collapse all v2 v2.3.1 Apr 26, 2024 Changes in this version type Client + func (c *Client) GetUserGroupsByUid(uid string) (*types.ListUserGroupResp, error) v2.3.0 Apr 19, 2024 v2.2.0 Feb 23, 2024 Changes in this version + type AuthorizedResources struct + IsSystemAdmin bool + ProjectAuthInfo map[string]*ProjectActions + SystemActions *SystemActions + type BuildActions struct + Create bool + Delete bool + Edit bool + View bool + type BusinessDirectoryActions struct + View bool + type Client struct + func New() *Client + func (c *Client) CheckPermissionGivenByCollaborationMode(uid, projectKey, resource, action string) (bool, error) + func (c *Client) CheckUserAuthInfoForCollaborationMode(uid, projectKey, resource, resourceName, action string) (bool, error) + func (c *Client) CountUsers() (*types.UserStatistics, error) + func (c *Client) CreateUser(args *CreateUserArgs) (*CreateUserResp, error) + func (c *Client) CreateUserRoleBinding(uid, namespace, roleName string) error + func (c *Client) DeleteAllProjectRoles(namespace string) error + func (c *Client) DeleteUser(userId string, header http.Header, qs url.Values) ([]byte, error) + func (c *Client) GetGroupDetailedInfo(groupID string) (*types.DetailedUserGroupResp, error) + func (c *Client) GetUserAuthInfo(uid string) (*AuthorizedResources, error) + func (c *Client) GetUserByID(uid string) (*types.UserInfo, error) + func (c *Client) Healthz() error + func (c *Client) InitializeProject(projectKey string, isPublic bool, admins []string) error + func (c *Client) ListAuthorizedProjects(uid string) ([]string, bool, error) + func (c *Client) ListAuthorizedProjectsByResourceAndVerb(uid, resource, verb string) ([]string, bool, error) + func (c *Client) ListAuthorizedWorkflows(uid, projectKey string) ([]string, []string, error) + func (c *Client) ListCollaborationEnvironmentsPermission(uid, projectKey string) (*types.CollaborationEnvPermission, error) + func (c *Client) ListRoles(namespace, uid string) ([]*types.Role, error) + func (c *Client) ListUsers(args *SearchArgs) ([]*User, error) + func (c *Client) SearchUser(args *SearchUserArgs) (*SearchUserResp, error) + func (c *Client) SearchUsers(header http.Header, qs url.Values, body interface{}) (*types.UsersResp, error) + func (c *Client) SearchUsersByIDList(idList []string) (*types.UsersResp, error) + func (c *Client) SetProjectVisibility(namespace string, isVisible bool) error + type ClusterManagementActions struct + Create bool + Delete bool + Edit bool + View bool + type CreateUserArgs struct + Account string + Email string + Name string + Password string + Phone string + type CreateUserResp struct + Account string + Name string + Uid string + type DBInstanceManagementActions struct + Create bool + Delete bool + Edit bool + View bool + type DataCenterActions struct + EditInsightConfig bool + ViewInsight bool + ViewOverView bool + type DeliveryCenterActions struct + ViewArtifact bool + ViewVersion bool + type EnvActions struct + Create bool + DebugPod bool + Delete bool + EditConfig bool + ManagePods bool + SSH bool + View bool + type HelmRepoManagementActions struct + Create bool + Delete bool + Edit bool + View bool + type InitializeProjectResp struct + Roles []string + type ProductionEnvActions struct + Create bool + DebugPod bool + Delete bool + EditConfig bool + ManagePods bool + View bool + type ProductionServiceActions struct + Create bool + Delete bool + Edit bool + View bool + type ProjectActions struct + Build *BuildActions + Env *EnvActions + IsProjectAdmin bool + ProductionEnv *ProductionEnvActions + ProductionService *ProductionServiceActions + Scanning *ScanningActions + Service *ServiceActions + Test *TestActions + Version *VersionActions + Workflow *WorkflowActions + type RegistryManagementActions struct + Create bool + Delete bool + Edit bool + View bool + type ReleaseCenterActions struct + View bool + type ReleasePlanActions struct + Create bool + Delete bool + Edit bool + View bool + type S3StorageManagementActions struct + Create bool + Delete bool + Edit bool + View bool + type ScanningActions struct + Create bool + Delete bool + Edit bool + Execute bool + View bool + type SearchArgs struct + Name string + Page int + PerPage int + UIDs []string + type SearchUserArgs struct + Account string + IdentityType string + Name string + Page int + PerPage int + UIDs []string + type SearchUserResp struct + TotalCount int + Users []*User + type ServiceActions struct + Create bool + Delete bool + Edit bool + View bool + type SystemActions struct + BusinessDirectory *BusinessDirectoryActions + ClusterManagement *ClusterManagementActions + DBInstanceManagement *DBInstanceManagementActions + DataCenter *DataCenterActions + DeliveryCenter *DeliveryCenterActions + HelmRepoManagement *HelmRepoManagementActions + Project *SystemProjectActions + RegistryManagement *RegistryManagementActions + ReleaseCenter *ReleaseCenterActions + ReleasePlan *ReleasePlanActions + S3StorageManagement *S3StorageManagementActions + Template *TemplateActions + TestCenter *TestCenterActions + VMManagement *VMManagementActions + type SystemProjectActions struct + Create bool + Delete bool + type TemplateActions struct + Create bool + Delete bool + Edit bool + View bool + type TestActions struct + Create bool + Delete bool + Edit bool + Execute bool + View bool + type TestCenterActions struct + View bool + type User struct + Account string + Email string + IdentityType string + Name string + Phone string + UID string + type VMManagementActions struct + Create bool + Delete bool + Edit bool + View bool + type VersionActions struct + Create bool + Delete bool + View bool + type WorkflowActions struct + Create bool + Debug bool + Delete bool + Edit bool + Execute bool + View bool v2.2.0-20240131 Feb 9, 2024 Other modules containing this package github.com/koderover/zadig