Documentation ¶
Index ¶
- type AuthorizedResources
- type BuildActions
- type BusinessDirectoryActions
- type 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
- type CreateUserArgs
- type CreateUserResp
- type DBInstanceManagementActions
- type DataCenterActions
- type DeliveryCenterActions
- type EnvActions
- type HelmRepoManagementActions
- type InitializeProjectResp
- type ProductionEnvActions
- type ProductionServiceActions
- type ProjectActions
- type RegistryManagementActions
- type ReleaseCenterActions
- type ReleasePlanActions
- type S3StorageManagementActions
- type ScanningActions
- type SearchArgs
- type SearchUserArgs
- type SearchUserResp
- type ServiceActions
- type SystemActions
- type SystemProjectActions
- type TemplateActions
- type TestActions
- type TestCenterActions
- type User
- type VMManagementActions
- type VersionActions
- type WorkflowActions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizedResources ¶
type AuthorizedResources struct { IsSystemAdmin bool `json:"is_system_admin"` ProjectAuthInfo map[string]*ProjectActions `json:"project_auth_info"` SystemActions *SystemActions `json:"system_actions"` }
type BusinessDirectoryActions ¶
type BusinessDirectoryActions struct {
View bool
}
type Client ¶
type Client struct { *httpclient.Client // contains filtered or unexported fields }
func (*Client) CheckPermissionGivenByCollaborationMode ¶
func (*Client) CheckUserAuthInfoForCollaborationMode ¶
func (*Client) CountUsers ¶
func (c *Client) CountUsers() (*types.UserStatistics, error)
func (*Client) CreateUser ¶
func (c *Client) CreateUser(args *CreateUserArgs) (*CreateUserResp, error)
func (*Client) CreateUserRoleBinding ¶
func (*Client) DeleteAllProjectRoles ¶
func (*Client) DeleteUser ¶
func (*Client) GetGroupDetailedInfo ¶
func (c *Client) GetGroupDetailedInfo(groupID string) (*types.DetailedUserGroupResp, error)
func (*Client) GetUserAuthInfo ¶
func (c *Client) GetUserAuthInfo(uid string) (*AuthorizedResources, error)
func (*Client) InitializeProject ¶
func (*Client) ListAuthorizedProjects ¶
func (*Client) ListAuthorizedProjectsByResourceAndVerb ¶
func (*Client) ListAuthorizedWorkflows ¶
func (*Client) ListCollaborationEnvironmentsPermission ¶
func (c *Client) ListCollaborationEnvironmentsPermission(uid, projectKey string) (*types.CollaborationEnvPermission, error)
func (*Client) SearchUser ¶
func (c *Client) SearchUser(args *SearchUserArgs) (*SearchUserResp, error)
func (*Client) SearchUsers ¶
func (c *Client) SearchUsers(header http.Header, qs url.Values, body interface{}) (*types.UsersResp, error)
moved from policy client, TODO: merge it with searchUser function
func (*Client) SearchUsersByIDList ¶
type CreateUserArgs ¶
type CreateUserResp ¶
type DataCenterActions ¶
type DeliveryCenterActions ¶
type EnvActions ¶
type InitializeProjectResp ¶
type InitializeProjectResp struct {
Roles []string `json:"roles"`
}
type ProductionEnvActions ¶
type ProjectActions ¶
type ProjectActions struct { IsProjectAdmin bool `json:"is_system_admin"` Workflow *WorkflowActions `json:"workflow"` Env *EnvActions `json:"env"` ProductionEnv *ProductionEnvActions `json:"production_env"` Service *ServiceActions `json:"service"` ProductionService *ProductionServiceActions `json:"production_service"` Build *BuildActions `json:"build"` Test *TestActions `json:"test"` Scanning *ScanningActions `json:"scanning"` Version *VersionActions `json:"version"` }
type ReleaseCenterActions ¶
type ReleaseCenterActions struct {
View bool
}
type ReleasePlanActions ¶
type ScanningActions ¶
type SearchArgs ¶
type SearchUserArgs ¶
type SearchUserResp ¶
type SystemActions ¶
type SystemActions struct { Project *SystemProjectActions `json:"project"` Template *TemplateActions `json:"template"` TestCenter *TestCenterActions `json:"test_center"` ReleaseCenter *ReleaseCenterActions `json:"release_center"` DeliveryCenter *DeliveryCenterActions `json:"delivery_center"` DataCenter *DataCenterActions `json:"data_center"` ReleasePlan *ReleasePlanActions `json:"release_plan"` BusinessDirectory *BusinessDirectoryActions `json:"business_directory"` ClusterManagement *ClusterManagementActions `json:"cluster_management"` VMManagement *VMManagementActions `json:"vm_management"` RegistryManagement *RegistryManagementActions `json:"registry_management"` S3StorageManagement *S3StorageManagementActions `json:"s3storage_management"` HelmRepoManagement *HelmRepoManagementActions `json:"helmrepo_management"` DBInstanceManagement *DBInstanceManagementActions `json:"dbinstance_management"` }
type SystemProjectActions ¶
type TestActions ¶
type TestCenterActions ¶
type TestCenterActions struct {
View bool
}
type VMManagementActions ¶
type VersionActions ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.