add missing type comments

This commit is contained in:
David Christofas
2020-01-28 14:58:07 +01:00
parent 11816f75ab
commit 906a7a541b
+24
View File
@@ -15,11 +15,13 @@ type Debug struct {
Zpages bool Zpages bool
} }
// Gateway defines the available gateway configuration.
type Gateway struct { type Gateway struct {
Port Port
CommitShareToStorageGrant bool CommitShareToStorageGrant bool
} }
// Port defines the available port configuration.
type Port struct { type Port struct {
// MaxCPUs can be a number or a percentage // MaxCPUs can be a number or a percentage
MaxCPUs string MaxCPUs string
@@ -40,14 +42,20 @@ type Port struct {
// Services and Protocol will be ignored if this is used // Services and Protocol will be ignored if this is used
Config map[string]interface{} Config map[string]interface{}
} }
// Users defines the available users configuration.
type Users struct { type Users struct {
Port Port
Driver string Driver string
JSON string JSON string
} }
// PathWrapperContext defines the available PathWrapperContext configuration.
type PathWrapperContext struct { type PathWrapperContext struct {
Prefix string Prefix string
} }
// StoragePort defines the available storage configuration.
type StoragePort struct { type StoragePort struct {
Port Port
Driver string Driver string
@@ -63,6 +71,8 @@ type StoragePort struct {
Prefix string Prefix string
TempFolder string TempFolder string
} }
// StorageConfig combines all available storage configuration parts.
type StorageConfig struct { type StorageConfig struct {
EOS StorageEOS EOS StorageEOS
Local StorageLocal Local StorageLocal
@@ -70,6 +80,8 @@ type StorageConfig struct {
S3 StorageS3 S3 StorageS3
// TODO checksums ... figure out what that is supposed to do // TODO checksums ... figure out what that is supposed to do
} }
// StorageEOS defines the available EOS storage configuration.
type StorageEOS struct { type StorageEOS struct {
// Namespace for metadata operations // Namespace for metadata operations
Namespace string Namespace string
@@ -117,12 +129,18 @@ type StorageEOS struct {
// SingleUsername is the username to use when SingleUserMode is enabled // SingleUsername is the username to use when SingleUserMode is enabled
SingleUsername string SingleUsername string
} }
// StorageLocal defines the available local storage configuration.
type StorageLocal struct { type StorageLocal struct {
Root string Root string
} }
// StorageOwnCloud defines the available ownCloud storage configuration.
type StorageOwnCloud struct { type StorageOwnCloud struct {
Datadirectory string Datadirectory string
} }
// StorageS3 defines the available S3 storage configuration.
type StorageS3 struct { type StorageS3 struct {
Region string Region string
AccessKey string AccessKey string
@@ -131,11 +149,15 @@ type StorageS3 struct {
Bucket string Bucket string
Prefix string Prefix string
} }
// OIDC defines the available OpenID Connect configuration.
type OIDC struct { type OIDC struct {
Issuer string Issuer string
Insecure bool Insecure bool
IDClaim string IDClaim string
} }
// LDAP defines the available ldap configuration.
type LDAP struct { type LDAP struct {
Hostname string Hostname string
Port int Port int
@@ -147,6 +169,8 @@ type LDAP struct {
IDP string IDP string
Schema LDAPSchema Schema LDAPSchema
} }
// LDAPSchema defines the available ldap schema configuration.
type LDAPSchema struct { type LDAPSchema struct {
UID string UID string
Mail string Mail string