seed

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoogleAuthAs

func GoogleAuthAs(thelma app.ThelmaApp, appRelease terra.AppRelease) (google.Clients, error)

Types

type AgoraPermission

type AgoraPermission struct {
	User string `json:"user"`
	Role string `json:"role"`
}

type Config

type Config struct {
	Auth struct {
		Rawls struct {
			VaultPath string `default:"secret/dsde/firecloud/%s/rawls/rawls-account.json"`
			VaultKey  string `default:""`
		}
		Sam struct {
			VaultPath string `default:"secret/dsde/firecloud/%s/sam/sam-account.json"`
			VaultKey  string `default:""`
		}
		Leonardo struct {
			VaultPath string `default:"secret/dsde/firecloud/%s/leonardo/leonardo-account.json"`
			VaultKey  string `default:""`
		}
		ImportService struct {
			VaultPath string `default:"secret/dsde/firecloud/%s/import-service/import-service-account-fiab-bees"`
			VaultKey  string `default:"key.json"`
		}
		FirecloudOrch struct {
			VaultPath string `default:"secret/dsde/firecloud/%s/common/firecloud-account.json"`
			VaultKey  string `default:""`
		}
		WorkspaceManager struct {
			// WSM dev SA used for both Dev and QA BEEs, as of 7/13/2022
			VaultPath string `default:"secret/dsde/terra/kernel/dev/dev/workspace/app-sa"`
			VaultKey  string `default:"key.json"`
		}
	}
	TestUsers struct {
		Dev []TestUser
		QA  []TestUser
	}
	Agora struct {
		Methods        []agoraPayload
		Configurations []agoraPayload
		Permissions    struct {
			Dev []AgoraPermission
			QA  []AgoraPermission
		}
	}
	Elasticsearch struct {
		Service string `default:"elasticsearch-0"`
	}
	Sam struct {
		Database struct {
			Service     string `default:"sam-postgres-service"`
			Name        string `default:"sam"`
			Port        int    `default:"5432"`
			Credentials struct {
				VaultPath        string `default:"secret/dsde/firecloud/%s/sam/secrets/postgres/app_sql_user"`
				VaultUsernameKey string `default:"username"`
				VaultPasswordKey string `default:"password"`
			}
		}
		ListUserQuery string `default:"SELECT email, id FROM sam_user"`
	}
}

func ConfigWithAgoraData

func ConfigWithAgoraData(thelma app.ThelmaApp) (Config, error)

func ConfigWithBasicDefaults

func ConfigWithBasicDefaults(thelma app.ThelmaApp) (Config, error)

func ConfigWithTestUsers

func ConfigWithTestUsers(thelma app.ThelmaApp) (Config, error)

type TestUser

type TestUser struct {
	Role      string
	FirstName string
	LastName  string
	Email     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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