Documentation ¶
Index ¶
- type ActionRule
- type Attribute
- type Client
- func (c *Client) CreateOrUpdatePolicyRegistration(p *PolicyMeta) error
- func (c *Client) CreateOrUpdateRoleBinding(projectName string, roleBinding *RoleBinding) error
- func (c *Client) CreateOrUpdateSystemRoleBinding(roleBinding *RoleBinding) error
- func (c *Client) CreatePolicies(ns string, request CreatePoliciesArgs) error
- func (c *Client) CreatePolicyBinding(projectName string, policyBindings []*PolicyBinding) error
- func (c *Client) CreatePresetRole(name string, role *Role) error
- func (c *Client) CreateSystemRole(name string, role *Role) error
- func (c *Client) DeletePolicies(ns string, request DeletePoliciesArgs) error
- func (c *Client) DeletePolicyBindings(names []string, projectName string) error
- func (c *Client) DeleteRoleBinding(name string, projectName string) error
- func (c *Client) DeleteRoleBindings(names []string, projectName string) error
- func (c *Client) DeleteRoles(names []string, projectName string) error
- func (c *Client) GetPolicies(names string) ([]*Policy, error)
- func (c *Client) GetResourcePermission(req *ResourcePermissionReq) (map[string][]string, error)
- func (c *Client) Healthz() error
- func (c *Client) ListRoleBindings(projectName string) ([]*RoleBinding, error)
- func (c *Client) UpdatePolicy(ns string, policy *Policy) error
- type CreatePoliciesArgs
- type DeletePoliciesArgs
- type MatchAttribute
- type NameArgs
- type Policy
- type PolicyBinding
- type PolicyMeta
- type ResourcePermissionReq
- type Role
- type RoleBinding
- type Rule
- type RuleMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionRule ¶
type Client ¶
type Client struct { *httpclient.Client // contains filtered or unexported fields }
func NewDefault ¶
func NewDefault() *Client
func NewWithRetry ¶ added in v1.8.0
func NewWithRetry() *Client
func (*Client) CreateOrUpdatePolicyRegistration ¶ added in v1.10.0
func (c *Client) CreateOrUpdatePolicyRegistration(p *PolicyMeta) error
func (*Client) CreateOrUpdateRoleBinding ¶
func (c *Client) CreateOrUpdateRoleBinding(projectName string, roleBinding *RoleBinding) error
func (*Client) CreateOrUpdateSystemRoleBinding ¶
func (c *Client) CreateOrUpdateSystemRoleBinding(roleBinding *RoleBinding) error
func (*Client) CreatePolicies ¶ added in v1.10.0
func (c *Client) CreatePolicies(ns string, request CreatePoliciesArgs) error
func (*Client) CreatePolicyBinding ¶ added in v1.10.0
func (c *Client) CreatePolicyBinding(projectName string, policyBindings []*PolicyBinding) error
func (*Client) CreatePresetRole ¶ added in v1.10.0
func (*Client) DeletePolicies ¶ added in v1.10.0
func (c *Client) DeletePolicies(ns string, request DeletePoliciesArgs) error
func (*Client) DeletePolicyBindings ¶ added in v1.10.0
func (*Client) DeleteRoleBinding ¶
func (*Client) DeleteRoleBindings ¶
func (*Client) GetPolicies ¶ added in v1.10.0
func (*Client) GetResourcePermission ¶ added in v1.10.0
func (c *Client) GetResourcePermission(req *ResourcePermissionReq) (map[string][]string, error)
func (*Client) ListRoleBindings ¶
func (c *Client) ListRoleBindings(projectName string) ([]*RoleBinding, error)
type CreatePoliciesArgs ¶ added in v1.10.0
type CreatePoliciesArgs struct {
Policies []*Policy `json:"policies"`
}
type DeletePoliciesArgs ¶ added in v1.10.0
type DeletePoliciesArgs struct {
Names []string `json:"names"`
}
type MatchAttribute ¶ added in v1.10.0
type PolicyBinding ¶ added in v1.10.0
type PolicyMeta ¶ added in v1.10.0
type ResourcePermissionReq ¶ added in v1.10.0
type Role ¶
type Role struct { Name string `json:"name"` Type setting.ResourceType `json:"type"` Rules []*struct { Verbs []string `json:"verbs"` Resources []string `json:"resources"` Kind string `json:"kind"` MatchAttributes []MatchAttribute `json:"match_attributes,omitempty"` } `json:"rules"` }
type RoleBinding ¶
Click to show internal directories.
Click to hide internal directories.