Documentation
¶
Index ¶
Constants ¶
View Source
const (
// name of our custom finalizer
FinalizerName = "function.adx-mon.azure.com/finalizer"
)
Variables ¶
View Source
var ErrNotLeader = errors.New("not leader")
ErrNotLeader indicates that Function listing was skipped because this instance is not the leader.
Functions ¶
func ConvertToTypedList ¶ added in v0.2.0
func ConvertToTypedList(objects []client.Object, list client.ObjectList) error
func FilterCompleted ¶ added in v0.2.0
FilterCompleted will filter out objects that are completed, as determined by their Conditions being in a "True" state and the ObservedGeneration matching the current generation of the object.
Types ¶
type CRDHandler ¶ added in v0.2.0
type CRDHandler interface {
List(ctx context.Context, list client.ObjectList, filters ...ListFilterFunc) error
UpdateStatus(ctx context.Context, obj client.Object, errStatus error) error
UpdateStatusWithKustoErrorParsing(ctx context.Context, obj client.Object, errStatus error) error
}
func NewCRDHandler ¶ added in v0.2.0
func NewCRDHandler(client client.Client, elector scheduler.Elector) CRDHandler
type Functions ¶
type Functions interface {
UpdateStatus(ctx context.Context, fn *adxmonv1.Function) error
Update(ctx context.Context, fn *adxmonv1.Function) error
List(ctx context.Context, opts ListOptions) ([]*adxmonv1.Function, error)
UpdateCondition(ctx context.Context, fn *adxmonv1.Function, condition metav1.Condition) error
}
type ListFilterFunc ¶ added in v0.2.0
type ListOptions ¶ added in v0.4.0
type ListOptions struct {
IncludeCriteriaMismatches bool
}
Click to show internal directories.
Click to hide internal directories.