restic

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Overview

Package restic deals with configuring restic plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupStorageLocation

type BackupStorageLocation struct {
	Provider string `hcl:"provider"`
	Bucket   string `hcl:"bucket"`
	Name     string `hcl:"name,optional"`
	Region   string `hcl:"region,optional"`
}

BackupStorageLocation configures the backup storage location.

type Configuration

type Configuration struct {
	Credentials             string                 `hcl:"credentials"`
	RequireVolumeAnnotation bool                   `hcl:"require_volume_annotation,optional"`
	BackupStorageLocation   *BackupStorageLocation `hcl:"backup_storage_location,block"`
	Tolerations             []util.Toleration      `hcl:"tolerations,block"`
	TolerationsRaw          string
}

Configuration contains Restic specific parameters.

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns the default restic configuration.

func (*Configuration) Validate

func (c *Configuration) Validate() hcl.Diagnostics

Validate validates the restic configuration.

func (*Configuration) Values

func (c *Configuration) Values() (string, error)

Values returns plugin-specific value for Velero Helm chart.

Jump to

Keyboard shortcuts

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