Documentation ¶
Index ¶
- type ClientLogger
- func (c *ClientLogger) GetOwner(ctx context.Context, objKey types.NamespacedName, ...) (*clustersv1alpha2.TestClusterGKE, error)
- func (c *ClientLogger) MaybeCreate(list *unstructured.UnstructuredList, createdCallback func()) error
- func (c *ClientLogger) UpdateOwnerStatus(ctx context.Context, dependencyKind string, dependencyKey types.NamespacedName, ...) error
- type LogviewService
- type MetricTracker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientLogger ¶
type ClientLogger struct { client.Client Log logr.Logger MetricTracker *MetricTracker }
func NewClientLogger ¶
func NewClientLogger(mgr manager.Manager, l logr.Logger, t *MetricTracker, name string) ClientLogger
func (*ClientLogger) GetOwner ¶
func (c *ClientLogger) GetOwner(ctx context.Context, objKey types.NamespacedName, ownerRefs []metav1.OwnerReference) (*clustersv1alpha2.TestClusterGKE, error)
func (*ClientLogger) MaybeCreate ¶
func (c *ClientLogger) MaybeCreate(list *unstructured.UnstructuredList, createdCallback func()) error
func (*ClientLogger) UpdateOwnerStatus ¶
func (c *ClientLogger) UpdateOwnerStatus(ctx context.Context, dependencyKind string, dependencyKey types.NamespacedName, conditions clustersv1alpha2.CommonConditions, owner *clustersv1alpha2.TestClusterGKE) error
type LogviewService ¶
type LogviewService struct {
Domain string
}
func (*LogviewService) AccessURL ¶
func (s *LogviewService) AccessURL(ctx context.Context, cl *ClientLogger, job *batchv1.Job) string
type MetricTracker ¶
type MetricTracker struct { ClustersCreated prometheus.Counter JobsCreated prometheus.Counter Errors prometheus.Counter }
func NewMetricTracker ¶
func NewMetricTracker() *MetricTracker
Click to show internal directories.
Click to hide internal directories.