Documentation
¶
Index ¶
- type AuthorizedResources
- type BuildActions
- 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) CreateUser(args *CreateUserArgs) (*CreateUserResp, error)
- func (c *Client) DeleteUser(userId string, header http.Header, qs url.Values) ([]byte, 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) 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) 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)
- type CreateUserArgs
- type CreateUserResp
- type DataCenterActions
- type DeliveryCenterActions
- type EnvActions
- type ProductionEnvActions
- type ProductionServiceActions
- type ProjectActions
- type ReleaseCenterActions
- type ScanningActions
- type SearchArgs
- type SearchUserArgs
- type SearchUserResp
- type ServiceActions
- type SystemActions
- type SystemProjectActions
- type TemplateActions
- type TestActions
- type TestCenterActions
- type User
- 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 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) CreateUser ¶
func (c *Client) CreateUser(args *CreateUserArgs) (*CreateUserResp, error)
func (*Client) DeleteUser ¶ added in v1.9.9
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) 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)
type CreateUserArgs ¶
type CreateUserResp ¶
type DataCenterActions ¶ added in v1.9.9
type DeliveryCenterActions ¶ added in v1.9.9
type EnvActions ¶ added in v1.9.9
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 ReleaseCenterActions ¶ added in v1.9.9
type ReleaseCenterActions struct {
View bool
}
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"`
}
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 VersionActions ¶ added in v1.9.9
Click to show internal directories.
Click to hide internal directories.