Documentation
¶
Index ¶
- Constants
- type CloudContext
- type CloudContextList
- type CloudContextObject
- func (c *CloudContextObject) GetAutoManagedToken() auth.AutoManagedToken
- func (c *CloudContextObject) GetParameterValue(parameterName string, withDecryption bool) (interface{}, error)
- func (c *CloudContextObject) GetS3ObjectValue(bucketName, keyName string) (interface{}, error)
- func (c *CloudContextObject) GetSecretValue(secretName string, secretType SecretType) (interface{}, error)
- func (c *CloudContextObject) NewAutoManagedToken(url, clientId, clientSecret string, certSkipVerify bool)
- type CloudContextType
- type ContextType
- type SecretType
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
Click to show internal directories.
Click to hide internal directories.