Documentation
¶
Index ¶
- type CertificateState
- type DurationMS
- type DurationS
- type DurationUS
- type ImageRef
- type InstanceState
- type MetroStatus
- type PingLatency
- type Platform
- type Range
- type RelativeTime
- func (t RelativeTime) IsZero() bool
- func (t RelativeTime) MarshalJSON() ([]byte, error)
- func (t RelativeTime) MarshalText() ([]byte, error)
- func (t RelativeTime) String() string
- func (t RelativeTime) Time() time.Time
- func (t *RelativeTime) UnmarshalJSON(data []byte) error
- func (t *RelativeTime) UnmarshalText(text []byte) error
- type SizeBytes
- type SizeMebibytes
- type Usage
- type VolumeState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateState ¶
type CertificateState platform.CertificateState
func (CertificateState) MarshalText ¶ added in v0.1.1
func (state CertificateState) MarshalText() ([]byte, error)
func (CertificateState) String ¶
func (state CertificateState) String() string
func (*CertificateState) UnmarshalText ¶ added in v0.1.1
func (state *CertificateState) UnmarshalText(text []byte) error
type DurationMS ¶
type DurationMS int64
DurationMS is a time wrapper that represents a duration in milliseconds.
func (DurationMS) MarshalJSON ¶ added in v0.1.1
func (d DurationMS) MarshalJSON() ([]byte, error)
func (DurationMS) MarshalText ¶ added in v0.1.1
func (d DurationMS) MarshalText() ([]byte, error)
func (DurationMS) String ¶ added in v0.1.1
func (d DurationMS) String() string
func (*DurationMS) UnmarshalJSON ¶ added in v0.1.1
func (d *DurationMS) UnmarshalJSON(data []byte) error
func (*DurationMS) UnmarshalText ¶ added in v0.1.1
func (d *DurationMS) UnmarshalText(text []byte) error
type DurationS ¶ added in v0.1.1
DurationS is a time wrapper that represents a duration in seconds.
func (DurationS) MarshalJSON ¶ added in v0.1.1
func (DurationS) MarshalText ¶ added in v0.1.1
func (*DurationS) UnmarshalJSON ¶ added in v0.1.1
func (*DurationS) UnmarshalText ¶ added in v0.1.1
type DurationUS ¶
type DurationUS int64
DurationUS is a time wrapper that represents a duration in microseconds.
func (DurationUS) MarshalJSON ¶ added in v0.1.1
func (d DurationUS) MarshalJSON() ([]byte, error)
func (DurationUS) MarshalText ¶ added in v0.1.1
func (d DurationUS) MarshalText() ([]byte, error)
func (DurationUS) String ¶ added in v0.1.1
func (d DurationUS) String() string
func (*DurationUS) UnmarshalJSON ¶ added in v0.1.1
func (d *DurationUS) UnmarshalJSON(data []byte) error
func (*DurationUS) UnmarshalText ¶ added in v0.1.1
func (d *DurationUS) UnmarshalText(text []byte) error
type ImageRef ¶
type ImageRef[T interface {
reference.Named
comparable
}] struct {
Reference T
}
ImageRef is a generic wrapper around a Docker image reference.
func (ImageRef[T]) MarshalText ¶
func (*ImageRef[T]) UnmarshalText ¶ added in v0.2.0
type InstanceState ¶
type InstanceState platform.InstanceState
InstanceState is a wrapper around platform.InstanceState to automatically add pretty colors.
func (InstanceState) IsRunning ¶ added in v0.1.1
func (state InstanceState) IsRunning() bool
func (InstanceState) MarshalText ¶ added in v0.1.1
func (state InstanceState) MarshalText() ([]byte, error)
func (InstanceState) String ¶
func (state InstanceState) String() string
func (*InstanceState) UnmarshalText ¶ added in v0.1.1
func (state *InstanceState) UnmarshalText(text []byte) error
type MetroStatus ¶ added in v0.1.1
type MetroStatus string
MetroStatus represents the connection status of a metro endpoint.
const ( MetroStatusOnline MetroStatus = "online" MetroStatusOffline MetroStatus = "offline" )
func (MetroStatus) String ¶ added in v0.1.1
func (s MetroStatus) String() string
type PingLatency ¶ added in v0.1.1
PingLatency represents network latency to a metro endpoint.
func (PingLatency) MarshalJSON ¶ added in v0.1.1
func (p PingLatency) MarshalJSON() ([]byte, error)
func (PingLatency) MarshalText ¶ added in v0.1.1
func (p PingLatency) MarshalText() ([]byte, error)
func (PingLatency) String ¶ added in v0.1.1
func (p PingLatency) String() string
type Platform ¶ added in v0.2.2
Platform wraps containerd platform values.
func (Platform) MarshalText ¶ added in v0.2.2
func (*Platform) UnmarshalText ¶ added in v0.2.2
type Range ¶ added in v0.2.0
type Range[T any] struct { Min T `field:",long"` Max T `field:",long"` }
Range represents a min/max range for quota limits. It marshals to text as "min...max".
func (Range[T]) MarshalText ¶ added in v0.2.0
type RelativeTime ¶ added in v0.2.0
RelativeTime is a time wrapper that represents time in a human-friendly relative format (e.g., "2 hours ago", "in 5 minutes").
func (RelativeTime) IsZero ¶ added in v0.2.0
func (t RelativeTime) IsZero() bool
IsZero reports whether t represents the zero time instant.
func (RelativeTime) MarshalJSON ¶ added in v0.2.0
func (t RelativeTime) MarshalJSON() ([]byte, error)
func (RelativeTime) MarshalText ¶ added in v0.2.0
func (t RelativeTime) MarshalText() ([]byte, error)
func (RelativeTime) String ¶ added in v0.2.0
func (t RelativeTime) String() string
String returns the time as a human-friendly relative string.
func (RelativeTime) Time ¶ added in v0.2.0
func (t RelativeTime) Time() time.Time
Time returns the underlying time.Time value.
func (*RelativeTime) UnmarshalJSON ¶ added in v0.2.0
func (t *RelativeTime) UnmarshalJSON(data []byte) error
func (*RelativeTime) UnmarshalText ¶ added in v0.2.0
func (t *RelativeTime) UnmarshalText(text []byte) error
type SizeBytes ¶ added in v0.2.2
type SizeBytes int64
SizeBytes is a size wrapper that represents a size in bytes.
func (SizeBytes) MarshalJSON ¶ added in v0.2.2
func (SizeBytes) MarshalText ¶ added in v0.2.2
func (*SizeBytes) UnmarshalJSON ¶ added in v0.2.2
func (*SizeBytes) UnmarshalText ¶ added in v0.2.2
type SizeMebibytes ¶
type SizeMebibytes int64
SizeMebibytes is a size wrapper that represents a size in mebibytes.
func (SizeMebibytes) MarshalJSON ¶
func (m SizeMebibytes) MarshalJSON() ([]byte, error)
func (SizeMebibytes) MarshalText ¶
func (m SizeMebibytes) MarshalText() ([]byte, error)
func (SizeMebibytes) String ¶
func (m SizeMebibytes) String() string
func (*SizeMebibytes) UnmarshalJSON ¶
func (m *SizeMebibytes) UnmarshalJSON(data []byte) error
func (*SizeMebibytes) UnmarshalText ¶
func (m *SizeMebibytes) UnmarshalText(text []byte) error
type Usage ¶ added in v0.2.0
type Usage[T any] struct { Used T `field:",long"` Limit T `field:",long"` }
Usage represents a used/limit pair for quota tracking. It marshals to text as "used/limit".
func (Usage[T]) MarshalText ¶ added in v0.2.0
type VolumeState ¶
type VolumeState platform.VolumeState
func (VolumeState) MarshalText ¶ added in v0.1.1
func (state VolumeState) MarshalText() ([]byte, error)
func (VolumeState) String ¶
func (state VolumeState) String() string
func (*VolumeState) UnmarshalText ¶ added in v0.1.1
func (state *VolumeState) UnmarshalText(text []byte) error