Documentation
¶
Index ¶
- Constants
- func FromMetadata[T ~map[string]string](metadata T) *api.Labels
- func FromMetadataAnnotations(metadata models.Metadata, annotations models.Annotations) *api.Labels
- func ToMetadata(labels *api.Labels) (models.Metadata, error)
- func ValidateLabel(k, v string) error
- func ValidateLabels(l api.Labels) error
- type MetadataAnnotations
Constants ¶
View Source
const AnnotationsPrefix = "openmeter_"
Variables ¶
This section is empty.
Functions ¶
func FromMetadataAnnotations ¶
func ValidateLabel ¶
func ValidateLabels ¶
Types ¶
type MetadataAnnotations ¶
type MetadataAnnotations struct {
Metadata models.Metadata
Annotations models.Annotations
}
func ToMetadataAnnotations ¶
func ToMetadataAnnotations(labels *api.Labels) (MetadataAnnotations, error)
Click to show internal directories.
Click to hide internal directories.