configs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCPConfiguration

type GCPConfiguration struct {
	GCS GCSConfiguration `yaml:"gcs"`
}

func (*GCPConfiguration) GetType

func (c *GCPConfiguration) GetType() StorageType

func (*GCPConfiguration) LoadConfiguration

func (c *GCPConfiguration) LoadConfiguration()

type GCPSecretConfiguration

type GCPSecretConfiguration struct {
	Id   string `yaml:"id,omitempty"`
	Name string `yaml:"name"`
}

type GCSConfiguration

type GCSConfiguration struct {
	BucketName string                 `yaml:"bucket-name"`
	Secret     GCPSecretConfiguration `yaml:"secret"`
}

type StorageConfiguration

type StorageConfiguration interface {
	LoadConfiguration()
	GetType() StorageType
}

type StorageType

type StorageType string
const (
	GCS StorageType = "GCS"
	S3              = "S3"
)

Jump to

Keyboard shortcuts

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