Documentation
¶
Index ¶
- type Object
- type Objects
- type ResourceRepo
- func (r *ResourceRepo) CLIQueryResults(args []string) *resource.Result
- func (r *ResourceRepo) DynamicObject(gvr schema.GroupVersionResource, namespace string, name string) (Object, error)
- func (r *ResourceRepo) DynamicObjects(gvr schema.GroupVersionResource, namespace string) (Objects, error)
- func (r *ResourceRepo) Endpoints(namespace string) (*corev1.EndpointsList, error)
- func (r *ResourceRepo) FirstObject(namespace string, args []string, labelSelector string) (Object, error)
- func (r *ResourceRepo) GVRFor(resourceOrKindArg string) (schema.GroupVersionResource, error)
- func (r *ResourceRepo) Ingresses(namespace string) (*netv1.IngressList, error)
- func (r *ResourceRepo) KubeGetNodeStatsSummary(nodeName string) (Object, error)
- func (r *ResourceRepo) NonTerminatedPodsOnTheNode(nodeName string) (Objects, error)
- func (r *ResourceRepo) ObjectEvents(u *unstructured.Unstructured) (*corev1.EventList, error)
- func (r *ResourceRepo) Objects(namespace string, args []string, labelSelector string) (Objects, error)
- func (r *ResourceRepo) Owners(obj Object) (out Objects, err error)
- func (r *ResourceRepo) Service(namespace, name string) (*corev1.Service, error)
- func (r *ResourceRepo) Services(namespace string) (*corev1.ServiceList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object map[string]interface{}
Object is the JSON compatible map[string]interface{} mostly used through unstructured.Unstructured.
func (Object) Unstructured ¶
func (u Object) Unstructured() *unstructured.Unstructured
type ResourceRepo ¶
type ResourceRepo struct {
// contains filtered or unexported fields
}
func NewResourceRepo ¶
func NewResourceRepo(factory util.Factory) (*ResourceRepo, error)
func (*ResourceRepo) CLIQueryResults ¶
func (r *ResourceRepo) CLIQueryResults(args []string) *resource.Result
func (*ResourceRepo) DynamicObject ¶
func (r *ResourceRepo) DynamicObject(gvr schema.GroupVersionResource, namespace string, name string) (Object, error)
func (*ResourceRepo) DynamicObjects ¶
func (r *ResourceRepo) DynamicObjects(gvr schema.GroupVersionResource, namespace string) (Objects, error)
func (*ResourceRepo) Endpoints ¶
func (r *ResourceRepo) Endpoints(namespace string) (*corev1.EndpointsList, error)
func (*ResourceRepo) FirstObject ¶
func (*ResourceRepo) GVRFor ¶
func (r *ResourceRepo) GVRFor(resourceOrKindArg string) (schema.GroupVersionResource, error)
func (*ResourceRepo) Ingresses ¶
func (r *ResourceRepo) Ingresses(namespace string) (*netv1.IngressList, error)
func (*ResourceRepo) KubeGetNodeStatsSummary ¶
func (r *ResourceRepo) KubeGetNodeStatsSummary(nodeName string) (Object, error)
KubeGetNodeStatsSummary returns this structure > kubectl get --raw /api/v1/nodes/{nodeName}/proxy/stats/summary The endpoint that this function uses will be disabled soon: https://github.com/kubernetes/kubernetes/issues/68522
func (*ResourceRepo) NonTerminatedPodsOnTheNode ¶
func (r *ResourceRepo) NonTerminatedPodsOnTheNode(nodeName string) (Objects, error)
func (*ResourceRepo) ObjectEvents ¶
func (r *ResourceRepo) ObjectEvents(u *unstructured.Unstructured) (*corev1.EventList, error)
func (*ResourceRepo) Service ¶
func (r *ResourceRepo) Service(namespace, name string) (*corev1.Service, error)
func (*ResourceRepo) Services ¶
func (r *ResourceRepo) Services(namespace string) (*corev1.ServiceList, error)
Click to show internal directories.
Click to hide internal directories.