Documentation ¶
Index ¶
- func GetManagerInstance() *instance
- func InitializeManagerInstance(ctx context.Context, config *rest.Config, c client.Client, ...)
- type ClusterFeatureSummary
- type ClusterInfo
- type ClusterProfileStatus
- type ClusterResult
- type HelmRelease
- type HelmReleaseResult
- type ManagedCluster
- type ManagedClusters
- type ProfileStatusResult
- type Resource
- type ResourceResult
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetManagerInstance ¶
func GetManagerInstance() *instance
Types ¶
type ClusterFeatureSummary ¶
type ClusterFeatureSummary struct { FeatureID configv1beta1.FeatureID `json:"featureID"` Status configv1beta1.FeatureStatus `json:"status,omitempty"` FailureMessage *string `json:"failureMessage,omitempty"` }
func MapToClusterFeatureSummaries ¶
func MapToClusterFeatureSummaries(featureSummaries *[]configv1beta1.FeatureSummary) []ClusterFeatureSummary
type ClusterInfo ¶
type ClusterProfileStatus ¶
type ClusterProfileStatus struct { ProfileName string `json:"profileName"` ProfileType string `json:"profileType"` Namespace string `json:"namespace"` ClusterType libsveltosv1beta1.ClusterType `json:"clusterType"` ClusterName string `json:"clusterName"` Summary []ClusterFeatureSummary `json:"summary"` }
type ClusterResult ¶
type ClusterResult struct { TotalClusters int `json:"totalClusters"` ManagedClusters ManagedClusters `json:"managedClusters"` }
type HelmRelease ¶
type HelmRelease struct { // RepoURL URL of the repo containing the helm chart deployed // in the Cluster. // +kubebuilder:validation:MinLength=1 RepoURL string `json:"repoURL"` // ReleaseName name of the release deployed in the Cluster. // +kubebuilder:validation:MinLength=1 ReleaseName string `json:"releaseName"` // Namespace where chart is deployed in the Cluster. Namespace string `json:"namespace"` // ChartVersion is the version of the helm chart deployed in the Cluster. ChartVersion string `json:"chartVersion"` // The URL to an icon file. Icon string `json:"icon"` // LastAppliedTime identifies when this resource was last applied to the cluster. LastAppliedTime *metav1.Time `json:"lastAppliedTime"` // ProfileName is the name of the ClusterProfile/Profile that // caused the helm chart to be deployed ProfileName string `json:"profileName"` }
type HelmReleaseResult ¶
type HelmReleaseResult struct { TotalHelmReleases int `json:"totalHelmReleases"` HelmReleases []HelmRelease `json:"helmReleases"` }
type ManagedCluster ¶
type ManagedCluster struct { Namespace string `json:"namespace"` Name string `json:"name"` ClusterInfo `json:"clusterInfo"` }
type ManagedClusters ¶
type ManagedClusters []ManagedCluster
func (ManagedClusters) Len ¶
func (s ManagedClusters) Len() int
func (ManagedClusters) Less ¶
func (s ManagedClusters) Less(i, j int) bool
func (ManagedClusters) Swap ¶
func (s ManagedClusters) Swap(i, j int)
type ProfileStatusResult ¶
type ProfileStatusResult struct { ProfileName string `json:"profileName"` ProfileType string `json:"profileType"` ClusterFeatureSummary }
type Resource ¶
type Resource struct { // Name of the resource deployed in the Cluster. // +kubebuilder:validation:MinLength=1 Name string `json:"name"` // Namespace of the resource deployed in the Cluster. // Empty for resources scoped at cluster level. // +optional Namespace string `json:"namespace,omitempty"` // Group of the resource deployed in the Cluster. Group string `json:"group"` // Kind of the resource deployed in the Cluster. // +kubebuilder:validation:MinLength=1 Kind string `json:"kind"` // Version of the resource deployed in the Cluster. // +kubebuilder:validation:MinLength=1 Version string `json:"version"` // LastAppliedTime identifies when this resource was last applied to the cluster. // +optional LastAppliedTime *metav1.Time `json:"lastAppliedTime,omitempty"` // ProfileNames is a slice of the names of the ClusterProfile/Profile instances // that caused the helm chart to be deployed ProfileNames []string `json:"profileNames"` }
type ResourceResult ¶
Click to show internal directories.
Click to hide internal directories.