Documentation
¶
Index ¶
- type Client
- func (c *Client) ListGroups(ctx context.Context) ([]*v2.Resource, error)
- func (c *Client) ListRoleBindings(ctx context.Context, namespace string, entitlement *v2.Resource, ...) ([]*v2.Grant, error)
- func (c *Client) ListRoles(ctx context.Context, namespace string) ([]*v2.Resource, error)
- func (c *Client) ListUsers(ctx context.Context) ([]*v2.Resource, error)
- func (c *Client) MatchUsersToGroup(ctx context.Context, entitlement *v2.Resource, users []*v2.Resource) ([]*v2.Grant, error)
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 is an abstraction that sits between Openshift/Kubernetes Go API client and the Baton connector code needed by Baton SDK.
func (*Client) ListGroups ¶
ListGroups list all available groups on the Openshift cluster.
func (*Client) ListRoleBindings ¶
func (c *Client) ListRoleBindings(ctx context.Context, namespace string, entitlement *v2.Resource, users []*v2.Resource) ([]*v2.Grant, error)
ListRoleBindings matches a user with a role (rolebinding) in a namespace.
Click to show internal directories.
Click to hide internal directories.