s3

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 1 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_REGION"
	S3Endpoint             = "S3_ENDPOINT"
	S3UseHttps             = "S3_USE_HTTPS"
	S3VerifySSL            = "S3_VERIFY_SSL"
	KFServingAPIGroupName  = "serving.kubeflow.org"
	SeldonAPIGroupName     = "machinelearning.seldon.io"
)

Variables

View Source
var (
	S3SecretEndpointAnnotation = "/" + "s3-endpoint"
	S3SecretRegionAnnotation   = "/" + "s3-region"
	S3SecretSSLAnnotation      = "/" + "s3-verifyssl"
	S3SecretHttpsAnnotation    = "/" + "s3-usehttps"
)

prefix to annotation could be SeldonAPIGroupName or KFServingAPIGroupName

Functions

func BuildEnvFromAnnotations

func BuildEnvFromAnnotations(secret *v1.Secret, s3Config *S3Config, prefix string, fallbackPrefix string) []v1.EnvVar

func BuildSecretEnvs

func BuildSecretEnvs(secret *v1.Secret, 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"`
}

Jump to

Keyboard shortcuts

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