Versions in this module Expand all Collapse all v0 v0.0.1 Nov 23, 2020 Changes in this version + const APISubSys + const AccessKey + const AuditWebhookSubSys + const CacheSubSys + const Comment + const CompressionSubSys + const CredentialsSubSys + const Default + const DefaultComment + const Enable + const EnableOff + const EnableOn + const EnvAccessKey + const EnvAccessKeyOld + const EnvArgs + const EnvBrowser + const EnvCertPassword + const EnvDNSWebhook + const EnvDomain + const EnvEndpoints + const EnvFSOSync + const EnvPrefix + const EnvPublicIPs + const EnvRegion + const EnvRegionName + const EnvSecretKey + const EnvSecretKeyOld + const EnvUpdate + const EnvWordDelimiter + const EnvWorm + const EtcdSubSys + const HealSubSys + const IdentityLDAPSubSys + const IdentityOpenIDSubSys + const KmsKesSubSys + const KmsVaultSubSys + const KvComment + const KvDoubleQuote + const KvNewline + const KvSeparator + const KvSingleQuote + const KvSpaceSeparator + const LoggerWebhookSubSys + const NotifyAMQPSubSys + const NotifyESSubSys + const NotifyKafkaSubSys + const NotifyMQTTSubSys + const NotifyMySQLSubSys + const NotifyNATSSubSys + const NotifyNSQSubSys + const NotifyPostgresSubSys + const NotifyRedisSubSys + const NotifyWebhookSubSys + const PolicyOPASubSys + const RegionName + const RegionSubSys + const SecretKey + const StorageClassSubSys + const SubSystemSeparator + const ValueSeparator + var DefaultCredentialKVS = KVS + var DefaultKVS map[string]KVS + var DefaultRegionKVS = KVS + var ErrCertsAndHTTPEndpoints = newErrFn(...) + var ErrEnvCredentialsMissingDistributed = newErrFn("Credentials missing", "Please set your credentials in the environment", ...) + var ErrEnvCredentialsMissingGateway = newErrFn("Credentials missing", "Please set your credentials in the environment", ...) + var ErrInvalidAddressFlag = newErrFn("--address input is invalid", "Please check --address parameter", ...) + var ErrInvalidBrowserValue = newErrFn("Invalid browser value", "Please check the passed value", ...) + var ErrInvalidCacheAfter = newErrFn("Invalid cache after value", "Please check the passed value", ...) + var ErrInvalidCacheCommitValue = newErrFn("Invalid cache commit value", "Please check the passed value", ...) + var ErrInvalidCacheDrivesValue = newErrFn("Invalid cache drive value", "Please check the value in this ENV variable", ...) + var ErrInvalidCacheEncryptionKey = newErrFn("Invalid cache encryption master key value", "Please check the passed value", ...) + var ErrInvalidCacheExcludesValue = newErrFn("Invalid cache excludes value", "Please check the passed value", ...) + var ErrInvalidCacheExpiryValue = newErrFn("Invalid cache expiry value", "Please check the passed value", ...) + var ErrInvalidCacheQuota = newErrFn("Invalid cache quota value", "Please check the passed value", ...) + var ErrInvalidCacheRange = newErrFn("Invalid cache range value", "Please check the passed value", ...) + var ErrInvalidCacheWatermarkHigh = newErrFn("Invalid cache high watermark value", "Please check the passed value", ...) + var ErrInvalidCacheWatermarkLow = newErrFn("Invalid cache low watermark value", "Please check the passed value", ...) + var ErrInvalidCompressionIncludesValue = newErrFn("Invalid compression include value", "Please check the passed value", ...) + var ErrInvalidCredentials = newErrFn("Invalid credentials", "Please provide correct credentials", ...) + var ErrInvalidCredentialsBackendEncrypted = newErrFn("Invalid credentials", ...) + var ErrInvalidDomainValue = newErrFn("Invalid domain value", "Please check the passed value", ...) + var ErrInvalidErasureEndpoints = newErrFn("Invalid endpoint(s) in erasure mode", ...) + var ErrInvalidErasureSetSize = newErrFn("Invalid erasure set size", "Please check the passed value", ...) + var ErrInvalidFSEndpoint = newErrFn("Invalid endpoint for standalone FS mode", "Please check the FS endpoint", ...) + var ErrInvalidFSOSyncValue = newErrFn("Invalid O_SYNC value", "Please check the passed value", ...) + var ErrInvalidGWSSEEnvValue = newErrFn("Invalid gateway SSE configuration", "", ...) + var ErrInvalidGWSSEValue = newErrFn("Invalid gateway SSE value", "Please check the passed value", ...) + var ErrInvalidNumberOfErasureEndpoints = newErrFn("Invalid total number of endpoints for erasure mode", ...) + var ErrInvalidRotatingCredentialsBackendEncrypted = newErrFn("Invalid rotating credentials", ...) + var ErrInvalidWormValue = newErrFn("Invalid WORM value", "Please check the passed value", ...) + var ErrMissingCredentialsBackendEncrypted = newErrFn("Credentials missing", "Please set your credentials in the environment", ...) + var ErrNoCertsAndHTTPSEndpoints = newErrFn(...) + var ErrPortAccess = newErrFn("Unable to use specified port", ...) + var ErrPortAlreadyInUse = newErrFn("Port is already in use", ...) + var ErrSSLNoPassword = newErrFn("Missing TLS password", ...) + var ErrSSLUnexpectedData = newErrFn("Invalid TLS certificate", "Please check your certificate", "") + var ErrSSLUnexpectedError = newErrFn("Invalid TLS certificate", "Please check the content of your certificate data", ...) + var ErrSSLWrongPassword = newErrFn("Unable to decrypt the private key using the provided password", ...) + var ErrStorageClassValue = newErrFn("Invalid storage class value", "Please check the value", ...) + var ErrUnableToWriteInBackend = newErrFn("Unable to write to the backend", ...) + var ErrUnexpectedBackendVersion = newErrFn("Backend version seems to be too recent", ...) + var ErrUnexpectedError = newErrFn("Unexpected error", "Please contact MinIO at https://slack.min.io", "") + var ErrUnsupportedBackend = newErrFn("Unable to write to the backend", "Please ensure your disk supports O_DIRECT", ...) + var HelpSubSysMap map[string]HelpKVS + var Logger = struct{ ... } + var RegionHelp = HelpKVS + var SubSystems = set.CreateStringSet([]string{ ... }) + var SubSystemsSingleTargets = set.CreateStringSet([]string{ ... }) + func CertificateText(cert *x509.Certificate) string + func CheckValidKeys(subSys string, kv KVS, validKVS KVS) error + func Errorf(format string, a ...interface{}) error + func FmtError(introMsg string, err error, jsonFlag bool) string + func FormatBool(b bool) string + func LoadX509KeyPair(certFile, keyFile string) (tls.Certificate, error) + func LookupCreds(kv KVS) (auth.Credentials, error) + func LookupRegion(kv KVS) (string, error) + func LookupWorm() (bool, error) + func NewConfigWriteTo(cfg Config, key string) io.WriterTo + func ParseBool(str string) (bool, error) + func ParsePublicCertFile(certFile string) (x509Certs []*x509.Certificate, err error) + func RegisterDefaultKVS(kvsMap map[string]KVS) + func RegisterHelpSubSys(helpKVSMap map[string]HelpKVS) + func SetCredentials(c Config, cred auth.Credentials) + func SetRegion(c Config, name string) + type BoolFlag bool + func ParseBoolFlag(s string) (bf BoolFlag, err error) + func (bf *BoolFlag) UnmarshalJSON(data []byte) (err error) + func (bf BoolFlag) MarshalJSON() ([]byte, error) + func (bf BoolFlag) String() string + type Config map[string]map[string]KVS + func New() Config + func (c Config) Clone() Config + func (c Config) DelFrom(r io.Reader) error + func (c Config) DelKVS(s string) error + func (c Config) GetKVS(s string, defaultKVS map[string]KVS) (Targets, error) + func (c Config) Merge() Config + func (c Config) ReadFrom(r io.Reader) (int64, error) + func (c Config) SetKVS(s string, defaultKVS map[string]KVS) error + type Err struct + func ErrorToErr(err error) Err + func (u Err) Clone() Err + func (u Err) Error() string + func (u Err) Hint(m string, args ...interface{}) Err + func (u Err) Msg(m string, args ...interface{}) Err + type ErrFn func(err error) Err + type Error struct + Err string + func (e Error) Error() string + type HelpKV struct + Description string + Key string + MultipleTargets bool + Optional bool + Type string + type HelpKVS []HelpKV + func (hkvs HelpKVS) Lookup(key string) (HelpKV, bool) + type KV struct + Key string + Value string + type KVS []KV + func (kvs *KVS) Delete(key string) + func (kvs *KVS) Set(key, value string) + func (kvs KVS) Empty() bool + func (kvs KVS) Get(key string) string + func (kvs KVS) Keys() []string + func (kvs KVS) Lookup(key string) (string, bool) + func (kvs KVS) String() string + type Target struct + KVS KVS + SubSystem string + type Targets []Target