client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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