credentials

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CredentialConfigKeyName     = "credentials"
	UriSchemePlaceholder        = "<scheme-placeholder>"
	StorageConfigEnvKey         = "STORAGE_CONFIG"
	StorageOverrideConfigEnvKey = "STORAGE_OVERRIDE_CONFIG"
	DefaultStorageSecretKey     = "default"
	UnsupportedStorageSpecType  = "storage type must be one of [%s]. storage type [%s] is not supported"
	MissingBucket               = "format [%s] requires a bucket but one wasn't found in storage data or parameters"
)

Variables

View Source
var (
	SupportedStorageSpecTypes = []string{"s3", "hdfs", "webhdfs"}
	StorageBucketTypes        = []string{"s3"}
)

Functions

This section is empty.

Types

type CredentialBuilder

type CredentialBuilder struct {
	// contains filtered or unexported fields
}

func NewCredentialBulder

func NewCredentialBulder(client client.Client, config *v1.ConfigMap) *CredentialBuilder

func (*CredentialBuilder) CreateSecretVolumeAndEnv

func (c *CredentialBuilder) CreateSecretVolumeAndEnv(namespace string, serviceAccountName string,
	container *v1.Container, volumes *[]v1.Volume) error

func (*CredentialBuilder) CreateStorageSpecSecretEnvs added in v0.9.0

func (c *CredentialBuilder) CreateStorageSpecSecretEnvs(namespace string, storageKey string,
	storageSecretName string, overrideParams map[string]string, container *v1.Container) error

type CredentialConfig

type CredentialConfig struct {
	S3  s3.S3Config   `json:"s3,omitempty"`
	GCS gcs.GCSConfig `json:"gcs,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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