analytics

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

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) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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)

type ObjectIdentity

type ObjectIdentity struct {
	Namespace  string
	APIVersion string
	Kind       string
	Name       string
	Labels     map[string]string
}

Jump to

Keyboard shortcuts

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