printutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package printutil provides printing helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendConflictDetails

func AppendConflictDetails(
	w io.Writer,
	resource types.Conflict,
)

AppendConflictDetails appends the description of the given types.Conflict as a tabbed string to the given writer.

func AppendContainerStatuses

func AppendContainerStatuses(
	w io.Writer,
	title string,
	containerStatuses []corev1.ContainerStatus,
)

AppendContainerStatuses appends the description of the given container statuses as a tabbed string to the given writer. nolint:cyclop

func AppendDataplaneDetails

func AppendDataplaneDetails(
	w io.Writer,
	resource types.Dataplane,
)

AppendDataplaneDetails appends the description of the given types.Dataplane as a tabbed string to the given writer.

func AppendEnvDetails

func AppendEnvDetails(
	w io.Writer,
	env map[string]string,
)

AppendEnvDetails appends the description of the given environment as a tabbed string to the given writer.

func AppendImageBuildDetails

func AppendImageBuildDetails(
	w io.Writer,
	resource types.ImageBuild,
)

AppendImageBuildDetails appends the description of the given types.ImageBuild as a tabbed string to the given writer.

func AppendImageDetails

func AppendImageDetails(
	w io.Writer,
	resource types.Image,
)

AppendImageDetails appends the description of the given types.Image as a tabbed string to the given writer.

func AppendJobDetails

func AppendJobDetails(
	w io.Writer,
	resource types.Job,
)

AppendJobDetails appends the description of the given types.Job as a tabbed string to the given writer.

func AppendJobSubmissionDetails

func AppendJobSubmissionDetails(
	w io.Writer,
	resource types.JobSubmission,
)

AppendJobSubmissionDetails appends the description of the given types.JobSubmission as a tabbed string to the given writer.

func AppendLabelDetails

func AppendLabelDetails(
	w io.Writer,
	labels map[string]string,
)

AppendLabelDetails appends the description of the given labels as a tabbed string to the given writer.

func AppendMetadataDetails

func AppendMetadataDetails(
	w io.Writer,
	settings map[string]any,
)

AppendMetadataDetails appends the description of the given settings as a tabbed string to the given writer.

func AppendPodStatusDetails

func AppendPodStatusDetails(
	w io.Writer,
	podStatuses []types.ExecuteableResourceStatus,
)

AppendPodStatusDetails appends the description of the given pod statuses as a tabbed string to the given writer.

func AppendPropertiesDetails

func AppendPropertiesDetails(
	w io.Writer,
	properties map[string]interface{},
)

AppendPropertiesDetails appends the description of the given properties as a tabbed string to the given writer.

func AppendRolesDetails

func AppendRolesDetails(
	w io.Writer,
	roles []types.Role,
)

AppendRolesDetails appends the description of the given types.Role slice as a tabbed string to the given writer.

func AppendServiceRequestDetails

func AppendServiceRequestDetails(
	w io.Writer,
	header string,
	services []types.ServiceRequest,
)

AppendServiceRequestDetails appends the description of the given types.ServiceRequest slice as a tabbed string to the given writer.

func AppendSnapshotDetails

func AppendSnapshotDetails(
	w io.Writer,
	resource types.Snapshot,
)

AppendSnapshotDetails appends the description of the given types.Snapshot as a tabbed string to the given writer.

func AppendStorageSpecDetails

func AppendStorageSpecDetails(
	w io.Writer,
	spec *corev1.PersistentVolumeClaimSpec,
	prefix string,
)

AppendStorageSpecDetails appends the description of the given corev1.PersistentVolumeClaimSpec as a tabbed string to the given writer.

func AppendTabbedString

func AppendTabbedString(
	buffer io.Writer,
	f func(io.Writer),
)

AppendTabbedString appends the given functions output with tabwriter formatting.

func AppendUserDetails

func AppendUserDetails(
	w io.Writer,
	user types.Auth0User,
)

AppendUserDetails appends the description of the given types.User as a tabbed string to the given writer.

func AppendVolumeDetails

func AppendVolumeDetails(
	w io.Writer,
	volumeStatus *types.VolumeStatus,
)

AppendVolumeDetails appends the description of the given types.VolumeStatus as a tabbed string to the given writer.

func AppendWorkbenchDetails

func AppendWorkbenchDetails(
	w io.Writer,
	resource types.Workbench,
)

AppendWorkbenchDetails appends the description of the given types.Workbench as a tabbed string to the given writer.

func AppendWorkspaceDetails

func AppendWorkspaceDetails(
	w io.Writer,
	resource types.Workspace,
)

AppendWorkspaceDetails appends the description of the given types.Workspace as a tabbed string to the given writer.

func AppendWorkspaceRequestsDetails

func AppendWorkspaceRequestsDetails(
	w io.Writer,
	workspaces []types.WorkspaceRequest,
)

AppendWorkspaceRequestsDetails appends the description of the given types.WorkspaceRequest slice as a tabbed string to the given writer.

func QuantityPtrToString

func QuantityPtrToString(size *resource.Quantity) string

QuantityPtrToString returns a string representation of the given resource.Quantity pointer, or a placeholder if the pointer is nil.

func SetMarshalIndentedFunc

func SetMarshalIndentedFunc(
	f func(
		any,
		string,
		string,
	) ([]byte, error),
)

SetMarshalIndentedFunc overrides the marshaling function used by this package.

func TimePtrToString

func TimePtrToString(t *time.Time) string

TimePtrToString returns a string representation of the given time.Time pointer, or a placeholder if the pointer is nil.

func TimePtrToStringWithAge

func TimePtrToStringWithAge(t *time.Time) string

TimePtrToStringWithAge returns a string representation of the given time.Time pointer with a human friendly age, or a placeholder if the pointer is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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