Documentation ¶
Overview ¶
+groupName=auditor.appscode.com
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Resource(resource string) schema.GroupResource
- type AuditRegistration
- type ControlPlaneInfo
- type GroupResources
- type KubernetesInfo
- type NodeStats
- type ProductInfo
- type SiteInfo
- type SiteInfoList
- type Version
Constants ¶
const ( ResourceKindSiteInfo = "SiteInfo" ResourceSiteInfo = "siteinfo" ResourceSiteInfos = "siteinfos" )
const (
ResourceKindAuditRegistration = "AuditRegistration"
)
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: auditor.GroupName, Version: "v1alpha1"}
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AuditRegistration ¶
type AuditRegistration struct { metav1.TypeMeta `json:",inline,omitempty"` // Resources that this rule matches. An empty list implies all kinds in all API groups. // +optional Resources []GroupResources `json:"resources,omitempty"` }
func (*AuditRegistration) DeepCopy ¶
func (in *AuditRegistration) DeepCopy() *AuditRegistration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditRegistration.
func (*AuditRegistration) DeepCopyInto ¶
func (in *AuditRegistration) DeepCopyInto(out *AuditRegistration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AuditRegistration) DeepCopyObject ¶
func (in *AuditRegistration) 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 GroupResources ¶
type GroupResources struct { // Group is the name of the API group that contains the resources. // The empty string represents the core API group. // +optional Group string `json:"group"` // Resources is a list of resources within the API group. Subresources are // matched using a "/" to indicate the subresource. For example, "pods/log" // would match request to the log subresource of pods. The top level resource // does not match subresources, "pods" doesn't match "pods/log". // +optional Resources []string `json:"resources,omitempty"` }
GroupResources represents resource kinds in an API group.
func (*GroupResources) DeepCopy ¶
func (in *GroupResources) DeepCopy() *GroupResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources.
func (*GroupResources) DeepCopyInto ¶
func (in *GroupResources) DeepCopyInto(out *GroupResources)
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 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 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.