params

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterConfig

type AdapterConfig interface {
	BlockstoreType() string
	BlockstoreLocalParams() (Local, error)
	BlockstoreS3Params() (S3, error)
	BlockstoreGSParams() (GS, error)
	BlockstoreAzureParams() (Azure, error)
}

AdapterConfig configures a block adapter.

type Azure

type Azure struct {
	StorageAccount     string
	StorageAccessKey   string
	TryTimeout         time.Duration
	PreSignedExpiry    time.Duration
	DisablePreSigned   bool
	DisablePreSignedUI bool
	// TestEndpointURL - For testing purposes, provide a custom URL to override the default URL template
	TestEndpointURL string
	// Domain - Azure cloud domain
	Domain string
}

type GS

type GS struct {
	CredentialsFile                      string
	CredentialsJSON                      string
	PreSignedExpiry                      time.Duration
	DisablePreSigned                     bool
	DisablePreSignedUI                   bool
	ServerSideEncryptionCustomerSupplied []byte
	ServerSideEncryptionKmsKeyID         string
}

type Local

type Local struct {
	Path                    string
	ImportEnabled           bool
	ImportHidden            bool
	AllowedExternalPrefixes []string
}

type Mem

type Mem struct{}

type S3

type S3 struct {
	Region                        string
	Profile                       string
	CredentialsFile               string
	Credentials                   S3Credentials
	MaxRetries                    int
	Endpoint                      string
	ForcePathStyle                bool
	DiscoverBucketRegion          bool
	SkipVerifyCertificateTestOnly bool
	ServerSideEncryption          string
	ServerSideEncryptionKmsKeyID  string
	PreSignedExpiry               time.Duration
	DisablePreSigned              bool
	DisablePreSignedUI            bool
	DisablePreSignedMultipart     bool
	ClientLogRetries              bool
	ClientLogRequest              bool
	WebIdentity                   *S3WebIdentity
}

type S3Credentials added in v0.110.0

type S3Credentials struct {
	AccessKeyID     string
	SecretAccessKey string
	SessionToken    string
}

type S3WebIdentity added in v0.106.2

type S3WebIdentity struct {
	// SessionDuration is the duration WebIdentityRoleProvider will
	// request for a token for its assumed role.  It can be 1 hour or
	// more, but its maximum is configurable on AWS.
	SessionDuration time.Duration

	// SessionExpiryWindow is the time before credentials expiry that
	// the WebIdentityRoleProvider may request a fresh token.
	SessionExpiryWindow time.Duration
}

S3WebIdentity contains parameters for customizing S3 web identity. This is also used when configuring S3 with IRSA in EKS (Kubernetes).

Jump to

Keyboard shortcuts

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