config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// (Docker) Registry Configuration
	Registry RegistryConf `mapstructure:"registry"`

	// S3-Server Configuration
	S3 S3Conf `mapstructure:"s3"`
}

type RegistryConf

type RegistryConf struct {
	RegistryURI string `mapstructure:"uri"`
	RequireAuth string `mapstructure:"require_auth"`
	Username    string `mapstructure:"username"`
	Password    string `mapstructure:"password"`
}

type S3Conf

type S3Conf struct {
	// Enable or Disable the S3 Component
	Enabled bool `mapstructure:"enabled"`

	// S3 Endpoint of the S3 Server. For Example "play.min.io"
	Endpoint string `mapstructure:"endpoint"`

	// Access key is the user ID that uniquely identifies the S3 account
	AccessKeyID string `mapstructure:"accessKeyID"`

	// Secret key is the password to the S3 account
	SecretAccessKey string `mapstructure:"secretAccessKey"`

	// Use SSL to connect to the S3 Server
	UseSSL bool `mapstructure:"useSSL"`

	// BucketName defines the Bucket where the Signatures are stored
	BucketName string `mapstructure:"bucketName"`
}

Jump to

Keyboard shortcuts

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