repositoryserver

package
v0.113.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package repositoryserver validates the secret credentials for all location profiles.

Index

Constants

View Source
const (
	LocTypeS3          LocType = "s3"
	LocTypes3Compliant LocType = "s3Compliant"
	LocTypeGCS         LocType = "gcs"
	LocTypeAzure       LocType = "azure"
	LocTypeFilestore   LocType = "filestore"

	// Location represents the storage location secret type for kopia repository server
	Location corev1.SecretType = "secrets.kanister.io/storage-location"
	// RepositoryPasswordSecret represents the kopia repository passowrd secret type
	RepositoryPasswordSecret corev1.SecretType = "secrets.kanister.io/kopia-repository/password"
	// AdminCredentialsSecret represents the kopia server admin credentials secret type
	AdminCredentialsSecret corev1.SecretType = "secrets.kanister.io/kopia-repository/serveradmin"
)
View Source
const (
	// Location secret keys
	BucketKey        = "bucket"
	EndpointKey      = "endpoint"
	PrefixKey        = "prefix"
	RegionKey        = "region"
	SkipSSLVerifyKey = "skipSSLVerify"
	TypeKey          = "type"
	// Location secret key to be used only for filestore location type
	ClaimNameKey = "claimName"

	// Kopia Repository Server secret keys
	RepoPasswordKey  = "repo-password"
	AdminUsernameKey = "username"
	AdminPasswordKey = "password"
)

Variables

This section is empty.

Functions

func NewAWSLocation

func NewAWSLocation(secret *corev1.Secret) *aws

func NewAzureLocation

func NewAzureLocation(secret *corev1.Secret) *azure

func NewFileStoreLocation

func NewFileStoreLocation(secret *corev1.Secret) *fileStore

func NewGCPLocation

func NewGCPLocation(secret *corev1.Secret) *gcp

func NewRepoPassword

func NewRepoPassword(secret *corev1.Secret) *repositoryPassword

func NewRepositoryServerAdminCredentials

func NewRepositoryServerAdminCredentials(secret *corev1.Secret) *repositoryServerAdminCredentials

func NewRepositoryServerUserAccessCredentials

func NewRepositoryServerUserAccessCredentials(secret *corev1.Secret) *repositoryServerUserAccessCredentials

func NewS3CompliantLocation

func NewS3CompliantLocation(secret *corev1.Secret) *s3Compliant

Types

type LocType

type LocType string

type Secret

type Secret interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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