data

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsConfig

func IsConfig(config string) bool

IsConfig identifica se uma string representa uma configuração inline

Ex. - aws::ssm::my-parameter-name (aws parameter store) - aws::secrets::my-secret-name (aws secretsmanager) - aws::s3::my-bucket-name::my-file-key (aws s3 bucket) - local::file::c:\my-folder\my-filename.json (local file) - local::env::my-env-variable-name (environment variable)

func ParseConfig

func ParseConfig(inlineConfig string) (*types.Config, error)

ParseConfig é a função principal para processar configurações de qualquer provedor cloud

Types

type ContentType

type ContentType string
const (
	CSV  ContentType = "csv"
	JSON ContentType = "json"
	YAML ContentType = "yaml"
)

type String

type String string

func GetValue

func GetValue(config *types.Config, sess *session.Session) (String, error)

GetValue é a função responsável por recuperar as configurações nos serviços de qualquer provedor cloud

func (*String) CastTo

func (s *String) CastTo(contentType ContentType) (interface{}, error)

CastTo é o método que possibilita converter um objeto String em um mapa que consiga representar melhor um json, yaml ou csv

Directories

Path Synopsis
aws

Jump to

Keyboard shortcuts

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