Versions in this module Expand all Collapse all v0 v0.0.1 Jul 29, 2026 Changes in this version + func DecodeProject(encoded string) (string, string, error) + func EncodeProject(uuid, project string) string + func HumanizeDuration(duration time.Duration) string + func ImageClassificationFromString(classification string) (apiv2.ImageClassification, error) + func ImageFeatureFromString(feature string) (*apiv2.ImageFeature, error) + func ImageFeaturesFromStringSlice(features []string) ([]apiv2.ImageFeature, error) + func IsAnyViperFlagSet(names ...string) bool + func LabelsFromSlice(labelSlice []string) (*apiv2.Labels, error) + func ToAdminRole(roleString string) (*apiv2.AdminRole, error) + func ToInfraRole(roleString string) (*apiv2.InfraRole, error) + func ToMachineRoles(machineRolesSlice []string) (map[string]apiv2.MachineRole, error) + func ToPermissionsByVisibility(perms []*apiv2.MethodPermission) ([]*apiv2.PermissionsByVisibility, error) + func ToProjectRoles(projectRolesSlice []string) (map[string]apiv2.ProjectRole, error) + func ToTenantRoles(tenantRolesSlice []string) (map[string]apiv2.TenantRole, error) + func TrimProvider(subject string) string + func UpdateLabelsFromCLI() (*apiv2.UpdateLabels, error) + func UpdateLabelsFromMeta(meta *apiv2.Meta) *apiv2.UpdateLabels + func UpdateMetaFromMeta(meta *apiv2.Meta) *apiv2.UpdateMeta