format

package
v0.0.512 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package format implements various formatters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocStatus

func AllocStatus(alloc *api.AllocationStatus) string

func AllocSummary

func AllocSummary(alloc *api.AllocationStatus) string

func DeploymentAllocSummary

func DeploymentAllocSummary(d *api.DeploymentStatus) string

func DeploymentSummary

func DeploymentSummary(d *api.DeploymentStatus) string

func HealthChecksSummary

func HealthChecksSummary(allocs ...*api.AllocationStatus) string

func RelativeTime

func RelativeTime(t time.Time) string

func Time

func Time(t time.Time) string

Time is shorthand for t.Format(time.RFC3339).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL