flags

package
v0.0.0-...-4fefc29 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataStorageUnknown  DataStorage      = "unknown"
	DataStorageS3       DataStorage      = "s3"
	DataStorageFile     DataStorage      = "file"
	S3CredentialUnknown S3CredentialType = "unknown"
	S3CredentialStatic  S3CredentialType = "static"
	S3CredentialIAM     S3CredentialType = "iam"
)
View Source
const (
	BeaconHttpFlagName              = "l1-beacon-http"
	BeaconHttpClientTimeoutFlagName = "l1-beacon-client-timeout"
	BeaconHttpEnforceJson           = "l1-beacon-enforce-json"
	DataStoreFlagName               = "data-store"
	S3CredentialTypeFlagName        = "s3-credential-type"
	S3EndpointFlagName              = "s3-endpoint"
	S3EndpointHttpsFlagName         = "s3-endpoint-https"
	S3CompressFlagName              = "s3-compress"
	S3AccessKeyFlagName             = "s3-access-key"
	S3SecretAccessKeyFlagName       = "s3-secret-access-key"
	S3BucketFlagName                = "s3-bucket"
	S3PathFlagName                  = "s3-path"
	FileStorageDirectoryFlagName    = "file-directory"
)

Variables

This section is empty.

Functions

func CLIFlags

func CLIFlags(envPrefix string) []cli.Flag

Types

type BeaconConfig

type BeaconConfig struct {
	BeaconURL           string
	BeaconClientTimeout time.Duration
	EnforceJSON         bool
}

func NewBeaconConfig

func NewBeaconConfig(cliCtx *cli.Context) BeaconConfig

func (BeaconConfig) Check

func (c BeaconConfig) Check() error

type DataStorage

type DataStorage string

type S3Config

type S3Config struct {
	Endpoint string
	UseHttps bool
	Bucket   string
	Path     string

	S3CredentialType S3CredentialType
	AccessKey        string
	SecretAccessKey  string
	Compress         bool
}

type S3CredentialType

type S3CredentialType string

type StorageConfig

type StorageConfig struct {
	DataStorageType      DataStorage
	S3Config             S3Config
	FileStorageDirectory string
}

func NewStorageConfig

func NewStorageConfig(cliCtx *cli.Context) StorageConfig

func (StorageConfig) Check

func (c StorageConfig) Check() error

Jump to

Keyboard shortcuts

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