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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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