Documentation ¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=identity.k8s.appscode.com
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func RegisterDefaults(scheme *runtime.Scheme) error
- type ClusterIdentity
- type ClusterIdentityList
- type ControlPlaneInfo
- type InboxTokenRequest
- type InboxTokenRequestRequest
- type InboxTokenRequestResponse
- type KubernetesInfo
- type NodeStats
- type ProductInfo
- type SelfSubjectNamespaceAccessReview
- type SelfSubjectNamespaceAccessReviewList
- type SelfSubjectNamespaceAccessReviewSpec
- type SiteInfo
- type SiteInfoList
- type SubjectAccessNamespaceReviewStatus
- type Version
Constants ¶
const ( ResourceKindClusterIdentity = "ClusterIdentity" ResourceClusterIdentity = "clusteridentity" ResourceClusterIdentities = "clusteridentities" )
const ( ResourceKindInboxTokenRequest = "InboxTokenRequest" ResourceInboxTokenRequest = "inboxtokenrequest" ResourceInboxTokenRequests = "inboxtokenrequests" )
const ( ResourceKindSelfSubjectNamespaceAccessReview = "SelfSubjectNamespaceAccessReview" ResourceSelfSubjectNamespaceAccessReview = "selfsubjectnamespaceaccessreview" ResourceSelfSubjectNamespaceAccessReviews = "selfsubjectnamespaceaccessreviews" )
const ( ResourceKindSiteInfo = "SiteInfo" ResourceSiteInfo = "siteinfo" ResourceSiteInfos = "siteinfos" )
const GroupName = "identity.k8s.appscode.com"
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
Types ¶
type ClusterIdentity ¶
type ClusterIdentity struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Status kmapi.ClusterMetadata `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=clusteridentitys,singular=clusteridentity +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*ClusterIdentity) DeepCopy ¶
func (in *ClusterIdentity) DeepCopy() *ClusterIdentity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterIdentity.
func (*ClusterIdentity) DeepCopyInto ¶
func (in *ClusterIdentity) DeepCopyInto(out *ClusterIdentity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterIdentity) DeepCopyObject ¶
func (in *ClusterIdentity) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterIdentityList ¶
type ClusterIdentityList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterIdentity `json:"items,omitempty"` }
func (*ClusterIdentityList) DeepCopy ¶
func (in *ClusterIdentityList) DeepCopy() *ClusterIdentityList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterIdentityList.
func (*ClusterIdentityList) DeepCopyInto ¶
func (in *ClusterIdentityList) DeepCopyInto(out *ClusterIdentityList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterIdentityList) DeepCopyObject ¶
func (in *ClusterIdentityList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ControlPlaneInfo ¶
type ControlPlaneInfo struct { DNSNames []string `json:"dnsNames,omitempty"` EmailAddresses []string `json:"emailAddresses,omitempty"` IPAddresses []string `json:"ipAddresses,omitempty"` URIs []string `json:"uris,omitempty"` NotBefore metav1.Time `json:"notBefore"` NotAfter metav1.Time `json:"notAfter"` }
https://github.com/kmodules/client-go/blob/kubernetes-1.16.3/tools/analytics/analytics.go#L66
func (*ControlPlaneInfo) DeepCopy ¶
func (in *ControlPlaneInfo) DeepCopy() *ControlPlaneInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControlPlaneInfo.
func (*ControlPlaneInfo) DeepCopyInto ¶
func (in *ControlPlaneInfo) DeepCopyInto(out *ControlPlaneInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InboxTokenRequest ¶
type InboxTokenRequest struct { metav1.TypeMeta `json:",inline"` // Request describes the attributes for the graph request. // +optional Request *InboxTokenRequestRequest `json:"request,omitempty"` // Response describes the attributes for the graph response. // +optional Response *InboxTokenRequestResponse `json:"response,omitempty"` }
+genclient +genclient:nonNamespaced +genclient:onlyVerbs=create +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:resource:path=inboxtokenrequests,singular=inboxtokenrequest,scope=Cluster
func (*InboxTokenRequest) DeepCopy ¶
func (in *InboxTokenRequest) DeepCopy() *InboxTokenRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InboxTokenRequest.
func (*InboxTokenRequest) DeepCopyInto ¶
func (in *InboxTokenRequest) DeepCopyInto(out *InboxTokenRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InboxTokenRequest) DeepCopyObject ¶
func (in *InboxTokenRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InboxTokenRequestRequest ¶
type InboxTokenRequestRequest struct{}
func (*InboxTokenRequestRequest) DeepCopy ¶
func (in *InboxTokenRequestRequest) DeepCopy() *InboxTokenRequestRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InboxTokenRequestRequest.
func (*InboxTokenRequestRequest) DeepCopyInto ¶
func (in *InboxTokenRequestRequest) DeepCopyInto(out *InboxTokenRequestRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InboxTokenRequestResponse ¶
type InboxTokenRequestResponse struct { JmapJWTToken string `json:"jmapJWTToken"` AdminJWTToken string `json:"adminJWTToken"` }
func (*InboxTokenRequestResponse) DeepCopy ¶
func (in *InboxTokenRequestResponse) DeepCopy() *InboxTokenRequestResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InboxTokenRequestResponse.
func (*InboxTokenRequestResponse) DeepCopyInto ¶
func (in *InboxTokenRequestResponse) DeepCopyInto(out *InboxTokenRequestResponse)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubernetesInfo ¶
type KubernetesInfo struct { // Deprecated ClusterName string `json:"clusterName,omitempty"` // Deprecated ClusterUID string `json:"clusterUID,omitempty"` Cluster *kmapi.ClusterMetadata `json:"cluster,omitempty"` Version *version.Info `json:"version,omitempty"` ControlPlane *ControlPlaneInfo `json:"controlPlane,omitempty"` NodeStats NodeStats `json:"nodeStats"` }
func (*KubernetesInfo) DeepCopy ¶
func (in *KubernetesInfo) DeepCopy() *KubernetesInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesInfo.
func (*KubernetesInfo) DeepCopyInto ¶
func (in *KubernetesInfo) DeepCopyInto(out *KubernetesInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeStats ¶
type NodeStats struct { Count int `json:"count,omitempty"` // Capacity represents the total resources of a node. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity // +optional Capacity core.ResourceList `json:"capacity,omitempty"` // Allocatable represents the resources of a node that are available for scheduling. // Defaults to Capacity. // +optional Allocatable core.ResourceList `json:"allocatable,omitempty"` }
func (*NodeStats) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeStats.
func (*NodeStats) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProductInfo ¶
type ProductInfo struct { Version Version `json:"version"` LicenseID string `json:"licenseID,omitempty"` ProductOwnerName string `json:"productOwnerName,omitempty"` ProductOwnerUID string `json:"productOwnerUID,omitempty"` // This has been renamed to Features ProductName string `json:"productName,omitempty"` ProductUID string `json:"productUID,omitempty"` }
func (*ProductInfo) DeepCopy ¶
func (in *ProductInfo) DeepCopy() *ProductInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProductInfo.
func (*ProductInfo) DeepCopyInto ¶
func (in *ProductInfo) DeepCopyInto(out *ProductInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SelfSubjectNamespaceAccessReview ¶
type SelfSubjectNamespaceAccessReview struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec holds information about the request being evaluated. user and groups must be empty Spec SelfSubjectNamespaceAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates whether the request is allowed or not // +optional Status SubjectAccessNamespaceReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
+genclient +genclient:nonNamespaced +genclient:onlyVerbs=create +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster
func (*SelfSubjectNamespaceAccessReview) DeepCopy ¶
func (in *SelfSubjectNamespaceAccessReview) DeepCopy() *SelfSubjectNamespaceAccessReview
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectNamespaceAccessReview.
func (*SelfSubjectNamespaceAccessReview) DeepCopyInto ¶
func (in *SelfSubjectNamespaceAccessReview) DeepCopyInto(out *SelfSubjectNamespaceAccessReview)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SelfSubjectNamespaceAccessReview) DeepCopyObject ¶
func (in *SelfSubjectNamespaceAccessReview) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SelfSubjectNamespaceAccessReviewList ¶
type SelfSubjectNamespaceAccessReviewList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SelfSubjectNamespaceAccessReview `json:"items,omitempty"` }
func (*SelfSubjectNamespaceAccessReviewList) DeepCopy ¶
func (in *SelfSubjectNamespaceAccessReviewList) DeepCopy() *SelfSubjectNamespaceAccessReviewList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectNamespaceAccessReviewList.
func (*SelfSubjectNamespaceAccessReviewList) DeepCopyInto ¶
func (in *SelfSubjectNamespaceAccessReviewList) DeepCopyInto(out *SelfSubjectNamespaceAccessReviewList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SelfSubjectNamespaceAccessReviewList) DeepCopyObject ¶
func (in *SelfSubjectNamespaceAccessReviewList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SelfSubjectNamespaceAccessReviewSpec ¶
type SelfSubjectNamespaceAccessReviewSpec struct { // ResourceAuthorizationAttributes describes information for a resource access request // +optional ResourceAttributes []authorization.ResourceAttributes `json:"resourceAttributes,omitempty"` // NonResourceAttributes describes information for a non-resource access request // +optional NonResourceAttributes []authorization.NonResourceAttributes `json:"nonResourceAttributes,omitempty"` }
SelfSubjectNamespaceAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
func (*SelfSubjectNamespaceAccessReviewSpec) DeepCopy ¶
func (in *SelfSubjectNamespaceAccessReviewSpec) DeepCopy() *SelfSubjectNamespaceAccessReviewSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectNamespaceAccessReviewSpec.
func (*SelfSubjectNamespaceAccessReviewSpec) DeepCopyInto ¶
func (in *SelfSubjectNamespaceAccessReviewSpec) DeepCopyInto(out *SelfSubjectNamespaceAccessReviewSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SiteInfo ¶
type SiteInfo struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Product *ProductInfo `json:"product,omitempty"` Kubernetes *KubernetesInfo `json:"kubernetes,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=siteinfos,singular=siteinfo,scope=Cluster,categories={auditor,appscode,all}
func (*SiteInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SiteInfo.
func (*SiteInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SiteInfo) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SiteInfoList ¶
type SiteInfoList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SiteInfo `json:"items,omitempty"` }
SiteInfoList is a list of SiteInfo
func (*SiteInfoList) DeepCopy ¶
func (in *SiteInfoList) DeepCopy() *SiteInfoList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SiteInfoList.
func (*SiteInfoList) DeepCopyInto ¶
func (in *SiteInfoList) DeepCopyInto(out *SiteInfoList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SiteInfoList) DeepCopyObject ¶
func (in *SiteInfoList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubjectAccessNamespaceReviewStatus ¶
type SubjectAccessNamespaceReviewStatus struct { Namespaces []string `json:"namespaces,omitempty"` Projects map[string][]string `json:"projects,omitempty"` }
func (*SubjectAccessNamespaceReviewStatus) DeepCopy ¶
func (in *SubjectAccessNamespaceReviewStatus) DeepCopy() *SubjectAccessNamespaceReviewStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessNamespaceReviewStatus.
func (*SubjectAccessNamespaceReviewStatus) DeepCopyInto ¶
func (in *SubjectAccessNamespaceReviewStatus) DeepCopyInto(out *SubjectAccessNamespaceReviewStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Version ¶
type Version struct { Version string `json:"version,omitempty"` VersionStrategy string `json:"versionStrategy,omitempty"` CommitHash string `json:"commitHash,omitempty"` GitBranch string `json:"gitBranch,omitempty"` GitTag string `json:"gitTag,omitempty"` CommitTimestamp string `json:"commitTimestamp,omitempty"` GoVersion string `json:"goVersion,omitempty"` Compiler string `json:"compiler,omitempty"` Platform string `json:"platform,omitempty"` }
func (*Version) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Version.
func (*Version) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.