resource

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadYamlTemplate

func ReadYamlTemplate(yamlFile string) (yamlTemplate []byte, err error)

ReadYamlTemplate reads the given config .yml file, returns it as a slice of bytes.

Types

type Resource

type Resource struct {
	Log     *logrus.Logger
	Asset   *asset.Asset
	Secrets *secrets.Store
}

Resource struct holds configuration resource related attributes Config resources are configuration parameters butlers apply to assets.

func (*Resource) LoadConfigResources

func (r *Resource) LoadConfigResources(yamlTemplate []byte) (config *cfgresources.ResourcesConfig)

LoadConfigResources gets the template rendered and unmarshals the resulting yml.

func (*Resource) RenderYamlTemplate

func (r *Resource) RenderYamlTemplate(yamlTemplate []byte) (yamlData []byte)

RenderYamlTemplate renders templated values in the given config .yml, returns it as a slice of bytes.

Jump to

Keyboard shortcuts

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