v1alpha1

package
v0.18.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 9

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=identity.k8s.appscode.com

Index

Constants

View Source
const (
	ResourceKindClusterIdentity = "ClusterIdentity"
	ResourceClusterIdentity     = "clusteridentity"
	ResourceClusterIdentities   = "clusteridentities"
)
View Source
const (
	ResourceKindInboxTokenRequest = "InboxTokenRequest"
	ResourceInboxTokenRequest     = "inboxtokenrequest"
	ResourceInboxTokenRequests    = "inboxtokenrequests"
)
View Source
const (
	ResourceKindSelfSubjectNamespaceAccessReview = "SelfSubjectNamespaceAccessReview"
	ResourceSelfSubjectNamespaceAccessReview     = "selfsubjectnamespaceaccessreview"
	ResourceSelfSubjectNamespaceAccessReviews    = "selfsubjectnamespaceaccessreviews"
)
View Source
const (
	ResourceKindSiteInfo = "SiteInfo"
	ResourceSiteInfo     = "siteinfo"
	ResourceSiteInfos    = "siteinfos"
)
View Source
const GroupName = "identity.k8s.appscode.com"

Variables

View Source
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 RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InboxTokenRequestResponse.

func (*InboxTokenRequestResponse) DeepCopyInto

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    NodeInfo               `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 NodeInfo added in v0.18.10

type NodeInfo struct {
	NodeStats    `json:",inline"`
	ControlPlane *NodeStats `json:"controlPlane,omitempty"`
	Workers      *NodeStats `json:"workers,omitempty"`
}

func (*NodeInfo) DeepCopy added in v0.18.10

func (in *NodeInfo) DeepCopy() *NodeInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeInfo.

func (*NodeInfo) DeepCopyInto added in v0.18.10

func (in *NodeInfo) DeepCopyInto(out *NodeInfo)

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

func (in *NodeStats) DeepCopy() *NodeStats

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeStats.

func (*NodeStats) DeepCopyInto

func (in *NodeStats) DeepCopyInto(out *NodeStats)

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectNamespaceAccessReview.

func (*SelfSubjectNamespaceAccessReview) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectNamespaceAccessReviewList.

func (*SelfSubjectNamespaceAccessReviewList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SelfSubjectNamespaceAccessReviewList) DeepCopyObject

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectNamespaceAccessReviewSpec.

func (*SelfSubjectNamespaceAccessReviewSpec) DeepCopyInto

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

func (in *SiteInfo) DeepCopy() *SiteInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SiteInfo.

func (*SiteInfo) DeepCopyInto

func (in *SiteInfo) DeepCopyInto(out *SiteInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SiteInfo) DeepCopyObject

func (in *SiteInfo) DeepCopyObject() runtime.Object

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessNamespaceReviewStatus.

func (*SubjectAccessNamespaceReviewStatus) DeepCopyInto

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

func (in *Version) DeepCopy() *Version

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Version.

func (*Version) DeepCopyInto

func (in *Version) DeepCopyInto(out *Version)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL