config

package
v1.16.26 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug                  bool          `envconfig:"DEBUG" default:"false"`
	NatsURI                string        `envconfig:"NATS_URI" default:"nats://localhost:4222"`
	NatsSecure             bool          `envconfig:"NATS_SECURE" default:"false"`
	NatsSkipVerify         bool          `envconfig:"NATS_SKIP_VERIFY" default:"false"`
	NatsCertFile           string        `envconfig:"NATS_CERT_FILE" default:""`
	NatsKeyFile            string        `envconfig:"NATS_KEY_FILE" default:""`
	NatsCAFile             string        `envconfig:"NATS_CA_FILE" default:""`
	NatsConnectTimeout     time.Duration `envconfig:"NATS_CONNECT_TIMEOUT" default:"5s"`
	Namespace              string        `envconfig:"NAMESPACE" default:"testkube"`
	ExecutionId            string        `envconfig:"ID" default:""`
	HttpAddress            string        `envconfig:"HTTP_ADDRESS" default:":8080"`
	GrpcAddress            string        `envconfig:"GRPC_ADDRESS" default:":9090"`
	KVBucketName           string        `envconfig:"KV_BUCKET_NAME" default:"logsState"`
	StorageEndpoint        string        `envconfig:"STORAGE_ENDPOINT" default:"testkube-minio-service-testkube:9000"`
	StorageLogsBucket      string        `envconfig:"STORAGE_LOGS_BUCKET" default:"testkube-new-logs"`
	StorageAccessKeyID     string        `envconfig:"STORAGE_ACCESSKEYID" default:"minio"`
	StorageSecretAccessKey string        `envconfig:"STORAGE_SECRETACCESSKEY" default:"minio123"`
	StorageRegion          string        `envconfig:"STORAGE_REGION" default:""`
	StorageToken           string        `envconfig:"STORAGE_TOKEN" default:""`
	StorageSSL             bool          `envconfig:"STORAGE_SSL" default:"false"`
	StorageSkipVerify      bool          `envconfig:"STORAGE_SKIP_VERIFY" default:"false"`
	StorageCertFile        string        `envconfig:"STORAGE_CERT_FILE" default:""`
	StorageKeyFile         string        `envconfig:"STORAGE_KEY_FILE" default:""`
	StorageCAFile          string        `envconfig:"STORAGE_CA_FILE" default:""`
}

func Get

func Get() (*Config, error)

Jump to

Keyboard shortcuts

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