Documentation ¶
Index ¶
- type ObjectStoreQueryer
- func (osq *ObjectStoreQueryer) Children(ctx context.Context, owner *unstructured.Unstructured) (*unstructured.UnstructuredList, error)
- func (osq *ObjectStoreQueryer) ConfigMapsForPod(ctx context.Context, pod *corev1.Pod) ([]*corev1.ConfigMap, error)
- func (osq *ObjectStoreQueryer) Events(ctx context.Context, object metav1.Object) ([]*corev1.Event, error)
- func (osq *ObjectStoreQueryer) IngressesForService(ctx context.Context, service *corev1.Service) ([]*v1beta1.Ingress, error)
- func (osq *ObjectStoreQueryer) OwnerReference(ctx context.Context, object *unstructured.Unstructured) (bool, *unstructured.Unstructured, error)
- func (osq *ObjectStoreQueryer) PodsForService(ctx context.Context, service *corev1.Service) ([]*corev1.Pod, error)
- func (osq *ObjectStoreQueryer) ScaleTarget(ctx context.Context, hpa *autoscalingv1.HorizontalPodAutoscaler) (map[string]interface{}, error)
- func (osq *ObjectStoreQueryer) SecretsForPod(ctx context.Context, pod *corev1.Pod) ([]*corev1.Secret, error)
- func (osq *ObjectStoreQueryer) ServiceAccountForPod(ctx context.Context, pod *corev1.Pod) (*corev1.ServiceAccount, error)
- func (osq *ObjectStoreQueryer) ServicesForIngress(ctx context.Context, ingress *extv1beta1.Ingress) (*unstructured.UnstructuredList, error)
- func (osq *ObjectStoreQueryer) ServicesForPod(ctx context.Context, pod *corev1.Pod) ([]*corev1.Service, error)
- type Queryer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectStoreQueryer ¶
type ObjectStoreQueryer struct {
// contains filtered or unexported fields
}
func New ¶
func New(o store.Store, discoveryClient discovery.DiscoveryInterface) *ObjectStoreQueryer
func (*ObjectStoreQueryer) Children ¶
func (osq *ObjectStoreQueryer) Children(ctx context.Context, owner *unstructured.Unstructured) (*unstructured.UnstructuredList, error)
func (*ObjectStoreQueryer) ConfigMapsForPod ¶
func (*ObjectStoreQueryer) IngressesForService ¶
func (*ObjectStoreQueryer) OwnerReference ¶
func (osq *ObjectStoreQueryer) OwnerReference(ctx context.Context, object *unstructured.Unstructured) (bool, *unstructured.Unstructured, error)
func (*ObjectStoreQueryer) PodsForService ¶
func (*ObjectStoreQueryer) ScaleTarget ¶
func (osq *ObjectStoreQueryer) ScaleTarget(ctx context.Context, hpa *autoscalingv1.HorizontalPodAutoscaler) (map[string]interface{}, error)
func (*ObjectStoreQueryer) SecretsForPod ¶
func (*ObjectStoreQueryer) ServiceAccountForPod ¶
func (osq *ObjectStoreQueryer) ServiceAccountForPod(ctx context.Context, pod *corev1.Pod) (*corev1.ServiceAccount, error)
func (*ObjectStoreQueryer) ServicesForIngress ¶
func (osq *ObjectStoreQueryer) ServicesForIngress(ctx context.Context, ingress *extv1beta1.Ingress) (*unstructured.UnstructuredList, error)
func (*ObjectStoreQueryer) ServicesForPod ¶
type Queryer ¶
type Queryer interface { Children(ctx context.Context, object *unstructured.Unstructured) (*unstructured.UnstructuredList, error) Events(ctx context.Context, object metav1.Object) ([]*corev1.Event, error) IngressesForService(ctx context.Context, service *corev1.Service) ([]*extv1beta1.Ingress, error) OwnerReference(ctx context.Context, object *unstructured.Unstructured) (bool, *unstructured.Unstructured, error) ScaleTarget(ctx context.Context, hpa *autoscalingv1.HorizontalPodAutoscaler) (map[string]interface{}, error) PodsForService(ctx context.Context, service *corev1.Service) ([]*corev1.Pod, error) ServicesForIngress(ctx context.Context, ingress *extv1beta1.Ingress) (*unstructured.UnstructuredList, error) ServicesForPod(ctx context.Context, pod *corev1.Pod) ([]*corev1.Service, error) ServiceAccountForPod(ctx context.Context, pod *corev1.Pod) (*corev1.ServiceAccount, error) ConfigMapsForPod(ctx context.Context, pod *corev1.Pod) ([]*corev1.ConfigMap, error) SecretsForPod(ctx context.Context, pod *corev1.Pod) ([]*corev1.Secret, error) }
Click to show internal directories.
Click to hide internal directories.