Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - func Key(o KeyableObject) types.NamespacedName
 - func KeyFromMeta(objMeta metav1.ObjectMeta) types.NamespacedName
 - func NewMicroTime(v time.Time) metav1.MicroTime
 - func NewTime(v time.Time) metav1.Time
 - func Now() metav1.Time
 - func NowMicro() metav1.MicroTime
 - func SanitizeLabel(name string) string
 - func SanitizeName(name string) string
 - type KeyableObject
 
Constants ¶
      View Source
      
  
const MaxNameLength = validation.DNS1123SubdomainMaxLength
    Variables ¶
This section is empty.
Functions ¶
func Key ¶ added in v0.20.2
func Key(o KeyableObject) types.NamespacedName
func KeyFromMeta ¶ added in v0.20.2
func KeyFromMeta(objMeta metav1.ObjectMeta) types.NamespacedName
func NewMicroTime ¶ added in v0.19.7
NewMicroTime returns a wrapped instance of the provided time truncated to microseconds.
func NewTime ¶ added in v0.19.7
NewTime returns a wrapped instance of the provided time truncated to seconds.
func SanitizeLabel ¶ added in v0.22.6
SanitizeLabel ensures a value is suitable as both a label key and value.
func SanitizeName ¶
SanitizeName ensures a value is suitable for usage as an apiserver identifier.
Types ¶
type KeyableObject ¶ added in v0.23.5
      
      Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| 
       Package api is the internal version of the API. 
         | 
      Package api is the internal version of the API. | 
| 
         
          
            v1alpha1
            
            
          
           
      +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/tilt-dev/tilt/pkg/apis/core +k8s:defaulter-gen=TypeMeta +groupName=tilt.dev 
         | 
      +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/tilt-dev/tilt/pkg/apis/core +k8s:defaulter-gen=TypeMeta +groupName=tilt.dev | 
 Click to show internal directories. 
   Click to hide internal directories.