Documentation ¶
Index ¶
- func AddLogMetricController(mgr manager.Manager, config *controller.Config, opts directbase.Deps) error
- func GetModel(ctx context.Context, config *controller.Config) (directbase.Model, error)
- func HasHTTPCode(err error, code int) bool
- func IsNotFound(err error) bool
- func LazyPtr[T comparable](v T) *T
- func LogBucketRef_ConvertToExternal(ctx context.Context, reader client.Reader, src client.Object, ...) error
- func MakeFQN(projectID, metricID string) string
- func ValueOf[T any](p *T) T
- type LogBucket
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLogMetricController ¶
func AddLogMetricController(mgr manager.Manager, config *controller.Config, opts directbase.Deps) error
AddLogMetricController creates a new controller and adds it to the Manager. The Manager will set fields on the Controller and start it when the Manager is started.
func GetModel ¶ added in v1.118.0
func GetModel(ctx context.Context, config *controller.Config) (directbase.Model, error)
func HasHTTPCode ¶
HasHTTPCode returns true if the given error is an HTTP response with the given code.
func IsNotFound ¶
IsNotFound returns true if the given error is an HTTP 404.
func LazyPtr ¶ added in v1.118.1
func LazyPtr[T comparable](v T) *T
LazyPtr returns a pointer to v, unless it is the empty value, in which case it returns nil. It is essentially the inverse of ValueOf, though it is lossy because we can't tell nil and empty apart without a pointer.
func LogBucketRef_ConvertToExternal ¶ added in v1.118.0
Types ¶
type LogBucket ¶ added in v1.118.0
type LogBucket struct {
// contains filtered or unexported fields
}
func LogBucketRef_Parse ¶ added in v1.118.0
Click to show internal directories.
Click to hide internal directories.