llama_cpp.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. Copyright 2026 LocoStack.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. package reconciler
  14. import (
  15. "github.com/LocoStack/loco-operator/api/v1alpha1"
  16. "k8s.io/apimachinery/pkg/runtime"
  17. "sigs.k8s.io/controller-runtime/pkg/client"
  18. )
  19. type LlamaCPPReconciler struct {
  20. *DefaultComponentReconciler
  21. client client.Client
  22. scheme *runtime.Scheme
  23. stack *v1alpha1.Stack
  24. component *v1alpha1.Component
  25. }
  26. func NewLlamaCPPReconciler(client client.Client, scheme *runtime.Scheme, stack *v1alpha1.Stack, component *v1alpha1.Component) *LlamaCPPReconciler {
  27. return &LlamaCPPReconciler{
  28. DefaultComponentReconciler: NewDefaultComponentReconciler(client, scheme, stack, component),
  29. client: client,
  30. scheme: scheme,
  31. stack: stack,
  32. component: component,
  33. }
  34. }