kubernetesk8s.io/kubernetes/pkg/apis/abac/v0 Index | Files

package v0

import "k8s.io/kubernetes/pkg/apis/abac/v0"

+k8s:openapi-gen=true

Index

Variables

var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addConversionFuncs)
	AddToScheme   = SchemeBuilder.AddToScheme
)
var GroupVersion = unversioned.GroupVersion{Group: api.Group, Version: "v0"}

GroupVersion is the API group and version for abac v0

Types

type Policy

type Policy struct {
	unversioned.TypeMeta `json:",inline"`

	// User is the username this rule applies to.
	// Either user or group is required to match the request.
	// "*" matches all users.
	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.
	Group string `json:"group,omitempty"`

	// Readonly matches readonly requests when true, and all requests when false
	Readonly bool `json:"readonly,omitempty"`

	// Resource is the name of a resource
	// "*" matches all resources
	Resource string `json:"resource,omitempty"`

	// Namespace is the name of a namespace
	// "*" matches all namespaces (including unnamespaced requests)
	Namespace string `json:"namespace,omitempty"`
}

Policy contains a single ABAC policy rule

func (*Policy) GetObjectKind

func (obj *Policy) GetObjectKind() unversioned.ObjectKind

Source Files

conversion.go register.go types.go

Version
v1.5.0-alpha.1
Published
Oct 11, 2016
Platform
js/wasm
Imports
4 packages
Last checked
9 seconds ago

Tools for package owners.