Documentation ¶
Index ¶
- type PolicyServiceImpl
- func (i *PolicyServiceImpl) CreatePolicy(ctx context.Context, in *policy.CreatePolicyRequest) (*policy.Policy, error)
- func (i *PolicyServiceImpl) DeletePolicy(ctx context.Context, in *policy.DeletePolicyRequest) (*policy.Policy, error)
- func (i *PolicyServiceImpl) DescribePolicy(ctx context.Context, in *policy.DescribePolicyRequest) (*policy.Policy, error)
- func (i *PolicyServiceImpl) Init() error
- func (i *PolicyServiceImpl) Name() string
- func (i *PolicyServiceImpl) QueryEndpoint(ctx context.Context, in *policy.QueryEndpointRequest) (*types.Set[*endpoint.Endpoint], error)
- func (i *PolicyServiceImpl) QueryMenu(ctx context.Context, in *policy.QueryMenuRequest) (*types.Set[*view.Menu], error)
- func (i *PolicyServiceImpl) QueryNamespace(ctx context.Context, in *policy.QueryNamespaceRequest) (*types.Set[*namespace.Namespace], error)
- func (i *PolicyServiceImpl) QueryPolicy(ctx context.Context, in *policy.QueryPolicyRequest) (*types.Set[*policy.Policy], error)
- func (i *PolicyServiceImpl) UpdatePolicy(ctx context.Context, in *policy.UpdatePolicyRequest) (*policy.Policy, error)
- func (i *PolicyServiceImpl) ValidateEndpointPermission(ctx context.Context, in *policy.ValidateEndpointPermissionRequest) (*policy.ValidateEndpointPermissionResponse, error)
- func (i *PolicyServiceImpl) ValidatePagePermission(ctx context.Context, in *policy.ValidatePagePermissionRequest) (*policy.ValidatePagePermissionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyServiceImpl ¶
type PolicyServiceImpl struct { ioc.ObjectImpl // contains filtered or unexported fields }
func (*PolicyServiceImpl) CreatePolicy ¶
func (i *PolicyServiceImpl) CreatePolicy(ctx context.Context, in *policy.CreatePolicyRequest) (*policy.Policy, error)
创建策略
func (*PolicyServiceImpl) DeletePolicy ¶
func (i *PolicyServiceImpl) DeletePolicy(ctx context.Context, in *policy.DeletePolicyRequest) (*policy.Policy, error)
删除策略
func (*PolicyServiceImpl) DescribePolicy ¶
func (i *PolicyServiceImpl) DescribePolicy(ctx context.Context, in *policy.DescribePolicyRequest) (*policy.Policy, error)
查询详情
func (*PolicyServiceImpl) Init ¶
func (i *PolicyServiceImpl) Init() error
func (*PolicyServiceImpl) Name ¶
func (i *PolicyServiceImpl) Name() string
func (*PolicyServiceImpl) QueryEndpoint ¶
func (i *PolicyServiceImpl) QueryEndpoint(ctx context.Context, in *policy.QueryEndpointRequest) (*types.Set[*endpoint.Endpoint], error)
查询用户可以访问的Api接口
func (*PolicyServiceImpl) QueryMenu ¶
func (i *PolicyServiceImpl) QueryMenu(ctx context.Context, in *policy.QueryMenuRequest) (*types.Set[*view.Menu], error)
查询用户可以访问的菜单
func (*PolicyServiceImpl) QueryNamespace ¶
func (i *PolicyServiceImpl) QueryNamespace(ctx context.Context, in *policy.QueryNamespaceRequest) (*types.Set[*namespace.Namespace], error)
查询用户可以访问的空间
func (*PolicyServiceImpl) QueryPolicy ¶
func (i *PolicyServiceImpl) QueryPolicy(ctx context.Context, in *policy.QueryPolicyRequest) (*types.Set[*policy.Policy], error)
查询策略列表
func (*PolicyServiceImpl) UpdatePolicy ¶
func (i *PolicyServiceImpl) UpdatePolicy(ctx context.Context, in *policy.UpdatePolicyRequest) (*policy.Policy, error)
更新策略
func (*PolicyServiceImpl) ValidateEndpointPermission ¶
func (i *PolicyServiceImpl) ValidateEndpointPermission(ctx context.Context, in *policy.ValidateEndpointPermissionRequest) (*policy.ValidateEndpointPermissionResponse, error)
校验Api接口权限
func (*PolicyServiceImpl) ValidatePagePermission ¶
func (i *PolicyServiceImpl) ValidatePagePermission(ctx context.Context, in *policy.ValidatePagePermissionRequest) (*policy.ValidatePagePermissionResponse, error)
校验Menu视图权限
Click to show internal directories.
Click to hide internal directories.