init

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfig

func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword string) error

CreateConfig creates a config file with random passwords at configPath

Types

type Audit

type Audit struct {
	Events Events
}

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 Events

type Events struct {
	TLSInsecure bool `yaml:"tls_insecure"`
}

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 Search struct {
	Events Events
}

type ServiceUserPasswordsSettings

type ServiceUserPasswordsSettings struct {
	AdminPassword string `yaml:"admin_password"`
	IdmPassword   string `yaml:"idm_password"`
	RevaPassword  string `yaml:"reva_password"`
	IdpPassword   string `yaml:"idp_password"`
}

type Sharing

type Sharing struct {
	Events Events
}

type StorageRegistry

type StorageRegistry struct {
	StorageUsersMountID string `yaml:"storage_users_mount_id"`
}

type StorageUsers

type StorageUsers struct {
	Events  Events
	MountID string `yaml:"mount_id"`
}

type ThumbnailService

type ThumbnailService struct {
	Thumbnail ThumbnailSettings
}

type ThumbnailSettings

type ThumbnailSettings struct {
	TransferSecret      string `yaml:"transfer_secret"`
	WebdavAllowInsecure bool   `yaml:"webdav_allow_insecure"`
	Cs3AllowInsecure    bool   `yaml:"cs3_allow_insecure"`
}

type TokenManager

type TokenManager struct {
	JWTSecret string `yaml:"jwt_secret"`
}

type UsersAndGroupsService

type UsersAndGroupsService struct {
	Drivers LdapBasedService
}

Jump to

Keyboard shortcuts

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