kubernetes: k8s.io/kubernetes/pkg/apis/abac/v1beta1 Index | Files

package v1beta1

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

Index

Package Files

conversion.go doc.go register.go types.go zz_generated.conversion.go zz_generated.deepcopy.go zz_generated.defaults.go

Constants

const GroupName = "abac.authorization.kubernetes.io"

GroupName is the group name use in this package

Variables

var (
    // SchemeBuilder is the scheme builder with scheme init functions to run for this API package
    // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
    SchemeBuilder runtime.SchemeBuilder

    // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme
    AddToScheme = localSchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}

SchemeGroupVersion is the API group and version for abac v1beta1

func Convert_abac_PolicySpec_To_v1beta1_PolicySpec Uses

func Convert_abac_PolicySpec_To_v1beta1_PolicySpec(in *abac.PolicySpec, out *PolicySpec, s conversion.Scope) error

Convert_abac_PolicySpec_To_v1beta1_PolicySpec is an autogenerated conversion function.

func Convert_abac_Policy_To_v1beta1_Policy Uses

func Convert_abac_Policy_To_v1beta1_Policy(in *abac.Policy, out *Policy, s conversion.Scope) error

Convert_abac_Policy_To_v1beta1_Policy is an autogenerated conversion function.

func Convert_v1beta1_PolicySpec_To_abac_PolicySpec Uses

func Convert_v1beta1_PolicySpec_To_abac_PolicySpec(in *PolicySpec, out *abac.PolicySpec, s conversion.Scope) error

Convert_v1beta1_PolicySpec_To_abac_PolicySpec is an autogenerated conversion function.

func Convert_v1beta1_Policy_To_abac_Policy Uses

func Convert_v1beta1_Policy_To_abac_Policy(in *Policy, out *abac.Policy, s conversion.Scope) error

Convert_v1beta1_Policy_To_abac_Policy is an autogenerated conversion function.

func RegisterConversions Uses

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults Uses

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

type Policy Uses

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

    // Spec describes the policy rule
    Spec PolicySpec `json:"spec"`
}

Policy contains a single ABAC policy rule

func (*Policy) DeepCopy Uses

func (in *Policy) DeepCopy() *Policy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy.

func (*Policy) DeepCopyInto Uses

func (in *Policy) DeepCopyInto(out *Policy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Policy) DeepCopyObject Uses

func (in *Policy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PolicySpec Uses

type PolicySpec struct {
    // 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"`

    // APIGroup is the name of an API group. APIGroup, Resource, and Namespace are required to match resource requests.
    // "*" matches all API groups
    // +optional
    APIGroup string `json:"apiGroup,omitempty"`

    // Resource is the name of a resource. APIGroup, Resource, and Namespace are required to match resource requests.
    // "*" matches all resources
    // +optional
    Resource string `json:"resource,omitempty"`

    // Namespace is the name of a namespace. APIGroup, Resource, and Namespace are required to match resource requests.
    // "*" matches all namespaces (including unnamespaced requests)
    // +optional
    Namespace string `json:"namespace,omitempty"`

    // NonResourcePath matches non-resource request paths.
    // "*" matches all paths
    // "/foo/*" matches all subpaths of foo
    // +optional
    NonResourcePath string `json:"nonResourcePath,omitempty"`
}

PolicySpec contains the attributes for a policy rule

func (*PolicySpec) DeepCopy Uses

func (in *PolicySpec) DeepCopy() *PolicySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicySpec.

func (*PolicySpec) DeepCopyInto Uses

func (in *PolicySpec) DeepCopyInto(out *PolicySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Package v1beta1 imports 5 packages (graph) and is imported by 81 packages. Updated 2018-10-29. Refresh now. Tools for package owners.