authorizationsync

package
v3.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToRBACClusterRole

func ConvertToRBACClusterRole(originClusterRole *authorizationapi.ClusterRole) (*rbac.ClusterRole, error)

ConvertToRBACClusterRole performs the conversion and guarantees the returned object is safe to mutate.

func ConvertToRBACClusterRoleBinding

func ConvertToRBACClusterRoleBinding(originClusterRoleBinding *authorizationapi.ClusterRoleBinding) (*rbac.ClusterRoleBinding, error)

ConvertToRBACClusterRoleBinding performs the conversion and guarantees the returned object is safe to mutate.

func ConvertToRBACRole

func ConvertToRBACRole(originRole *authorizationapi.Role) (*rbac.Role, error)

ConvertToRBACRole performs the conversion and guarantees the returned object is safe to mutate.

func ConvertToRBACRoleBinding

func ConvertToRBACRoleBinding(originRoleBinding *authorizationapi.RoleBinding) (*rbac.RoleBinding, error)

ConvertToRBACRoleBinding performs the conversion and guarantees the returned object is safe to mutate.

func PrepareForUpdateClusterRole

func PrepareForUpdateClusterRole(newClusterRole, existingClusterRole *rbac.ClusterRole) bool

PrepareForUpdateClusterRole compares newClusterRole with existingClusterRole to determine if an update is required. newClusterRole must be safe to modify as it is mutated during the comparison which must ignore fields that will never match. Returns true if an update is required, in which case newClusterRole should be passed to Update.

func PrepareForUpdateClusterRoleBinding

func PrepareForUpdateClusterRoleBinding(newClusterRoleBinding, existingClusterRoleBinding *rbac.ClusterRoleBinding) bool

PrepareForUpdateClusterRoleBinding compares newClusterRoleBinding with existingClusterRoleBinding to determine if an update is required. newClusterRoleBinding must be safe to modify as it is mutated during the comparison which must ignore fields that will never match. Returns true if an update is required, in which case newClusterRoleBinding should be passed to Update.

func PrepareForUpdateRole

func PrepareForUpdateRole(newRole, existingRole *rbac.Role) bool

PrepareForUpdateRole compares newRole with existingRole to determine if an update is required. newRole must be safe to modify as it is mutated during the comparison which must ignore fields that will never match. Returns true if an update is required, in which case newRole should be passed to Update.

func PrepareForUpdateRoleBinding

func PrepareForUpdateRoleBinding(newRoleBinding, existingRoleBinding *rbac.RoleBinding) bool

PrepareForUpdateRoleBinding compares newRoleBinding with existingRoleBinding to determine if an update is required. newRoleBinding must be safe to modify as it is mutated during the comparison which must ignore fields that will never match. Returns true if an update is required, in which case newRoleBinding should be passed to Update.

Types

type OriginClusterRoleBindingToRBACClusterRoleBindingController

type OriginClusterRoleBindingToRBACClusterRoleBindingController struct {
	// contains filtered or unexported fields
}

func (*OriginClusterRoleBindingToRBACClusterRoleBindingController) Run

func (c *OriginClusterRoleBindingToRBACClusterRoleBindingController) Run(workers int, stopCh <-chan struct{})

type OriginClusterRoleToRBACClusterRoleController

type OriginClusterRoleToRBACClusterRoleController struct {
	// contains filtered or unexported fields
}

func NewOriginToRBACClusterRoleController

func NewOriginToRBACClusterRoleController(rbacClusterRoleInformer rbacinformers.ClusterRoleInformer, originClusterPolicyInformer origininformers.ClusterPolicyInformer, rbacClient rbacclient.ClusterRolesGetter) *OriginClusterRoleToRBACClusterRoleController

func (*OriginClusterRoleToRBACClusterRoleController) Run

func (c *OriginClusterRoleToRBACClusterRoleController) Run(workers int, stopCh <-chan struct{})

type OriginRoleBindingToRBACRoleBindingController

type OriginRoleBindingToRBACRoleBindingController struct {
	// contains filtered or unexported fields
}

func NewOriginToRBACRoleBindingController

func NewOriginToRBACRoleBindingController(rbacRoleBindingInformer rbacinformers.RoleBindingInformer, originPolicyBindingInformer origininformers.PolicyBindingInformer, rbacClient rbacclient.RoleBindingsGetter) *OriginRoleBindingToRBACRoleBindingController

func (*OriginRoleBindingToRBACRoleBindingController) Run

func (c *OriginRoleBindingToRBACRoleBindingController) Run(workers int, stopCh <-chan struct{})

type OriginRoleToRBACRoleController

type OriginRoleToRBACRoleController struct {
	// contains filtered or unexported fields
}

func NewOriginToRBACRoleController

func NewOriginToRBACRoleController(rbacRoleInformer rbacinformers.RoleInformer, originPolicyInformer origininformers.PolicyInformer, rbacClient rbacclient.RolesGetter) *OriginRoleToRBACRoleController

func (*OriginRoleToRBACRoleController) Run

func (c *OriginRoleToRBACRoleController) Run(workers int, stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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