Documentation ¶
Index ¶
- Constants
- func GenerateEnvSpecFromCredentialSecret(s *corev1.Secret, assumeRoleDurationS3 time.Duration) ([]corev1.EnvVar, error)
- func GenerateFullRepoPath(locPrefix, repoPathPrefix string) string
- func GetMapForLocationValues(locType repositoryserver.LocType, ...) map[string][]byte
- func KopiaStorageArgs(params *StorageCommandParams) (logsafe.Cmd, error)
- func ResolveS3Endpoint(endpoint string) string
- type StorageCommandParams
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 ¶
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 ¶
ResolveS3Endpoint removes the trailing slash and protocol from provided endpoint and returns the absolute endpoint string
Types ¶
type StorageCommandParams ¶
Click to show internal directories.
Click to hide internal directories.