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 ¶ added in v1.9.9
type AuthorizedResources struct {
IsSystemAdmin bool `json:"is_system_admin"`
ProjectAuthInfo map[string]*ProjectActions `json:"project_auth_info"`
SystemActions *SystemActions `json:"system_actions"`
}
type BuildActions ¶ added in v1.9.9
type BusinessDirectoryActions ¶ added in v1.9.9
type BusinessDirectoryActions struct {
View bool
}
type Client ¶
type Client struct {
*httpclient.Client
// contains filtered or unexported fields
}
func (*Client) CheckPermissionGivenByCollaborationMode ¶ added in v1.9.9
func (*Client) CheckUserAuthInfoForCollaborationMode ¶ added in v1.9.9
func (*Client) CountUsers ¶ added in v1.9.9
func (c *Client) CountUsers() (*types.UserStatistics, error)
func (*Client) CreateUser ¶
func (c *Client) CreateUser(args *CreateUserArgs) (*CreateUserResp, error)
func (*Client) CreateUserRoleBinding ¶ added in v1.9.9
func (*Client) DeleteAllProjectRoles ¶ added in v1.9.9
func (*Client) DeleteUser ¶ added in v1.9.9
func (*Client) GetGroupDetailedInfo ¶ added in v1.9.9
func (c *Client) GetGroupDetailedInfo(groupID string) (*types.DetailedUserGroupResp, error)
func (*Client) GetUserAuthInfo ¶ added in v1.9.9
func (c *Client) GetUserAuthInfo(uid string) (*AuthorizedResources, error)
func (*Client) GetUserByID ¶ added in v1.9.9
func (*Client) InitializeProject ¶ added in v1.9.9
func (*Client) ListAuthorizedProjects ¶ added in v1.9.9
func (*Client) ListAuthorizedProjectsByResourceAndVerb ¶ added in v1.9.9
func (*Client) ListAuthorizedWorkflows ¶ added in v1.9.9
func (*Client) ListCollaborationEnvironmentsPermission ¶ added in v1.9.9
func (c *Client) ListCollaborationEnvironmentsPermission(uid, projectKey string) (*types.CollaborationEnvPermission, error)
func (*Client) SearchUser ¶
func (c *Client) SearchUser(args *SearchUserArgs) (*SearchUserResp, error)
func (*Client) SearchUsers ¶ added in v1.9.9
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 ¶ added in v1.9.9
type ClusterManagementActions ¶ added in v1.9.9
type CreateUserArgs ¶
type CreateUserResp ¶
type DBInstanceManagementActions ¶ added in v1.9.9
type DataCenterActions ¶ added in v1.9.9
type DeliveryCenterActions ¶ added in v1.9.9
type EnvActions ¶ added in v1.9.9
type HelmRepoManagementActions ¶ added in v1.9.9
type InitializeProjectResp ¶ added in v1.9.9
type InitializeProjectResp struct {
Roles []string `json:"roles"`
}
type ProductionEnvActions ¶ added in v1.9.9
type ProductionServiceActions ¶ added in v1.9.9
type ProjectActions ¶ added in v1.9.9
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 RegistryManagementActions ¶ added in v1.9.9
type ReleaseCenterActions ¶ added in v1.9.9
type ReleaseCenterActions struct {
View bool
}
type ReleasePlanActions ¶ added in v1.9.9
type S3StorageManagementActions ¶ added in v1.9.9
type ScanningActions ¶ added in v1.9.9
type SearchArgs ¶
type SearchUserArgs ¶
type SearchUserResp ¶
type ServiceActions ¶ added in v1.9.9
type SystemActions ¶ added in v1.9.9
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 ¶ added in v1.9.9
type TemplateActions ¶ added in v1.9.9
type TestActions ¶ added in v1.9.9
type TestCenterActions ¶ added in v1.9.9
type TestCenterActions struct {
View bool
}
type VMManagementActions ¶ added in v1.9.9
type VersionActions ¶ added in v1.9.9
Click to show internal directories.
Click to hide internal directories.