Documentation
¶
Overview ¶
Package types contains types and validation functions for workloads in ToolHive. This is separated to avoid circular dependencies with the core package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidWorkloadName = fmt.Errorf("invalid workload name")
ErrInvalidWorkloadName is returned when a workload name fails validation.
Functions ¶
func MatchesLabelFilters ¶
MatchesLabelFilters checks if workload labels match all the specified filters
func ParseLabelFilters ¶
ParseLabelFilters parses label filters from a slice of strings and validates them.
func ValidateWorkloadName ¶
ValidateWorkloadName checks if the provided workload name is valid.
func WorkloadFromContainerInfo ¶
func WorkloadFromContainerInfo(container *runtime.ContainerInfo) (core.Workload, error)
WorkloadFromContainerInfo creates a Workload struct from the runtime container info.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.