Documentation
¶
Index ¶
- type Client
- func (c *Client) Add(ctx context.Context, name string, users []string) error
- func (c *Client) Get(ctx context.Context, name string) ([]string, error)
- func (c *Client) GetACL(ctx context.Context, p *params.GetACLRequest) (*params.GetACLResponse, error)
- func (c *Client) GetACLs(ctx context.Context, p *params.GetACLsRequest) (*params.GetACLsResponse, error)
- func (c *Client) ModifyACL(ctx context.Context, p *params.ModifyACLRequest) error
- func (c *Client) Remove(ctx context.Context, name string, users []string) error
- func (c *Client) Set(ctx context.Context, name string, users []string) error
- func (c *Client) SetACL(ctx context.Context, p *params.SetACLRequest) error
- type NewParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an ACL store client.
func (*Client) GetACL ¶
func (c *Client) GetACL(ctx context.Context, p *params.GetACLRequest) (*params.GetACLResponse, error)
GetACL returns the members of the ACL with the requested name. Only administrators and members of the meta-ACL for the name may access this endpoint. The meta-ACL for meta-ACLs is "admin".
func (*Client) GetACLs ¶ added in v2.1.0
func (c *Client) GetACLs(ctx context.Context, p *params.GetACLsRequest) (*params.GetACLsResponse, error)
GetACLs returns the list of all ACLs. Only administrators may access this endpoint.
func (*Client) ModifyACL ¶
func (c *Client) ModifyACL(ctx context.Context, p *params.ModifyACLRequest) error
ModifyACL modifies the members of the ACL with the requested name. Only administrators and members of the meta-ACL for the name may access this endpoint. The meta-ACL for meta-ACLs is "admin".
func (*Client) Remove ¶
Remove updates the contents of the given ACL to remove those in the given user list.
Click to show internal directories.
Click to hide internal directories.