package kubecaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct Api object reference, or a value for non_objects such as user and group names.

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?namespace:string -> name:string -> kind:string -> ?api_version:string -> unit -> t
val api_version : t -> string option

Api_version holds the Api group and version of the referenced subject. Defaults to "v1" for Service_account subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects.

val kind : t -> string

Kind of object being referenced. Values defined by this Api group are "user", "group", and "service_account". If the Authorizer does not recognized the kind value, the Authorizer should report an error.

val name : t -> string

Name of the object being referenced.

val namespace : t -> string option

Namespace of the referenced object. If the object kind is non_namespace, such as "user" or "group", and this value is not empty the Authorizer should report an error.

module Object : Object.S with type value := t
OCaml

Innovation. Community. Security.