objectformats

package
v0.53.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGenericResourceTableFormat added in v0.28.0

func GetGenericResourceTableFormat() output.FormatterOptions

GetGenericResourceTableFormat returns the fields to output from a generic resource object. This function should be used with the Go type GenericResource. The difference between this function and the GetResourceTableFormat function above is that GenericResource properties is a map and the way to get the ProvisioningState is different.

func GetRecipeFormat

func GetRecipeFormat() output.FormatterOptions

func GetRecipeFormatWithoutHeadings

func GetRecipeFormatWithoutHeadings() output.FormatterOptions

func GetRecipePackTableFormat

func GetRecipePackTableFormat() output.FormatterOptions

func GetResourceTableFormat

func GetResourceTableFormat() output.FormatterOptions

GetResourceTableFormat returns the fields to output from a resource object. This function should be used with the generated CoreRP and other portable resource types.

func TrimSpaceMulti

func TrimSpaceMulti(s string) string

TrimSpaceMulti takes in a string and returns a string with all leading and trailing whitespace removed from each line.

Types

type ResourceIDToResourceGroupNameTransformer added in v0.28.0

type ResourceIDToResourceGroupNameTransformer struct {
}

ResourceIDToResourceGroupNameTransformer is a transformer that takes a resource ID and returns the resource group name.

func (*ResourceIDToResourceGroupNameTransformer) Transform added in v0.28.0

Transform takes a resource ID and returns the resource group name.

type ResourceIDToResourceNameTransformer added in v0.28.0

type ResourceIDToResourceNameTransformer struct {
}

ResourceIDToResourceNameTransformer is a transformer that takes a resource ID and returns the resource name.

func (*ResourceIDToResourceNameTransformer) Transform added in v0.28.0

Transform takes a resource ID and returns the resource name.

Jump to

Keyboard shortcuts

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