utils

package
v0.7.11-12-g50f6277f Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUUID added in v0.7.1

func IsUUID(arg string) bool

IsUUID returns whether the provided the string is a UUID or not.

func PopulateMetroToken added in v0.7.9

func PopulateMetroToken(cmd *cobra.Command, metro, token *string) error

func PrettyPrintInstance added in v0.7.1

func PrettyPrintInstance(ctx context.Context, instance *kraftcloudinstances.Instance, autoStart bool)

PrettyPrintInstance outputs a single instance and information about it.

func PrintAutoscaleConfigurations added in v0.7.4

func PrintAutoscaleConfigurations(ctx context.Context, format string, autoscaleConfigurations ...kraftcloudautoscale.AutoscaleConfiguration) error

PrintAutoscaleConfigurations pretty-prints the provided set of autoscale configurations or returns an error if unable to send to stdout via the provided context.

func PrintInstances

func PrintInstances(ctx context.Context, format string, instances ...kraftcloudinstances.Instance) error

PrintInstances pretty-prints the provided set of instances or returns an error if unable to send to stdout via the provided context.

func PrintLimits added in v0.7.5

func PrintLimits(ctx context.Context, format string, quotas ...kraftcloudusers.Quotas) error

PrintLimits pretty-prints the provided set of user limits or returns an error if unable to send to stdout via the provided context.

func PrintQuotas added in v0.7.1

func PrintQuotas(ctx context.Context, format string, quotas ...kraftcloudusers.Quotas) error

PrintQuotas pretty-prints the provided set of user quotas or returns an error if unable to send to stdout via the provided context.

func PrintServiceGroups added in v0.7.1

func PrintServiceGroups(ctx context.Context, format string, serviceGroups ...kraftcloudservices.ServiceGroup) error

PrintServiceGroups pretty-prints the provided set of service groups or returns an error if unable to send to stdout via the provided context.

func PrintVolumes added in v0.7.1

func PrintVolumes(ctx context.Context, format string, volumes ...kraftcloudvolumes.Volume) error

PrintVolumes pretty-prints the provided set of volumes or returns an error if unable to send to stdout via the provided context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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