Documentation
¶
Overview ¶
Package printutil provides printing helpers.
Index ¶
- func AppendConflictDetails(w io.Writer, resource types.Conflict)
- func AppendContainerStatuses(w io.Writer, title string, containerStatuses []corev1.ContainerStatus)
- func AppendDataplaneDetails(w io.Writer, resource types.Dataplane)
- func AppendEnvDetails(w io.Writer, env map[string]string)
- func AppendImageBuildDetails(w io.Writer, resource types.ImageBuild)
- func AppendImageDetails(w io.Writer, resource types.Image)
- func AppendJobDetails(w io.Writer, resource types.Job)
- func AppendJobSubmissionDetails(w io.Writer, resource types.JobSubmission)
- func AppendLabelDetails(w io.Writer, labels map[string]string)
- func AppendMetadataDetails(w io.Writer, settings map[string]any)
- func AppendPodStatusDetails(w io.Writer, podStatuses []types.ExecuteableResourceStatus)
- func AppendPropertiesDetails(w io.Writer, properties map[string]interface{})
- func AppendRolesDetails(w io.Writer, roles []types.Role)
- func AppendServiceRequestDetails(w io.Writer, header string, services []types.ServiceRequest)
- func AppendSnapshotDetails(w io.Writer, resource types.Snapshot)
- func AppendStorageSpecDetails(w io.Writer, spec *corev1.PersistentVolumeClaimSpec, prefix string)
- func AppendTabbedString(buffer io.Writer, f func(io.Writer))
- func AppendUserDetails(w io.Writer, user types.Auth0User)
- func AppendVolumeDetails(w io.Writer, volumeStatus *types.VolumeStatus)
- func AppendWorkbenchDetails(w io.Writer, resource types.Workbench)
- func AppendWorkspaceDetails(w io.Writer, resource types.Workspace)
- func AppendWorkspaceRequestsDetails(w io.Writer, workspaces []types.WorkspaceRequest)
- func QuantityPtrToString(size *resource.Quantity) string
- func SetMarshalIndentedFunc(f func(any, string, string) ([]byte, error))
- func TimePtrToString(t *time.Time) string
- func TimePtrToStringWithAge(t *time.Time) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendConflictDetails ¶
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 ¶
AppendDataplaneDetails appends the description of the given types.Dataplane as a tabbed string to the given writer.
func AppendEnvDetails ¶
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 ¶
AppendImageDetails appends the description of the given types.Image as a tabbed string to the given writer.
func AppendJobDetails ¶
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 ¶
AppendLabelDetails appends the description of the given labels as a tabbed string to the given writer.
func AppendMetadataDetails ¶
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 ¶
AppendPropertiesDetails appends the description of the given properties as a tabbed string to the given writer.
func AppendRolesDetails ¶
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 ¶
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 ¶
AppendTabbedString appends the given functions output with tabwriter formatting.
func AppendUserDetails ¶
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 ¶
AppendWorkbenchDetails appends the description of the given types.Workbench as a tabbed string to the given writer.
func AppendWorkspaceDetails ¶
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 ¶
QuantityPtrToString returns a string representation of the given resource.Quantity pointer, or a placeholder if the pointer is nil.
func SetMarshalIndentedFunc ¶
SetMarshalIndentedFunc overrides the marshaling function used by this package.
func TimePtrToString ¶
TimePtrToString returns a string representation of the given time.Time pointer, or a placeholder if the pointer is nil.
func TimePtrToStringWithAge ¶
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.