Documentation
¶
Overview ¶
Package common contains shared utilities.
Index ¶
- func CompareByName[T Nameable](a T, b T) int
- func CompareToName[T Nameable](e T, name string) int
- func EqualByName[T Nameable](name string) func(e T) bool
- func GetOCIManifest(ociPath string) (*imgspecv1.Manifest, error)
- func Map[S ~[]T, T, V any](s S, fn func(T) V) []V
- func Names[T Nameable](seq iter.Seq[T]) iter.Seq[string]
- type Nameable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareByName ¶
CompareByName compares two `nameable` instances
func CompareToName ¶
CompareToName compares `T`'s name with `name`.
func EqualByName ¶
EqualByName returns a comparator to check if `T` has `name`.
func GetOCIManifest ¶
GetOCIManifest returns the manifest for the given OCI image.
Types ¶
Click to show internal directories.
Click to hide internal directories.