policy

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 New

func New() *Client

func (*Client) DeleteRoleBindings added in v1.7.1

func (c *Client) DeleteRoleBindings(userID string, header http.Header, qs url.Values) ([]byte, error)

func (*Client) ListPolicyBindings added in v1.9.9

func (c *Client) ListPolicyBindings(header http.Header, qs url.Values) ([]*PolicyBinding, error)

func (*Client) ListRoleBindings

func (c *Client) ListRoleBindings(header http.Header, qs url.Values) ([]*RoleBinding, error)

func (*Client) SearchSystemRoleBindings added in v1.9.9

func (c *Client) SearchSystemRoleBindings(uids []string) (map[string][]*types.RoleBinding, error)

type PolicyBinding added in v1.9.9

type PolicyBinding struct {
	Name   string               `json:"name"`
	UID    string               `json:"uid"`
	Policy string               `json:"policy"`
	Preset bool                 `json:"preset"`
	Type   setting.ResourceType `json:"type"`
}

type RoleBinding

type RoleBinding struct {
	Name   string               `json:"name"`
	UID    string               `json:"uid"`
	Role   string               `json:"role"`
	Preset bool                 `json:"preset"`
	Type   setting.ResourceType `json:"type"`
}

type SearchSystemRoleBindingArgs added in v1.9.9

type SearchSystemRoleBindingArgs struct {
	Uids []string `json:"uids"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL