Documentation ¶
Index ¶
- type Controller
- func (c *Controller) CreateRecommendation(ctx context.Context, analytics *analysisv1alph1.Analytics, id ObjectIdentity, ...) error
- func (c *Controller) DoAnalytics(ctx context.Context, 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) ShouldAnalytics(analytics *analysisv1alph1.Analytics) bool
- func (c *Controller) UpdateStatus(ctx context.Context, analytics *analysisv1alph1.Analytics, ...)
- type ObjectIdentity
Constants ¶
This section is empty.
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 // contains filtered or unexported fields }
func (*Controller) CreateRecommendation ¶ added in v0.2.0
func (c *Controller) CreateRecommendation(ctx context.Context, analytics *analysisv1alph1.Analytics, id ObjectIdentity, refs *[]analysisv1alph1.RecommendationReference) error
func (*Controller) DoAnalytics ¶ added in v0.2.0
func (c *Controller) DoAnalytics(ctx context.Context, analytics *analysisv1alph1.Analytics)
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) ShouldAnalytics ¶ added in v0.2.0
func (c *Controller) ShouldAnalytics(analytics *analysisv1alph1.Analytics) bool
ShouldAnalytics decide if we need do analytics according to status
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.