[−][src]Struct k8s_openapi::api::rbac::v1beta1::RoleBinding
RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.
Fields
metadata: Option<ObjectMeta>
Standard object's metadata.
role_ref: RoleRef
RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.
subjects: Option<Vec<Subject>>
Subjects holds references to the objects the role applies to.
Methods
impl RoleBinding
[src]
pub fn create_namespaced_role_binding(
namespace: &str,
body: &RoleBinding,
optional: CreateNamespacedRoleBindingOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedRoleBindingResponse>), RequestError>
[src]
namespace: &str,
body: &RoleBinding,
optional: CreateNamespacedRoleBindingOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedRoleBindingResponse>), RequestError>
create a RoleBinding
Use the returned crate::ResponseBody
<
CreateNamespacedRoleBindingResponse
>
constructor, or CreateNamespacedRoleBindingResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl RoleBinding
[src]
pub fn delete_collection_namespaced_role_binding(
namespace: &str,
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedRoleBindingResponse>), RequestError>
[src]
namespace: &str,
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedRoleBindingResponse>), RequestError>
delete collection of RoleBinding
Use the returned crate::ResponseBody
<
DeleteCollectionNamespacedRoleBindingResponse
>
constructor, or DeleteCollectionNamespacedRoleBindingResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
delete_optional
Delete options. Use
Default::default()
to not pass any. -
list_optional
List options. Use
Default::default()
to not pass any.
impl RoleBinding
[src]
pub fn delete_namespaced_role_binding(
name: &str,
namespace: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedRoleBindingResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedRoleBindingResponse>), RequestError>
delete a RoleBinding
Use the returned crate::ResponseBody
<
DeleteNamespacedRoleBindingResponse
>
constructor, or DeleteNamespacedRoleBindingResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the RoleBinding
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl RoleBinding
[src]
pub fn list_namespaced_role_binding(
namespace: &str,
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedRoleBindingResponse>), RequestError>
[src]
namespace: &str,
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedRoleBindingResponse>), RequestError>
list or watch objects of kind RoleBinding
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListNamespacedRoleBindingResponse
>
constructor, or ListNamespacedRoleBindingResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl RoleBinding
[src]
pub fn list_role_binding_for_all_namespaces(
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListRoleBindingForAllNamespacesResponse>), RequestError>
[src]
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListRoleBindingForAllNamespacesResponse>), RequestError>
list or watch objects of kind RoleBinding
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListRoleBindingForAllNamespacesResponse
>
constructor, or ListRoleBindingForAllNamespacesResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl RoleBinding
[src]
pub fn patch_namespaced_role_binding(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedRoleBindingResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedRoleBindingResponse>), RequestError>
partially update the specified RoleBinding
Use the returned crate::ResponseBody
<
PatchNamespacedRoleBindingResponse
>
constructor, or PatchNamespacedRoleBindingResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the RoleBinding
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl RoleBinding
[src]
pub fn read_namespaced_role_binding(
name: &str,
namespace: &str,
optional: ReadNamespacedRoleBindingOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedRoleBindingResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: ReadNamespacedRoleBindingOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedRoleBindingResponse>), RequestError>
read the specified RoleBinding
Use the returned crate::ResponseBody
<
ReadNamespacedRoleBindingResponse
>
constructor, or ReadNamespacedRoleBindingResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the RoleBinding
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl RoleBinding
[src]
pub fn replace_namespaced_role_binding(
name: &str,
namespace: &str,
body: &RoleBinding,
optional: ReplaceNamespacedRoleBindingOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedRoleBindingResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &RoleBinding,
optional: ReplaceNamespacedRoleBindingOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedRoleBindingResponse>), RequestError>
replace the specified RoleBinding
Use the returned crate::ResponseBody
<
ReplaceNamespacedRoleBindingResponse
>
constructor, or ReplaceNamespacedRoleBindingResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the RoleBinding
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl RoleBinding
[src]
pub fn watch_namespaced_role_binding(
namespace: &str,
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedRoleBindingResponse>), RequestError>
[src]
namespace: &str,
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedRoleBindingResponse>), RequestError>
list or watch objects of kind RoleBinding
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchNamespacedRoleBindingResponse
>
constructor, or WatchNamespacedRoleBindingResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl RoleBinding
[src]
pub fn watch_role_binding_for_all_namespaces(
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchRoleBindingForAllNamespacesResponse>), RequestError>
[src]
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchRoleBindingForAllNamespacesResponse>), RequestError>
list or watch objects of kind RoleBinding
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchRoleBindingForAllNamespacesResponse
>
constructor, or WatchRoleBindingForAllNamespacesResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations
impl Resource for RoleBinding
[src]
fn api_version() -> &'static str
[src]
fn group() -> &'static str
[src]
fn kind() -> &'static str
[src]
fn version() -> &'static str
[src]
impl Metadata for RoleBinding
[src]
impl Default for RoleBinding
[src]
fn default() -> RoleBinding
[src]
impl Clone for RoleBinding
[src]
fn clone(&self) -> RoleBinding
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<RoleBinding> for RoleBinding
[src]
fn eq(&self, other: &RoleBinding) -> bool
[src]
fn ne(&self, other: &RoleBinding) -> bool
[src]
impl Debug for RoleBinding
[src]
impl Serialize for RoleBinding
[src]
impl<'de> Deserialize<'de> for RoleBinding
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for RoleBinding
impl Sync for RoleBinding
impl Send for RoleBinding
impl UnwindSafe for RoleBinding
impl RefUnwindSafe for RoleBinding
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,