Documentation ¶
Index ¶
- Constants
- type Controller
- func (c *Controller) CreateRecommendationObject(ctx context.Context, analytics *analysisv1alph1.Analytics, ...) *analysisv1alph1.Recommendation
- func (c *Controller) DoAnalytics(ctx context.Context, analytics *analysisv1alph1.Analytics) bool
- func (c *Controller) ExecuteMission(ctx context.Context, wg *sync.WaitGroup, analytics *analysisv1alph1.Analytics, ...)
- func (c *Controller) GetIdentities(ctx context.Context, analytics *analysisv1alph1.Analytics) (map[string]ObjectIdentity, error)
- func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (c *Controller) SetupWithManager(mgr ctrl.Manager) error
- func (c *Controller) UpdateStatus(ctx context.Context, analytics *analysisv1alph1.Analytics, ...)
- type ObjectIdentity
Constants ¶
View Source
const (
RecommendationMissionMessageSuccess = "Success"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { client.Client Scheme *runtime.Scheme RestMapper meta.RESTMapper Recorder record.EventRecorder K8SVersion *version.Version ScaleClient scale.ScalesGetter PredictorMgr predictormgr.Manager Provider providers.History ConfigSet *analysisv1alph1.ConfigSet // contains filtered or unexported fields }
func (*Controller) CreateRecommendationObject ¶ added in v0.5.0
func (c *Controller) CreateRecommendationObject(ctx context.Context, analytics *analysisv1alph1.Analytics, target corev1.ObjectReference, id ObjectIdentity) *analysisv1alph1.Recommendation
func (*Controller) DoAnalytics ¶ added in v0.2.0
func (c *Controller) DoAnalytics(ctx context.Context, analytics *analysisv1alph1.Analytics) bool
func (*Controller) ExecuteMission ¶ added in v0.5.0
func (c *Controller) ExecuteMission(ctx context.Context, wg *sync.WaitGroup, analytics *analysisv1alph1.Analytics, identities map[string]ObjectIdentity, mission *analysisv1alph1.RecommendationMission, existingRecommendation *analysisv1alph1.Recommendation, timeNow metav1.Time)
func (*Controller) GetIdentities ¶ added in v0.2.0
func (c *Controller) GetIdentities(ctx context.Context, analytics *analysisv1alph1.Analytics) (map[string]ObjectIdentity, error)
func (*Controller) SetupWithManager ¶
func (c *Controller) SetupWithManager(mgr ctrl.Manager) error
func (*Controller) UpdateStatus ¶ added in v0.2.0
func (c *Controller) UpdateStatus(ctx context.Context, analytics *analysisv1alph1.Analytics, newStatus *analysisv1alph1.AnalyticsStatus)
Click to show internal directories.
Click to hide internal directories.