cloud

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 3 modules, 3 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

View Source
const (
	AwsCloud CloudContextType = iota
	Azure
	GoogleCloud

	S3Context ContextType = iota
	SSMContext
	SecretsManagerContext

	TextSecret SecretType = "text"
	JSONSecret SecretType = "json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudContext

type CloudContext interface {
	GetS3ObjectValue(bucketName, keyName string) (interface{}, error)
	GetParameterValue(parameterName string, withDecryption bool) (interface{}, error)
	GetSecretValue(secretName string, secretType SecretType) (interface{}, error)
	NewAutoManagedToken(url, clientId, clientSecret string, certSkipVerify bool)
	GetAutoManagedToken() auth.AutoManagedToken
}

CloudContext é a interface principal para interação com recursos AWS

func NewAwsCloudContext

func NewAwsCloudContext(region, endpoint string, availableResources *CloudContextList) (CloudContext, error)

NewAwsCloudContext cria um novo contexto de cloud para interação com recursos AWS

type CloudContextList

type CloudContextList []ContextType

type CloudContextObject

type CloudContextObject struct {
	// contains filtered or unexported fields
}

func (*CloudContextObject) GetAutoManagedToken

func (c *CloudContextObject) GetAutoManagedToken() auth.AutoManagedToken

func (*CloudContextObject) GetParameterValue

func (c *CloudContextObject) GetParameterValue(parameterName string, withDecryption bool) (interface{}, error)

func (*CloudContextObject) GetS3ObjectValue

func (c *CloudContextObject) GetS3ObjectValue(bucketName, keyName string) (interface{}, error)

func (*CloudContextObject) GetSecretValue

func (c *CloudContextObject) GetSecretValue(secretName string, secretType SecretType) (interface{}, error)

func (*CloudContextObject) NewAutoManagedToken

func (c *CloudContextObject) NewAutoManagedToken(url, clientId, clientSecret string, certSkipVerify bool)

type CloudContextType

type CloudContextType int

type ContextType

type ContextType int

type SecretType

type SecretType string

Jump to

Keyboard shortcuts

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