functions

package
v1.20.1-0...-5aa13ee Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetElementFromId

func GetElementFromId(input string, regex *regexp.Regexp, template string) string

GetElementFromId is reusable logic that is used in multiple provider-defined functions for pulling elements out of self links and ids of resources and data sources

func NewLocationFromIdFunction

func NewLocationFromIdFunction() function.Function

func NewNameFromIdFunction

func NewNameFromIdFunction() function.Function

func NewProjectFromIdFunction

func NewProjectFromIdFunction() function.Function

func NewRegionFromIdFunction

func NewRegionFromIdFunction() function.Function

func NewRegionFromZoneFunction

func NewRegionFromZoneFunction() function.Function

func NewZoneFromIdFunction

func NewZoneFromIdFunction() function.Function

func ValidateElementFromIdArguments

func ValidateElementFromIdArguments(ctx context.Context, input string, regex *regexp.Regexp, pattern string, functionName string) *function.FuncError

ValidateElementFromIdArguments is reusable validation logic used in provider-defined functions that use the GetElementFromId function

Types

type LocationFromIdFunction

type LocationFromIdFunction struct {
	// contains filtered or unexported fields
}

func (LocationFromIdFunction) Definition

func (LocationFromIdFunction) Metadata

func (LocationFromIdFunction) Run

type NameFromIdFunction

type NameFromIdFunction struct {
	// contains filtered or unexported fields
}

func (NameFromIdFunction) Definition

func (NameFromIdFunction) Metadata

func (NameFromIdFunction) Run

type ProjectFromIdFunction

type ProjectFromIdFunction struct {
	// contains filtered or unexported fields
}

func (ProjectFromIdFunction) Definition

func (ProjectFromIdFunction) Metadata

func (ProjectFromIdFunction) Run

type RegionFromIdFunction

type RegionFromIdFunction struct {
	// contains filtered or unexported fields
}

func (RegionFromIdFunction) Definition

func (RegionFromIdFunction) Metadata

func (RegionFromIdFunction) Run

type RegionFromZoneFunction

type RegionFromZoneFunction struct{}

func (RegionFromZoneFunction) Definition

func (RegionFromZoneFunction) Metadata

func (RegionFromZoneFunction) Run

type ZoneFromIdFunction

type ZoneFromIdFunction struct {
	// contains filtered or unexported fields
}

func (ZoneFromIdFunction) Definition

func (ZoneFromIdFunction) Metadata

func (ZoneFromIdFunction) Run

Jump to

Keyboard shortcuts

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