Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ClusterRoleRequest
- type ClusterRoleRequestList
- type ClusterRoleRequestSpec
- type ClusterRoleRequestStatus
- type RoleRefSpec
- type RoleRequest
- type RoleRequestList
- type RoleRequestSpec
- type RoleRequestStatus
- type TenantRequest
- type TenantRequestList
- type TenantRequestSpec
- type TenantRequestStatus
Constants ¶
const ( StatusFailed = "Failed" // Tenant request StatusPending = "Pending" // Also used for role request and cluster role request StatusApproved = "Approved" // Also used for role request and cluster role request StatusCreated = "Created" // Role request StatusBound = "Bound" // Also used for cluster role request )
Values of Status.State
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: registration.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ClusterRoleRequest ¶
type ClusterRoleRequest struct { // TypeMeta is the metadata for the resource, like kind and apiversion metav1.TypeMeta `json:",inline"` // ObjectMeta contains the metadata for the particular object, including metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the clusterrolerequest resource spec Spec ClusterRoleRequestSpec `json:"spec"` // Status is the clusterrolerequest resource status Status ClusterRoleRequestStatus `json:"status,omitempty"` }
ClusterRoleRequest describes a RoleRequest resource
func (*ClusterRoleRequest) DeepCopy ¶
func (in *ClusterRoleRequest) DeepCopy() *ClusterRoleRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleRequest.
func (*ClusterRoleRequest) DeepCopyInto ¶
func (in *ClusterRoleRequest) DeepCopyInto(out *ClusterRoleRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterRoleRequest) DeepCopyObject ¶
func (in *ClusterRoleRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ClusterRoleRequest) MakeOwnerReference ¶
func (crr ClusterRoleRequest) MakeOwnerReference() metav1.OwnerReference
type ClusterRoleRequestList ¶
type ClusterRoleRequestList struct { // TypeMeta is the metadata for the resource, like kind and apiversion metav1.TypeMeta `json:",inline"` // ObjectMeta contains the metadata for the particular object, including metav1.ListMeta `json:"metadata"` // ClusterRoleRequestList is a list of ClusterRoleRequest resources. This element contains // ClusterRoleRequest resources. Items []ClusterRoleRequest `json:"items"` }
ClusterRoleRequestList is a list of ClusterRoleRequest resources
func (*ClusterRoleRequestList) DeepCopy ¶
func (in *ClusterRoleRequestList) DeepCopy() *ClusterRoleRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleRequestList.
func (*ClusterRoleRequestList) DeepCopyInto ¶
func (in *ClusterRoleRequestList) DeepCopyInto(out *ClusterRoleRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterRoleRequestList) DeepCopyObject ¶
func (in *ClusterRoleRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterRoleRequestSpec ¶
type ClusterRoleRequestSpec struct { // First name of the person requesting the cluster role. FirstName string `json:"firstname"` // Last name of the person requesting the cluster role. LastName string `json:"lastname"` // Email of the person requesting the cluster role. Email string `json:"email"` // Name of the cluster role to bind RoleName string `json:"rolename"` // True if this role request is approved false if not. Approved bool `json:"approved"` }
ClusterRoleRequestSpec is the spec for a ClusterRoleRequest resource
func (*ClusterRoleRequestSpec) DeepCopy ¶
func (in *ClusterRoleRequestSpec) DeepCopy() *ClusterRoleRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleRequestSpec.
func (*ClusterRoleRequestSpec) DeepCopyInto ¶
func (in *ClusterRoleRequestSpec) DeepCopyInto(out *ClusterRoleRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterRoleRequestStatus ¶
type ClusterRoleRequestStatus struct { // Expiration date of the request. Expiry *metav1.Time `json:"expiry"` // Current state of the policy. This can be 'Failure', 'Pending', or 'Approved'. State string `json:"state"` // Description for additional information. Message string `json:"message"` // True if the notification send out Notified bool `json:"notified"` }
ClusterRoleRequestStatus is the status for a ClusterRoleRequest resource
func (*ClusterRoleRequestStatus) DeepCopy ¶
func (in *ClusterRoleRequestStatus) DeepCopy() *ClusterRoleRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleRequestStatus.
func (*ClusterRoleRequestStatus) DeepCopyInto ¶
func (in *ClusterRoleRequestStatus) DeepCopyInto(out *ClusterRoleRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoleRefSpec ¶
type RoleRefSpec struct { // The kind of the RoleRefSpec, this can be 'ClusterRole', or 'Role'. Kind string `json:"kind"` // Name of the role. Name string `json:"name"` }
RoleRefSpec indicates the requested Role / ClusterRole
func (*RoleRefSpec) DeepCopy ¶
func (in *RoleRefSpec) DeepCopy() *RoleRefSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRefSpec.
func (*RoleRefSpec) DeepCopyInto ¶
func (in *RoleRefSpec) DeepCopyInto(out *RoleRefSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoleRequest ¶
type RoleRequest struct { // TypeMeta is the metadata for the resource, like kind and apiversion metav1.TypeMeta `json:",inline"` // ObjectMeta contains the metadata for the particular object, including metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the rolerequest resource spec Spec RoleRequestSpec `json:"spec"` // Status is the rolerequest resource status Status RoleRequestStatus `json:"status,omitempty"` }
RoleRequest describes a RoleRequest resource
func (*RoleRequest) DeepCopy ¶
func (in *RoleRequest) DeepCopy() *RoleRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRequest.
func (*RoleRequest) DeepCopyInto ¶
func (in *RoleRequest) DeepCopyInto(out *RoleRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RoleRequest) DeepCopyObject ¶
func (in *RoleRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (RoleRequest) MakeOwnerReference ¶
func (rr RoleRequest) MakeOwnerReference() metav1.OwnerReference
type RoleRequestList ¶
type RoleRequestList struct { // TypeMeta is the metadata for the resource, like kind and apiversion metav1.TypeMeta `json:",inline"` // ObjectMeta contains the metadata for the particular object, including metav1.ListMeta `json:"metadata"` // RoleRequestList is a list of RoleRequest resources. This element contains // RoleRequest resources. Items []RoleRequest `json:"items"` }
RoleRequestList is a list of RoleRequest resources
func (*RoleRequestList) DeepCopy ¶
func (in *RoleRequestList) DeepCopy() *RoleRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRequestList.
func (*RoleRequestList) DeepCopyInto ¶
func (in *RoleRequestList) DeepCopyInto(out *RoleRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RoleRequestList) DeepCopyObject ¶
func (in *RoleRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RoleRequestSpec ¶
type RoleRequestSpec struct { // First name of the person requesting the role. FirstName string `json:"firstname"` // Last name of the person requesting the role. LastName string `json:"lastname"` // Email of the person requesting the role. Email string `json:"email"` // RoleRefSpec indicates the requested Role or ClusterRole RoleRef RoleRefSpec `json:"roleref"` // True if this role request is approved false if not. Approved bool `json:"approved"` }
RoleRequestSpec is the spec for a RoleRequest resource
func (*RoleRequestSpec) DeepCopy ¶
func (in *RoleRequestSpec) DeepCopy() *RoleRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRequestSpec.
func (*RoleRequestSpec) DeepCopyInto ¶
func (in *RoleRequestSpec) DeepCopyInto(out *RoleRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoleRequestStatus ¶
type RoleRequestStatus struct { // Expiration date of the request. Expiry *metav1.Time `json:"expiry"` // Current state of the policy. This can be 'Failure', 'Pending', or 'Approved'. State string `json:"state"` // Description for additional information. Message string `json:"message"` // True if the notification send out Notified bool `json:"notified"` }
RoleRequestStatus is the status for a RoleRequest resource
func (*RoleRequestStatus) DeepCopy ¶
func (in *RoleRequestStatus) DeepCopy() *RoleRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRequestStatus.
func (*RoleRequestStatus) DeepCopyInto ¶
func (in *RoleRequestStatus) DeepCopyInto(out *RoleRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TenantRequest ¶
type TenantRequest struct { // TypeMeta is the metadata for the resource, like kind and apiversion metav1.TypeMeta `json:",inline"` // ObjectMeta contains the metadata for the particular object, including metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the tenantrequest resource spec Spec TenantRequestSpec `json:"spec"` // Status is the tenantrequest resource status Status TenantRequestStatus `json:"status,omitempty"` }
TenantRequest describes a TenantRequest resource
func (*TenantRequest) DeepCopy ¶
func (in *TenantRequest) DeepCopy() *TenantRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TenantRequest.
func (*TenantRequest) DeepCopyInto ¶
func (in *TenantRequest) DeepCopyInto(out *TenantRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TenantRequest) DeepCopyObject ¶
func (in *TenantRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (TenantRequest) MakeOwnerReference ¶
func (tr TenantRequest) MakeOwnerReference() metav1.OwnerReference
type TenantRequestList ¶
type TenantRequestList struct { // TypeMeta is the metadata for the resource, like kind and apiversion metav1.TypeMeta `json:",inline"` // ObjectMeta contains the metadata for the particular object, including metav1.ListMeta `json:"metadata"` // TenantRequestList is a list of TenantRequest resources. This element contains // TenantRequest resources. Items []TenantRequest `json:"items"` }
TenantRequestList is a list of TenantRequest resources
func (*TenantRequestList) DeepCopy ¶
func (in *TenantRequestList) DeepCopy() *TenantRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TenantRequestList.
func (*TenantRequestList) DeepCopyInto ¶
func (in *TenantRequestList) DeepCopyInto(out *TenantRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TenantRequestList) DeepCopyObject ¶
func (in *TenantRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TenantRequestSpec ¶
type TenantRequestSpec struct { // Full name of the tenant. FullName string `json:"fullname"` // Shortened name of the tenant. ShortName string `json:"shortname"` // Website of the tenant. URL string `json:"url"` // Open address of the tenant, this includes country, city, and street information. Address corev1alpha1.Address `json:"address"` // Contact information of the tenant. Contact corev1alpha1.Contact `json:"contact"` // Whether cluster-level network policies will be applied to tenant namespaces // for security purposes. ClusterNetworkPolicy bool `json:"clusternetworkpolicy"` // Requested allocation of certain resource types. Resource types are // kubernetes default resource types. ResourceAllocation map[corev1.ResourceName]resource.Quantity `json:"resourceallocation"` // If the tenant is approved or not by the administrators. Approved bool `json:"approved"` // Description provides additional information about the tenant. Description string `json:"description"` }
TenantRequestSpec is the spec for a TenantRequest resource
func (*TenantRequestSpec) DeepCopy ¶
func (in *TenantRequestSpec) DeepCopy() *TenantRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TenantRequestSpec.
func (*TenantRequestSpec) DeepCopyInto ¶
func (in *TenantRequestSpec) DeepCopyInto(out *TenantRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TenantRequestStatus ¶
type TenantRequestStatus struct { // Expiration date of the request. Expiry *metav1.Time `json:"expiry"` // Current state of the policy. This can be 'Failure', 'Pending', or 'Approved'. State string `json:"state"` // Description for additional information. Message string `json:"message"` // True if the notification send out Notified bool `json:"notified"` }
TenantRequestStatus is the status for a TenantRequest resource
func (*TenantRequestStatus) DeepCopy ¶
func (in *TenantRequestStatus) DeepCopy() *TenantRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TenantRequestStatus.
func (*TenantRequestStatus) DeepCopyInto ¶
func (in *TenantRequestStatus) DeepCopyInto(out *TenantRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.