utils

package
v0.9.2-111-gf02a5331 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenRandAuth added in v0.9.0

func GenRandAuth() (string, error)

GenRandAuth generates a random authentication string.

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 IsValidOutputFormat added in v0.7.14

func IsValidOutputFormat(format string) bool

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, metro string, instance kcinstances.GetResponseItem, service *kcservices.GetResponseItem, autoStart bool)

PrettyPrintInstance outputs a single instance and information about it.

func PrintAutoscaleConfiguration added in v0.7.13

func PrintAutoscaleConfiguration(ctx context.Context, format string, resp kcclient.ServiceResponse[kcautoscale.GetResponseItem]) error

PrintAutoscaleConfiguration pretty-prints the provided autoscale configuration or returns an error if unable to send to stdout via the provided context.

func PrintCertificates added in v0.7.13

func PrintCertificates(ctx context.Context, format string, resp kcclient.ServiceResponse[kccerts.GetResponseItem]) error

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

func PrintInstances

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

func PrintQuotas added in v0.7.1

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

func PrintServices added in v0.9.0

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

func PrintVolumes added in v0.7.1

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

Types

type Metro added in v0.9.3

type Metro struct {
	Location string
	Code     string
}

func (Metro) String added in v0.9.3

func (m Metro) String() string

Jump to

Keyboard shortcuts

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