Documentation ¶
Index ¶
- func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword string) error
- type Audit
- type AuthProviderSettings
- type AuthbasicService
- type AuthbearerService
- type Events
- type FrontendService
- type Gateway
- type GraphService
- type IdmService
- type InsecureProxyOIDC
- type InsecureProxyService
- type InsecureService
- type LdapBasedService
- type LdapSettings
- type Nats
- type Notifications
- type OcisConfig
- type Search
- type ServiceUserPasswordsSettings
- type Sharing
- type StorageRegistry
- type StorageUsers
- type ThumbnailService
- type ThumbnailSettings
- type TokenManager
- type UsersAndGroupsService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfig ¶
CreateConfig creates a config file with random passwords at configPath
Types ¶
type AuthProviderSettings ¶
type AuthProviderSettings struct {
Oidc InsecureService
}
type AuthbasicService ¶
type AuthbasicService struct {
AuthProviders LdapBasedService `yaml:"auth_providers"`
}
type AuthbearerService ¶
type AuthbearerService struct {
AuthProviders AuthProviderSettings `yaml:"auth_providers"`
}
type FrontendService ¶
type FrontendService struct {
Archiver InsecureService
}
type Gateway ¶
type Gateway struct {
StorageRegistry StorageRegistry `yaml:"storage_registry"`
}
type GraphService ¶
type GraphService struct { Events Events Spaces InsecureService Identity LdapBasedService }
type IdmService ¶
type IdmService struct {
ServiceUserPasswords ServiceUserPasswordsSettings `yaml:"service_user_passwords"`
}
type InsecureProxyOIDC ¶
type InsecureProxyOIDC struct {
Insecure bool `yaml:"insecure"`
}
type InsecureProxyService ¶
type InsecureProxyService struct { OIDC InsecureProxyOIDC `yaml:"oidc"` InsecureBackends bool `yaml:"insecure_backends"` }
type InsecureService ¶
type InsecureService struct {
Insecure bool
}
type LdapBasedService ¶
type LdapBasedService struct {
Ldap LdapSettings
}
type LdapSettings ¶
type LdapSettings struct {
BindPassword string `yaml:"bind_password"`
}
type Nats ¶
type Nats struct { // The nats config has a field called nats Nats struct { TLSSkipVerifyClientCert bool `yaml:"tls_skip_verify_client_cert"` } }
type Notifications ¶
type Notifications struct {
Notifications struct{ Events Events } // The notifications config has a field called notifications
}
type OcisConfig ¶
type OcisConfig struct { TokenManager TokenManager `yaml:"token_manager"` MachineAuthAPIKey string `yaml:"machine_auth_api_key"` SystemUserAPIKey string `yaml:"system_user_api_key"` TransferSecret string `yaml:"transfer_secret"` SystemUserID string `yaml:"system_user_id"` AdminUserID string `yaml:"admin_user_id"` Graph GraphService Idp LdapBasedService Idm IdmService Proxy InsecureProxyService Frontend FrontendService AuthBasic AuthbasicService `yaml:"auth_basic"` AuthBearer AuthbearerService `yaml:"auth_bearer"` Users UsersAndGroupsService Groups UsersAndGroupsService Ocdav InsecureService Thumbnails ThumbnailService Search Search Audit Audit Sharing Sharing StorageUsers StorageUsers `yaml:"storage_users"` Notifications Notifications Nats Nats Gateway Gateway }
TODO: use the oCIS config struct instead of this custom struct We can't use it right now, because it would need "omitempty" on all elements, in order to produce a slim config file with `ocis init`. We can't just add these "omitempty" tags, since we want to generate full example configuration files with that struct, too. Proposed solution to get rid of this temporary solution: - use the oCIS config struct - set the needed values like below - marshal it to yaml - unmarshal it into yaml.Node - recurse through the nodes and delete empty / default ones - marshal it to yaml
type StorageRegistry ¶
type StorageRegistry struct {
StorageUsersMountID string `yaml:"storage_users_mount_id"`
}
type StorageUsers ¶
type ThumbnailService ¶
type ThumbnailService struct {
Thumbnail ThumbnailSettings
}
type ThumbnailSettings ¶
type TokenManager ¶
type TokenManager struct {
JWTSecret string `yaml:"jwt_secret"`
}
type UsersAndGroupsService ¶
type UsersAndGroupsService struct {
Drivers LdapBasedService
}
Click to show internal directories.
Click to hide internal directories.