Documentation
¶
Index ¶
- func GVREquals(r1, r2 schema.GroupVersionResource) bool
- func HumanizeApproximateDuration(d time.Duration) string
- func Index[T comparable](vs []T, t T) int
- func JsonToYaml(data []byte) ([]byte, error)
- func ObjectWatcher[T client.Object](ctx context.Context, cluster *api.Cluster, resource *metav1.APIResource, ...)
- func ResourceEquals(r1, r2 *v1.APIResource) bool
- func ResourceGVK(resource *v1.APIResource) schema.GroupVersionKind
- func ResourceGVR(resource *v1.APIResource) schema.GroupVersionResource
- func SetSourceColorScheme(buf *gtksource.Buffer)
- func YamlToJson(data []byte) ([]byte, error)
- func YamlToUnstructured(data []byte) (*unstructured.Unstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GVREquals ¶
func GVREquals(r1, r2 schema.GroupVersionResource) bool
func Index ¶
func Index[T comparable](vs []T, t T) int
func JsonToYaml ¶
func ObjectWatcher ¶ added in v0.2.0
func ResourceEquals ¶
func ResourceEquals(r1, r2 *v1.APIResource) bool
func ResourceGVK ¶ added in v0.2.0
func ResourceGVK(resource *v1.APIResource) schema.GroupVersionKind
func ResourceGVR ¶
func ResourceGVR(resource *v1.APIResource) schema.GroupVersionResource
func SetSourceColorScheme ¶
func SetSourceColorScheme(buf *gtksource.Buffer)
func YamlToJson ¶
func YamlToUnstructured ¶ added in v0.2.0
func YamlToUnstructured(data []byte) (*unstructured.Unstructured, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.