{"modulePath":"github.phpd.cn/openshift/origin","version":"v3.6.1+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package authorizationsync\n\n## Functions\n\n```go\nfunc ConvertToRBACClusterRole(originClusterRole *authorizationapi.ClusterRole) (*rbac.ClusterRole, error)\n```\nConvertToRBACClusterRole performs the conversion and guarantees the returned object is safe to mutate.\n\n```go\nfunc ConvertToRBACClusterRoleBinding(originClusterRoleBinding *authorizationapi.ClusterRoleBinding) (*rbac.ClusterRoleBinding, error)\n```\nConvertToRBACClusterRoleBinding performs the conversion and guarantees the returned object is safe to mutate.\n\n```go\nfunc ConvertToRBACRole(originRole *authorizationapi.Role) (*rbac.Role, error)\n```\nConvertToRBACRole performs the conversion and guarantees the returned object is safe to mutate.\n\n```go\nfunc ConvertToRBACRoleBinding(originRoleBinding *authorizationapi.RoleBinding) (*rbac.RoleBinding, error)\n```\nConvertToRBACRoleBinding performs the conversion and guarantees the returned object is safe to mutate.\n\n```go\nfunc PrepareForUpdateClusterRole(newClusterRole, existingClusterRole *rbac.ClusterRole) bool\n```\nPrepareForUpdateClusterRole 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.\n\n```go\nfunc PrepareForUpdateClusterRoleBinding(newClusterRoleBinding, existingClusterRoleBinding *rbac.ClusterRoleBinding) bool\n```\nPrepareForUpdateClusterRoleBinding 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.\n\n```go\nfunc PrepareForUpdateRole(newRole, existingRole *rbac.Role) bool\n```\nPrepareForUpdateRole 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.\n\n```go\nfunc PrepareForUpdateRoleBinding(newRoleBinding, existingRoleBinding *rbac.RoleBinding) bool\n```\nPrepareForUpdateRoleBinding 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.\n\n## Types\n\n```go\ntype OriginClusterRoleBindingToRBACClusterRoleBindingController struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOriginToRBACClusterRoleBindingController(rbacClusterRoleBindingInformer rbacinformers.ClusterRoleBindingInformer, originClusterPolicyBindingInformer origininformers.ClusterPolicyBindingInformer, rbacClient rbacclient.ClusterRoleBindingsGetter) *OriginClusterRoleBindingToRBACClusterRoleBindingController\n```\n\n```go\nfunc (c *OriginClusterRoleBindingToRBACClusterRoleBindingController) Run(workers int, stopCh \u003c-chan struct{})\n```\n\n```go\ntype OriginClusterRoleToRBACClusterRoleController struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOriginToRBACClusterRoleController(rbacClusterRoleInformer rbacinformers.ClusterRoleInformer, originClusterPolicyInformer origininformers.ClusterPolicyInformer, rbacClient rbacclient.ClusterRolesGetter) *OriginClusterRoleToRBACClusterRoleController\n```\n\n```go\nfunc (c *OriginClusterRoleToRBACClusterRoleController) Run(workers int, stopCh \u003c-chan struct{})\n```\n\n```go\ntype OriginRoleBindingToRBACRoleBindingController struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOriginToRBACRoleBindingController(rbacRoleBindingInformer rbacinformers.RoleBindingInformer, originPolicyBindingInformer origininformers.PolicyBindingInformer, rbacClient rbacclient.RoleBindingsGetter) *OriginRoleBindingToRBACRoleBindingController\n```\n\n```go\nfunc (c *OriginRoleBindingToRBACRoleBindingController) Run(workers int, stopCh \u003c-chan struct{})\n```\n\n```go\ntype OriginRoleToRBACRoleController struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOriginToRBACRoleController(rbacRoleInformer rbacinformers.RoleInformer, originPolicyInformer origininformers.PolicyInformer, rbacClient rbacclient.RolesGetter) *OriginRoleToRBACRoleController\n```\n\n```go\nfunc (c *OriginRoleToRBACRoleController) Run(workers int, stopCh \u003c-chan struct{})\n```\n\n","path":"github.phpd.cn/openshift/origin/pkg/authorization/controller/authorizationsync","name":"authorizationsync","synopsis":"","isRedistributable":true}
