config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultResource

func DefaultResource(opts ...tjconfig.ResourceOption) tjconfig.DefaultResourceFn

DefaultResource returns a DefaultResourceFn that makes sure the original DefaultResource call is made with given options here.

func GetProvider

func GetProvider() *tjconfig.Provider

GetProvider returns provider configuration

Types

type GroupKindCalculator added in v0.2.0

type GroupKindCalculator func(resource string) (string, string)

GroupKindCalculator returns the correct group and kind name for given TF resource.

func ReplaceGroupWords added in v0.2.0

func ReplaceGroupWords(group string, count int) GroupKindCalculator

ReplaceGroupWords uses given group as the group of the resource and removes a number of words in resource name before calculating the kind of the resource.

Jump to

Keyboard shortcuts

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