s3

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AWSAccessKeyId         = "AWS_ACCESS_KEY_ID"
	AWSSecretAccessKey     = "AWS_SECRET_ACCESS_KEY"
	AWSAccessKeyIdName     = "awsAccessKeyID"
	AWSSecretAccessKeyName = "awsSecretAccessKey"
	AWSEndpointUrl         = "AWS_ENDPOINT_URL"
	AWSRegion              = "AWS_DEFAULT_REGION"
	S3Endpoint             = "S3_ENDPOINT"
	S3UseHttps             = "S3_USE_HTTPS"
	S3VerifySSL            = "S3_VERIFY_SSL"
	S3UseVirtualBucket     = "S3_USER_VIRTUAL_BUCKET"
	AWSAnonymousCredential = "awsAnonymousCredential"
	AWSCABundle            = "AWS_CA_BUNDLE"
)

For a quick reference about AWS ENV variables: AWS Cli: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html Boto: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html#using-environment-variables

Variables

View Source
var (
	InferenceServiceS3SecretEndpointAnnotation   = constants.KServeAPIGroupName + "/" + "s3-endpoint"
	InferenceServiceS3SecretRegionAnnotation     = constants.KServeAPIGroupName + "/" + "s3-region"
	InferenceServiceS3SecretSSLAnnotation        = constants.KServeAPIGroupName + "/" + "s3-verifyssl"
	InferenceServiceS3SecretHttpsAnnotation      = constants.KServeAPIGroupName + "/" + "s3-usehttps"
	InferenceServiceS3UseVirtualBucketAnnotation = constants.KServeAPIGroupName + "/" + "s3-usevirtualbucket"
	InferenceServiceS3UseAnonymousCredential     = constants.KServeAPIGroupName + "/" + "s3-useanoncredential"
	InferenceServiceS3CABundleAnnotation         = constants.KServeAPIGroupName + "/" + "s3-cabundle"
)

Functions

func BuildS3EnvVars added in v0.10.0

func BuildS3EnvVars(annotations map[string]string, s3Config *S3Config) []v1.EnvVar

func BuildSecretEnvs

func BuildSecretEnvs(secret *v1.Secret, s3Config *S3Config) []v1.EnvVar

func BuildServiceAccountEnvs added in v0.10.0

func BuildServiceAccountEnvs(serviceAccount *v1.ServiceAccount, s3Config *S3Config) []v1.EnvVar

Types

type S3Config

type S3Config struct {
	S3AccessKeyIDName        string `json:"s3AccessKeyIDName,omitempty"`
	S3SecretAccessKeyName    string `json:"s3SecretAccessKeyName,omitempty"`
	S3Endpoint               string `json:"s3Endpoint,omitempty"`
	S3UseHttps               string `json:"s3UseHttps,omitempty"`
	S3Region                 string `json:"s3Region,omitempty"`
	S3VerifySSL              string `json:"s3VerifySSL,omitempty"`
	S3UseVirtualBucket       string `json:"s3UseVirtualBucket,omitempty"`
	S3UseAnonymousCredential string `json:"s3UseAnonymousCredential,omitempty"`
	S3CABundle               string `json:"s3CABundle,omitempty"`
}

Jump to

Keyboard shortcuts

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