v1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 9 Imported by: 0 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 AccessReviewNonResourceAttributes

type AccessReviewNonResourceAttributes struct {
	Verb string
	Path string
}

type AccessReviewResourceAttributes

type AccessReviewResourceAttributes struct {
	// An omitted or empty namespace queries all namespaces; it does not inherit
	// the library or kubeconfig namespace.
	Namespace   *string
	Verb        string
	Group       *string
	Version     *string
	Resource    string
	Subresource *string
	Name        *string
}

type SelfSubjectAccessReviewDataSource

type SelfSubjectAccessReviewDataSource struct {
	// ResourceAttributes selects a resource request. An omitted or empty namespace
	// queries all namespaces and does not inherit the configured namespace.
	ResourceAttributes    *AccessReviewResourceAttributes
	NonResourceAttributes *AccessReviewNonResourceAttributes
}

SelfSubjectAccessReviewDataSource observes access for the configured identity. A negative decision and any evaluation error are returned as data. The query does not create a permission grant. Choose exactly one resource or non-resource attribute object; subject identity comes from shared client configuration. Outputs omit the API reason: equivalent authorization decisions can name different matching RBAC bindings on consecutive reads, invalidating saved plans.

func (SelfSubjectAccessReviewDataSource) Constraints

func (*SelfSubjectAccessReviewDataSource) Read

type SelfSubjectAccessReviewDataSourceOutput

type SelfSubjectAccessReviewDataSourceOutput struct {
	Allowed         bool
	Denied          bool
	EvaluationError string
}

Jump to

Keyboard shortcuts

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