hostedagentaccessrule

package
v0.26.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostedAgentIDIndex    = "hosted-agent-ids"
	ResourceSelectorIndex = "selectors"
	UserIDIndex           = "user-ids"
	GroupIDIndex          = "group-ids"
	SubjectSelectorIndex  = "subject-selectors"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

type Helper struct {
	// contains filtered or unexported fields
}

func NewHelper

func NewHelper(haarIndexer gocache.Indexer) *Helper

func (*Helper) GetHostedAgentAccessRulesForGroup

func (h *Helper) GetHostedAgentAccessRulesForGroup(namespace, groupID string) ([]v1.HostedAgentAccessRule, error)

func (*Helper) GetHostedAgentAccessRulesForHostedAgent

func (h *Helper) GetHostedAgentAccessRulesForHostedAgent(namespace, hostedAgentID string) ([]v1.HostedAgentAccessRule, error)

func (*Helper) GetHostedAgentAccessRulesForSelector

func (h *Helper) GetHostedAgentAccessRulesForSelector(namespace, selector string) ([]v1.HostedAgentAccessRule, error)

func (*Helper) GetHostedAgentAccessRulesForSubjectSelector

func (h *Helper) GetHostedAgentAccessRulesForSubjectSelector(namespace, selector string) ([]v1.HostedAgentAccessRule, error)

func (*Helper) GetHostedAgentAccessRulesForUser

func (h *Helper) GetHostedAgentAccessRulesForUser(namespace, userID string) ([]v1.HostedAgentAccessRule, error)

func (*Helper) GetUserHostedAgentAccessScope

func (h *Helper) GetUserHostedAgentAccessScope(user kuser.Info) (bool, map[string]struct{}, error)

GetUserHostedAgentAccessScope returns whether the user has wildcard access to all hosted agents, and if not, the set of hosted agent IDs they can reach.

func (*Helper) UserHasAccessToHostedAgent

func (h *Helper) UserHasAccessToHostedAgent(user kuser.Info, agent *v1.HostedAgent) (bool, error)

func (*Helper) UserHasAccessToHostedAgentID

func (h *Helper) UserHasAccessToHostedAgentID(user kuser.Info, hostedAgentID string) (bool, error)

Jump to

Keyboard shortcuts

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