config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigKeyGCPServiceAccountKey is the config name for Google cloud platform service account key
	ConfigKeyGCPServiceAccountKey = "serviceAccountKey"

	// ConfigKeyGCSBucket is the config name for Google cloud storage bucket
	ConfigKeyGCSBucket = "bucket"
)

Variables

View Source
var (
	ErrEmptyConfig = errors.New("missing or empty config")
)

Functions

func RequiredConfigErr

func RequiredConfigErr(name string) error

Types

type Config

type Config struct {
	GoogleCloudStorageBucket     string
	GoogleCloudServiceAccountKey string
}

Config represents configuration needed for Google cloud storage

func ParseGlobalConfig

func ParseGlobalConfig(ctx context.Context, cfg map[string]string) (Config, error)

ParseGlobalConfig attempts to parse plugins.Config into a Config struct

Jump to

Keyboard shortcuts

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