Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRD ¶
type CRD interface { // EnsurePresentCRD will create the custom resource and wait to be ready // if there is not already present. EnsurePresentCRD(conf CRDConf) error }
CRD is the CRD service that knows how to interact with k8s to manage them.
type Service ¶
type Service interface { ServiceLevel CRD }
Service is the service used to interact with the Kubernetes objects.
type ServiceLevel ¶
type ServiceLevel interface { // ListServiceLevels will list the service levels. ListServiceLevels(namespace string, opts metav1.ListOptions) (*monitoringv1alpha1.ServiceLevelList, error) // ListServiceLevels will list the service levels. WatchServiceLevels(namespace string, opt metav1.ListOptions) (watch.Interface, error) }
ServiceLevel knows how to interact with Kubernetes on the ServiceLevel CRs
func NewServiceLevel ¶
func NewServiceLevel(crdcli crdcli.Interface, logger log.Logger) ServiceLevel
NewServiceLevel returns a new service level service.
Click to show internal directories.
Click to hide internal directories.