Documentation
¶
Index ¶
- func FormatTimestamp(in string) string
- func GetSandbox(ctx context.Context, cfg *config.API, sandboxName string) (*models.Sandbox, error)
- func GetTTLTimeAgoFromBase(baseTime time.Time, dur string) string
- func LoadUnstructuredTemplate(file string, tplVals config.TemplateVals, forDelete bool) (any, error)
- func TimeAgo(in string) string
- func UnstructuredToNameAndSpec(un any) (name string, spec any, err error)
- func WaitForSandboxReady(ctx context.Context, cfg *config.API, out io.Writer, sandboxName string, ...) (*models.Sandbox, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTimestamp ¶ added in v0.7.0
func GetSandbox ¶ added in v1.3.0
func GetTTLTimeAgoFromBase ¶ added in v0.7.0
func TimeAgo ¶ added in v1.6.0
TimeAgo returns just the relative form ("4 days ago") for an RFC3339 timestamp, suitable for compact table columns. Returns the input unchanged if it can't be parsed.
func UnstructuredToNameAndSpec ¶ added in v0.7.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.