Documentation ¶
Index ¶
- type Client
- 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) 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) ([]*types.Policy, error)
- func (c *Client) Healthz() error
- func (c *Client) ListRoleBindings(projectName string) ([]*RoleBinding, error)
- func (c *Client) UpdatePolicy(ns string, policy *types.Policy) error
- type CreatePoliciesArgs
- type DeletePoliciesArgs
- type NameArgs
- type PolicyBinding
- type Role
- type RoleBinding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *httpclient.Client // contains filtered or unexported fields }
func NewDefault ¶
func NewDefault() *Client
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) ListRoleBindings ¶
func (c *Client) ListRoleBindings(projectName string) ([]*RoleBinding, error)
type CreatePoliciesArgs ¶ added in v1.10.0
type DeletePoliciesArgs ¶ added in v1.10.0
type DeletePoliciesArgs struct {
Names []string `json:"names"`
}
type PolicyBinding ¶ added in v1.10.0
type Role ¶
type Role struct { Name string `json:"name"` Type setting.ResourceType `json:"type"` Desc string `json:"desc"` Rules []*struct { Verbs []string `json:"verbs"` Resources []string `json:"resources"` Kind string `json:"kind"` MatchAttributes []types.MatchAttribute `json:"match_attributes,omitempty"` } `json:"rules"` }
type RoleBinding ¶
Click to show internal directories.
Click to hide internal directories.