config

package
v0.0.0-...-499b85e Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package config should be moved to internal

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bound

type Bound struct {
	Lower, Upper int64
}

Bound defines a lower and upper bound.

type CS3

type CS3 struct {
	ProviderAddr string
	DataURL      string
	DataPrefix   string
	JWTSecret    string
}

CS3 is the cs3 implementation of the storage.

type Config

type Config struct {
	Repo        Repo
	Index       Index
	ServiceUser config.ServiceUser
}

Config merges all Account config parameters.

func New

func New() *Config

New returns a new config.

type Disk

type Disk struct {
	Path string
}

Disk is the local disk implementation of the storage.

type Index

type Index struct {
	UID, GID Bound
}

Index defines config for indexes.

type Repo

type Repo struct {
	Disk Disk
	CS3  CS3
}

Repo defines which storage implementation is to be used.

Jump to

Keyboard shortcuts

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