Documentation
¶
Index ¶
- Constants
- type Helper
- func (h *Helper) GetHostedAgentAccessRulesForGroup(namespace, groupID string) ([]v1.HostedAgentAccessRule, error)
- func (h *Helper) GetHostedAgentAccessRulesForHostedAgent(namespace, hostedAgentID string) ([]v1.HostedAgentAccessRule, error)
- func (h *Helper) GetHostedAgentAccessRulesForSelector(namespace, selector string) ([]v1.HostedAgentAccessRule, error)
- func (h *Helper) GetHostedAgentAccessRulesForSubjectSelector(namespace, selector string) ([]v1.HostedAgentAccessRule, error)
- func (h *Helper) GetHostedAgentAccessRulesForUser(namespace, userID string) ([]v1.HostedAgentAccessRule, error)
- func (h *Helper) GetUserHostedAgentAccessScope(user kuser.Info) (bool, map[string]struct{}, error)
- func (h *Helper) UserHasAccessToHostedAgent(user kuser.Info, agent *v1.HostedAgent) (bool, error)
- func (h *Helper) UserHasAccessToHostedAgentID(user kuser.Info, hostedAgentID string) (bool, error)
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 (*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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.