storage

package
v0.0.0-...-cc74a71 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// DefaultFSMountPath is the mount path for the file store PVC on Kopia API server
	DefaultFSMountPath = "/mnt/data"
)

Variables

This section is empty.

Functions

func GenerateEnvSpecFromCredentialSecret

func GenerateEnvSpecFromCredentialSecret(s *corev1.Secret, assumeRoleDurationS3 time.Duration) ([]corev1.EnvVar, error)

GenerateEnvSpecFromCredentialSecret parses the secret and returns list of EnvVar based on secret type

func GenerateFullRepoPath

func GenerateFullRepoPath(locPrefix, repoPathPrefix string) string

GenerateFullRepoPath defines the manner in which a location-specific prefix string is joined with a repository-specific prefix to generate the full path for a kopia repository.

func GetMapForLocationValues

func GetMapForLocationValues(
	locType repositoryserver.LocType,
	prefix,
	region,
	bucket,
	endpoint,
	skipSSLVerify string,
) map[string][]byte

GetMapForLocationValues return a map with valid keys for different location values

func KopiaStorageArgs

func KopiaStorageArgs(params *StorageCommandParams) (logsafe.Cmd, error)

KopiaStorageArgs returns kopia command arguments for specific storage

func ResolveS3Endpoint

func ResolveS3Endpoint(endpoint string) string

ResolveS3Endpoint removes the trailing slash and protocol from provided endpoint and returns the absolute endpoint string

Types

type StorageCommandParams

type StorageCommandParams struct {
	// Common params
	Location       map[string][]byte
	RepoPathPrefix string
}

Jump to

Keyboard shortcuts

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