converters

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractEndpoints

func ExtractEndpoints(metadata *models.ClusterMetadataInfo) (httpEndpoint, httpsEndpoint *string)

func ExtractEndpointsToTypes

func ExtractEndpointsToTypes(metadata *models.ClusterMetadataInfo) (httpEndpoint, httpsEndpoint types.String)

func MapToModelsTags

func MapToModelsTags(raw map[string]string) []*models.MetadataItem

func ModelsTagsToMap

func ModelsTagsToMap(metadataItems []*models.MetadataItem) map[string]string

flattenTags takes in Deployment Metadata resource models and returns its Tags as Go map

func ModelsTagsToTypesMap

func ModelsTagsToTypesMap(metadataItems []*models.MetadataItem) (types.Map, diag.Diagnostics)

flattenTags takes in Deployment Metadata resource models and returns its Tags in flattened form.

func ParseTopologySize

func ParseTopologySize(size, sizeResource *string) (*models.TopologySize, error)

func ParseTopologySizeTypes

func ParseTopologySizeTypes(size, sizeResource types.String) (*models.TopologySize, error)

func TypesMapToModelsTags

func TypesMapToModelsTags(ctx context.Context, raw types.Map) ([]*models.MetadataItem, diag.Diagnostics)

Types

This section is empty.

Jump to

Keyboard shortcuts

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