Documentation ¶
Index ¶
- Variables
- func DestroyAAPClient() error
- func InitAAPClient(conf *Config) error
- type Client
- func (c *Client) CreateOrganization(orgName string) (*dto.CreateOrganizationResponse, error)
- func (c *Client) CreatePermission(orgID string, name string, resource string, action string) (*dto.CreatePermissionResponse, error)
- func (c *Client) CreateRole(orgID string, roleName string) (*dto.CreateRoleResponse, error)
- func (c *Client) CreateUser(orgID string, username string, password string, expireTime string) (*dto.UserInfo, error)
- func (c *Client) CreateUserConvenient(request *dto.CreateUserConvenientRequest) (*dto.CreateUserConvenientResponse, error)
- func (c *Client) DeleteOrganization(orgID string) error
- func (c *Client) DeletePermission(orgID string, permissionID string) error
- func (c *Client) DeleteRole(orgID, roleID string) error
- func (c *Client) DeleteUser(orgID string, userID string) error
- func (c *Client) GetOrganizations(orgID string, name string, pageNo int, pageSize int) (*dto.GetOrganizationsResponse, error)
- func (c *Client) GetPermissions(orgID string, permissionID string, name string, resource string, action string, ...) (*dto.GetPermissionsResponse, error)
- func (c *Client) GetPermissionsInRole(orgID string, roleID string) (*dto.GetPermissionsInRoleResponse, error)
- func (c *Client) GetRoles(orgID string, roleID string, roleName string, pageNo int, pageSize int) (*dto.GetRolesResponse, error)
- func (c *Client) GetRolesOfUser(orgID string, userID string) (*dto.GetRolesOfUserResponse, error)
- func (c *Client) GetUserAccessToken(orgID string, userName string, password string, expSec int64) (*dto.GetUserAccessTokenResponse, error)
- func (c *Client) GetUsers(orgID string, userID string, username string, pageNo int, pageSize int) (*dto.GetUsersResponse, error)
- func (c *Client) RegisterServiceAuthority(authorityID string) error
- func (c *Client) UnregisterServiceAuthority(authorityID string) error
- func (c *Client) UpdateOrganization(orgID string, name string) error
- func (c *Client) UpdatePermission(orgID, permissionID, name, resource, action string) error
- func (c *Client) UpdatePermissionsInRole(orgID string, roleID string, permissionIDs []string) error
- func (c *Client) UpdateRole(orgID, roleID, name string) error
- func (c *Client) UpdateRolesOfUser(orgID string, userID string, roleIDs []string) error
- func (c *Client) UpdateUser(orgID string, userID string, username string, password string) error
- func (c *Client) UserAuthentication(accessToken string, resource string, action string) (*dto.UserAuthenticationResponse, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrParam = errors.New("没有传递必要的参数")
)
Functions ¶
func DestroyAAPClient ¶
func DestroyAAPClient() error
func InitAAPClient ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func GetInstance ¶ added in v0.1.1
func GetInstance() *Client
func (*Client) CreateOrganization ¶
func (c *Client) CreateOrganization(orgName string) (*dto.CreateOrganizationResponse, error)
func (*Client) CreatePermission ¶
func (*Client) CreateRole ¶
func (*Client) CreateUser ¶
func (*Client) CreateUserConvenient ¶ added in v0.1.18
func (c *Client) CreateUserConvenient(request *dto.CreateUserConvenientRequest) (*dto.CreateUserConvenientResponse, error)
func (*Client) DeleteOrganization ¶
func (*Client) DeletePermission ¶
func (*Client) DeleteRole ¶
func (*Client) GetOrganizations ¶
func (*Client) GetPermissions ¶
func (*Client) GetPermissionsInRole ¶ added in v0.1.15
func (*Client) GetRolesOfUser ¶
func (*Client) GetUserAccessToken ¶
func (*Client) RegisterServiceAuthority ¶
func (*Client) UnregisterServiceAuthority ¶
func (*Client) UpdateOrganization ¶
func (*Client) UpdatePermission ¶
func (*Client) UpdatePermissionsInRole ¶
func (*Client) UpdateRole ¶
func (*Client) UpdateRolesOfUser ¶
func (*Client) UpdateUser ¶
func (*Client) UserAuthentication ¶
Click to show internal directories.
Click to hide internal directories.