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

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