config

package
v0.0.0-...-7d03038 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFunctionName

func GetFunctionName() string

func ReadFileBytes

func ReadFileBytes(path string) (content []byte, err error)

Types

type FileConfig

type FileConfig struct {
	PolicyAliases map[string]string `yaml:"policy_aliases"`
}

func LoadFileConfig

func LoadFileConfig(path string) (config FileConfig, err error)

type ResourceID

type ResourceID struct {
	SubscriptionID string
	ResourceGroup  string
	Provider       string
	Name           string
	Raw            string
}

func NewResourceID

func NewResourceID(subID, rg, provider, name string) (rid ResourceID)

func ParseResourceID

func ParseResourceID(rawID string) ResourceID

ParseResourceID accepts an azure resource ID as a string and returns a struct instance containing the components.

func (*ResourceID) SetSubscriptionID

func (rid *ResourceID) SetSubscriptionID(subID string)

Jump to

Keyboard shortcuts

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