Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RequestsHandler ¶
type RequestsHandler interface {
CreateRequest(ctx context.Context, client dynamic.Interface, request *Request) (string, error)
// GetRequestResult returns the Traceflow object, and a boolean to indicate whether the
// Traceflow request is completed. Completed means that the Traceflow Status has either been
// updated to "Succeeded" or "Failed".
GetRequestResult(ctx context.Context, client dynamic.Interface, requestID string) (map[string]interface{}, bool, error)
DeleteRequest(ctx context.Context, client dynamic.Interface, requestID string) (bool, error)
}
RequestsHandler manages the Traceflow CRs behind the UI's Traceflow page.
Every method takes the dynamic client to use, because Traceflows are created and deleted as the end user, whose credential is only known per request. The handler's own client is reserved for the background GC loop, which has no user to act as.
Click to show internal directories.
Click to hide internal directories.