client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 15 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 {
	// 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 New

func New(c *rest.Config) (*Client, error)

func (*Client) ListGroups

func (c *Client) ListGroups(ctx context.Context) ([]*v2.Resource, error)

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.

func (*Client) ListRoles

func (c *Client) ListRoles(ctx context.Context, namespace string) ([]*v2.Resource, error)

ListRoles list the available (roles) entitlements in a namespace.

func (*Client) ListUsers

func (c *Client) ListUsers(ctx context.Context) ([]*v2.Resource, error)

ListUsers list the users of the Openshift cluster.

func (*Client) MatchUsersToGroup

func (c *Client) MatchUsersToGroup(ctx context.Context, entitlement *v2.Resource, users []*v2.Resource) ([]*v2.Grant, error)

MatchUsersToGroup matches what users belong to which groups.

Jump to

Keyboard shortcuts

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