package v0
import "k8s.io/kubernetes/pkg/apis/abac/v0"
+k8s:openapi-gen=true
Index ¶
Constants ¶
const GroupName = "abac.authorization.kubernetes.io"
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addConversionFuncs) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v0"}
GroupVersion is the API group and version for abac v0
Types ¶
type Policy ¶
type Policy struct { metav1.TypeMeta `json:",inline"` // User is the username this rule applies to. // Either user or group is required to match the request. // "*" matches all users. // +optional User string `json:"user,omitempty"` // Group is the group this rule applies to. // Either user or group is required to match the request. // "*" matches all groups. // +optional Group string `json:"group,omitempty"` // Readonly matches readonly requests when true, and all requests when false // +optional Readonly bool `json:"readonly,omitempty"` // Resource is the name of a resource // "*" matches all resources // +optional Resource string `json:"resource,omitempty"` // Namespace is the name of a namespace // "*" matches all namespaces (including unnamespaced requests) // +optional Namespace string `json:"namespace,omitempty"` }
Policy contains a single ABAC policy rule
func (*Policy) GetObjectKind ¶
func (obj *Policy) GetObjectKind() schema.ObjectKind
Source Files ¶
conversion.go register.go types.go
- Version
- v1.6.5-beta.0
- Published
- May 15, 2017
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 2 minutes ago –
Tools for package owners.