cloud

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Key names in the communal credentials for Azure blob storage endpoints.
	AzureAccountName           = "accountName"
	AzureBlobEndpoint          = "blobEndpoint"
	AzureAccountKey            = "accountKey"
	AzureSharedAccessSignature = "sharedAccessSignature"
	AzureDefaultProtocol       = "HTTPS"
)
View Source
const (
	// The name of the key in the communal credential secret that holds the access key
	CommunalAccessKeyName = "accesskey"
	// The name of the key in the communal credential secret that holds the secret key
	CommunalSecretKeyName = "secretkey"
	// The name of the key in the sseCustomerKey secret that holds the client key for S3 access
	// if using SSE-C encryption
	S3SseCustomerKeyName = "clientKey"
)

Variables

This section is empty.

Functions

func IsBucketNotExistError

func IsBucketNotExistError(op string) bool

IsBucketNotExistError returns true if the given message text has the message about a bad bucket

func IsEndpointBadError

func IsEndpointBadError(op string) bool

IsEndpointBadError returns true if the given message text has the message aboud a bad endpoint

func ReadFromGSM added in v1.11.2

func ReadFromGSM(ctx context.Context, secName string) (map[string]string, error)

ReadFromGSM will fetch a secret from Google Secret Manager (GSM)

Types

type AzureCredential

type AzureCredential struct {
	// At least one of the next two need to be set
	AccountName  string `json:"accountName,omitempty"`
	BlobEndpoint string `json:"blobEndpoint,omitempty"` // host name with optional port (host:port)

	// Only one of the two will be set
	AccountKey            string `json:"accountKey,omitempty"`            // Access key for the account or endpoint
	SharedAccessSignature string `json:"sharedAccessSignature,omitempty"` // Access token for finer-grained access control
}

AzureCredential stores the credentials to connect to azb:// This structure must be kept in sync with the Vertica server format. You cannot add fields here unless there is a corresponding change in the engine.

type AzureEndpointConfig

type AzureEndpointConfig struct {
	AccountName            string `json:"accountName,omitempty"`
	BlobEndpoint           string `json:"blobEndpoint,omitempty"`
	Protocol               string `json:"protocol,omitempty"`
	IsMultiAccountEndpoint bool   `json:"isMultiAccountEndpoint,omitempty"`
}

AzureEndpointConfig contains config elements for a single azure endpoint. This structure must be kept insync with the Vertica server format.

Jump to

Keyboard shortcuts

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