SYMBOL INDEX (223 symbols across 32 files) FILE: cmd/sourced/cmd/compose.go type composeCmd (line 12) | type composeCmd struct type composeDownloadCmd (line 16) | type composeDownloadCmd struct method Execute (line 24) | func (c *composeDownloadCmd) Execute(args []string) error { type composeListCmd (line 40) | type composeListCmd struct method Execute (line 44) | func (c *composeListCmd) Execute(args []string) error { type composeSetDefaultCmd (line 67) | type composeSetDefaultCmd struct method Execute (line 75) | func (c *composeSetDefaultCmd) Execute(args []string) error { function init (line 103) | func init() { FILE: cmd/sourced/cmd/init.go type initCmd (line 19) | type initCmd struct type initLocalCmd (line 23) | type initLocalCmd struct method Execute (line 31) | func (c *initLocalCmd) Execute(args []string) error { method reposdirArg (line 54) | func (c *initLocalCmd) reposdirArg() (string, error) { type initOrgsCmd (line 77) | type initOrgsCmd struct method Execute (line 87) | func (c *initOrgsCmd) Execute(args []string) error { method orgsList (line 112) | func (c *initOrgsCmd) orgsList() []string { method validate (line 125) | func (c *initOrgsCmd) validate(orgs []string) error { function activate (line 148) | func activate(wdHandler *workdir.Handler, workdir *workdir.Workdir) error { type authTransport (line 161) | type authTransport struct method RoundTrip (line 165) | func (t *authTransport) RoundTrip(r *http.Request) (*http.Response, er... function init (line 170) | func init() { FILE: cmd/sourced/cmd/logs.go type logsCmd (line 9) | type logsCmd struct method Execute (line 18) | func (c *logsCmd) Execute(args []string) error { function init (line 32) | func init() { FILE: cmd/sourced/cmd/prune.go type pruneCmd (line 10) | type pruneCmd struct method Execute (line 17) | func (c *pruneCmd) Execute(args []string) error { method pruneActive (line 45) | func (c *pruneCmd) pruneActive(workdirHandler *workdir.Handler) error { function init (line 67) | func init() { FILE: cmd/sourced/cmd/restart.go type restartCmd (line 9) | type restartCmd struct method Execute (line 13) | func (c *restartCmd) Execute(args []string) error { function init (line 17) | func init() { FILE: cmd/sourced/cmd/root.go constant name (line 17) | name = "sourced" function Init (line 24) | func Init(v, build string) { type Command (line 42) | type Command struct function Execute (line 49) | func Execute() { function log (line 62) | func log(err error) { function printRed (line 95) | func printRed(message string) { FILE: cmd/sourced/cmd/sql.go type sqlCmd (line 12) | type sqlCmd struct method Execute (line 20) | func (c *sqlCmd) Execute(args []string) error { function init (line 33) | func init() { FILE: cmd/sourced/cmd/start.go type startCmd (line 10) | type startCmd struct method Execute (line 14) | func (c *startCmd) Execute(args []string) error { function init (line 23) | func init() { FILE: cmd/sourced/cmd/status.go type statusCmd (line 14) | type statusCmd struct type statusAllCmd (line 18) | type statusAllCmd struct method Execute (line 22) | func (c *statusAllCmd) Execute(args []string) error { type statusComponentsCmd (line 57) | type statusComponentsCmd struct method Execute (line 61) | func (c *statusComponentsCmd) Execute(args []string) error { function printComponentsCmd (line 65) | func printComponentsCmd() error { type statusWorkdirsCmd (line 69) | type statusWorkdirsCmd struct method Execute (line 73) | func (c *statusWorkdirsCmd) Execute(args []string) error { function printWorkdirsCmd (line 77) | func printWorkdirsCmd() error { type statusConfigCmd (line 105) | type statusConfigCmd struct method Execute (line 109) | func (c *statusConfigCmd) Execute(args []string) error { function printConfigCmd (line 118) | func printConfigCmd(path string) error { function isNotExist (line 129) | func isNotExist(err error) bool { type causer (line 141) | type causer interface function activeWorkdir (line 145) | func activeWorkdir() (string, error) { function init (line 159) | func init() { FILE: cmd/sourced/cmd/stop.go type stopCmd (line 9) | type stopCmd struct method Execute (line 13) | func (c *stopCmd) Execute(args []string) error { function init (line 17) | func init() { FILE: cmd/sourced/cmd/web.go constant containerName (line 21) | containerName = "sourced-ui" type webCmd (line 23) | type webCmd struct method Execute (line 27) | func (c *webCmd) Execute(args []string) error { function init (line 31) | func init() { function openUI (line 35) | func openUI(address string) error { function checkServiceStatus (line 58) | func checkServiceStatus(service string) error { function runMonitor (line 106) | func runMonitor(ch chan<- error) { function getContainerPublicAddress (line 125) | func getContainerPublicAddress(containerName, privatePort string) (strin... function OpenUI (line 149) | func OpenUI(timeout time.Duration) error { type spinner (line 184) | type spinner struct method Start (line 209) | func (s *spinner) Start() { method Stop (line 213) | func (s *spinner) Stop() { method printLoop (line 217) | func (s *spinner) printLoop() { function startSpinner (line 192) | func startSpinner(msg string) func() { FILE: cmd/sourced/compose/compose.go constant dockerComposeVersion (line 43) | dockerComposeVersion = "1.24.0" type Compose (line 50) | type Compose struct method Run (line 55) | func (c *Compose) Run(ctx context.Context, arg ...string) error { method RunWithIO (line 59) | func (c *Compose) RunWithIO(ctx context.Context, stdin io.Reader, function newCompose (line 81) | func newCompose() (*Compose, error) { function getOrInstallComposeBinary (line 114) | func getOrInstallComposeBinary() (string, error) { function getOrInstallComposeContainer (line 131) | func getOrInstallComposeContainer() (altPath string, err error) { function downloadCompose (line 164) | func downloadCompose(path string) error { function Run (line 172) | func Run(ctx context.Context, arg ...string) error { function RunWithIO (line 181) | func RunWithIO(ctx context.Context, stdin io.Reader, stdout, stderr io.W... function getDockerVersion (line 195) | func getDockerVersion() (*semver.Version, error) { function getDockerComposeVersion (line 227) | func getDockerComposeVersion(bin string) (*semver.Version, error) { FILE: cmd/sourced/compose/file/file.go constant orgName (line 26) | orgName = "src-d" constant repoName (line 27) | repoName = "sourced-ce" constant composeFileTmpl (line 28) | composeFileTmpl = "https://raw.githubusercontent.com/%s/%s/%s/docker-com... constant activeDir (line 35) | activeDir = "__active__" function composeFileURL (line 43) | func composeFileURL(revision string) string { function SetVersion (line 48) | func SetVersion(v string) { function InitDefault (line 56) | func InitDefault() (string, error) { function ActivateFromRemote (line 81) | func ActivateFromRemote(revOrURL RevOrURL) (err error) { function SetActive (line 110) | func SetActive(revOrURL RevOrURL) error { function Active (line 145) | func Active() (RevOrURL, error) { function List (line 170) | func List() ([]RevOrURL, error) { function composeName (line 203) | func composeName(rev string) string { function isURL (line 211) | func isURL(revOrURL RevOrURL) bool { function dir (line 217) | func dir() (string, error) { function path (line 228) | func path(revOrURL RevOrURL) (string, error) { FILE: cmd/sourced/compose/workdir/env_file_test.go function setResourceLimits (line 11) | func setResourceLimits(f *envFile) { constant localContent (line 17) | localContent = `COMPOSE_PROJECT_NAME=srcd-dir-name constant orgsContent (line 29) | orgsContent = `COMPOSE_PROJECT_NAME=srcd-dir-name constant emptyContent (line 41) | emptyContent = `COMPOSE_PROJECT_NAME= function TestEnvMarshal (line 53) | func TestEnvMarshal(t *testing.T) { function TestEnvUnmarshal (line 74) | func TestEnvUnmarshal(t *testing.T) { FILE: cmd/sourced/compose/workdir/factory.go function InitLocal (line 25) | func InitLocal(reposdir string) (*Workdir, error) { function InitOrgs (line 33) | func InitOrgs(orgs []string, token string, withForks bool) (*Workdir, er... function readEnvFile (line 54) | func readEnvFile(dirName string, subPath string, envf *envFile) error { function encodeDirName (line 69) | func encodeDirName(dirName string) string { function workdirPath (line 73) | func workdirPath(dirName string, subPath string) (string, error) { function initialize (line 87) | func initialize(dirName string, subPath string, envf envFile) (*Workdir,... type envFile (line 128) | type envFile struct method addResourceLimits (line 175) | func (f *envFile) addResourceLimits() { method MarshalEnv (line 219) | func (f envFile) MarshalEnv() ([]byte, error) { method UnmarshalEnv (line 257) | func (f *envFile) UnmarshalEnv(b []byte) error { function newLocalEnvFile (line 145) | func newLocalEnvFile(dirName, repoDir string) envFile { function newOrgEnvFile (line 157) | func newOrgEnvFile(dirName string, orgs []string, token string, withFork... function init (line 211) | func init() { function dockerNumCPU (line 326) | func dockerNumCPU() (int, error) { function dockerTotalMem (line 343) | func dockerTotalMem() (uint64, error) { FILE: cmd/sourced/compose/workdir/factory_test.go type FactorySuite (line 12) | type FactorySuite struct method BeforeTest (line 22) | func (s *FactorySuite) BeforeTest(suiteName, testName string) { method AfterTest (line 34) | func (s *FactorySuite) AfterTest(suiteName, testName string) { method TestInitLocal (line 39) | func (s *FactorySuite) TestInitLocal() { method TestInitOrgs (line 63) | func (s *FactorySuite) TestInitOrgs() { method TestReInitForksOrgs (line 91) | func (s *FactorySuite) TestReInitForksOrgs() { function TestFactorySuite (line 18) | func TestFactorySuite(t *testing.T) { FILE: cmd/sourced/compose/workdir/handler.go type Handler (line 16) | type Handler struct method SetActive (line 36) | func (h *Handler) SetActive(w *Workdir) error { method UnsetActive (line 52) | func (h *Handler) UnsetActive() error { method Active (line 67) | func (h *Handler) Active() (*Workdir, error) { method List (line 79) | func (h *Handler) List() ([]*Workdir, error) { method Validate (line 122) | func (h *Handler) Validate(w *Workdir) error { method Remove (line 143) | func (h *Handler) Remove(w *Workdir) error { method activeAbsolutePath (line 186) | func (h *Handler) activeAbsolutePath() string { function NewHandler (line 23) | func NewHandler() (*Handler, error) { FILE: cmd/sourced/compose/workdir/handler_test.go type HandlerSuite (line 12) | type HandlerSuite struct method BeforeTest (line 23) | func (s *HandlerSuite) BeforeTest(suiteName, testName string) { method AfterTest (line 38) | func (s *HandlerSuite) AfterTest(suiteName, testName string) { method TestSuccessFlow (line 44) | func (s *HandlerSuite) TestSuccessFlow() { method TestSetActiveOk (line 73) | func (s *HandlerSuite) TestSetActiveOk() { method TestSetActiveError (line 87) | func (s *HandlerSuite) TestSetActiveError() { method TestUnsetActiveOk (line 99) | func (s *HandlerSuite) TestUnsetActiveOk() { method TestUnsetActiveError (line 114) | func (s *HandlerSuite) TestUnsetActiveError() { method TestValidateError (line 124) | func (s *HandlerSuite) TestValidateError() { method TestListOk (line 146) | func (s *HandlerSuite) TestListOk() { method TestListError (line 175) | func (s *HandlerSuite) TestListError() { method TestRemoveOk (line 181) | func (s *HandlerSuite) TestRemoveOk() { method createWd (line 206) | func (s *HandlerSuite) createWd(name string) *Workdir { function TestHandlerSuite (line 19) | func TestHandlerSuite(t *testing.T) { FILE: cmd/sourced/compose/workdir/workdir.go constant activeDir (line 17) | activeDir = "__active__" type Type (line 31) | type Type constant None (line 35) | None Type = iota constant Local (line 37) | Local constant Orgs (line 39) | Orgs type Workdir (line 43) | type Workdir struct type builder (line 52) | type builder struct method Build (line 58) | func (b *builder) Build(path string) (*Workdir, error) { method workdirName (line 81) | func (b *builder) workdirName(wdType Type, path string) (string, error) { method typeFromPath (line 104) | func (b *builder) typeFromPath(path string) (Type, error) { function hasContent (line 120) | func hasContent(path, file string) bool { function isEmptyFile (line 127) | func isEmptyFile(path string) (bool, error) { function link (line 146) | func link(linkTargetPath, linkPath string) error { function workdirsPath (line 160) | func workdirsPath() (string, error) { FILE: cmd/sourced/compose/workdir/workdir_test.go function TestBuilder (line 11) | func TestBuilder(t *testing.T) { function TestIsEmptyFile (line 48) | func TestIsEmptyFile(t *testing.T) { FILE: cmd/sourced/dir/dir.go function Path (line 29) | func Path() (string, error) { function srcdPath (line 42) | func srcdPath() (string, error) { function Prepare (line 62) | func Prepare() error { function validate (line 81) | func validate(path string) error { function DownloadURL (line 105) | func DownloadURL(url, dst string) (err error) { function TmpPath (line 135) | func TmpPath() string { FILE: cmd/sourced/dir/dir_test.go function TestValidate (line 16) | func TestValidate(t *testing.T) { function TestPrepare (line 59) | func TestPrepare(t *testing.T) { function TestDownloadURL (line 89) | func TestDownloadURL(t *testing.T) { FILE: cmd/sourced/format/colors.go type Color (line 9) | type Color constant Red (line 13) | Red Color = "31" constant Yellow (line 15) | Yellow Color = "33" function Colorize (line 19) | func Colorize(color Color, s string) string { FILE: cmd/sourced/main.go function main (line 16) | func main() { function checkUpdates (line 25) | func checkUpdates() { FILE: cmd/sourced/release/release.go function FindUpdates (line 21) | func FindUpdates(current string) (update bool, latest string, err error) { FILE: cmd/sourced/release/release_test.go type testCase (line 16) | type testCase struct function TestFindUpdatesSuccess (line 23) | func TestFindUpdatesSuccess(t *testing.T) { function mockGithub (line 67) | func mockGithub(tag string) func() { type ghTransport (line 76) | type ghTransport struct method RoundTrip (line 80) | func (t *ghTransport) RoundTrip(*http.Request) (*http.Response, error) { FILE: test/commander.go type Commander (line 13) | type Commander struct method RunCmd (line 19) | func (s *Commander) RunCmd(args []string, cmdOperators ...icmd.CmdOp) ... method RunCommand (line 31) | func (s *Commander) RunCommand(args ...string) *icmd.Result { method RunCommandWithTimeout (line 36) | func (s *Commander) RunCommandWithTimeout(timeout time.Duration, args ... FILE: test/common.go function init (line 22) | func init() { type IntegrationSuite (line 28) | type IntegrationSuite struct method SetupTest (line 34) | func (s *IntegrationSuite) SetupTest() { method TearDownTest (line 64) | func (s *IntegrationSuite) TearDownTest() { method testSQL (line 79) | func (s *IntegrationSuite) testSQL() { FILE: test/compose_test.go type ComposeTestSuite (line 11) | type ComposeTestSuite struct method TestListComposeFiles (line 20) | func (s *ComposeTestSuite) TestListComposeFiles() { method TestSetComposeFile (line 25) | func (s *ComposeTestSuite) TestSetComposeFile() { method TestSetComposeFilIndexOutOfRange (line 33) | func (s *ComposeTestSuite) TestSetComposeFilIndexOutOfRange() { method TestSetComposeNotFound (line 38) | func (s *ComposeTestSuite) TestSetComposeNotFound() { method TestSetComposeFilesWithStringIndex (line 43) | func (s *ComposeTestSuite) TestSetComposeFilesWithStringIndex() { function TestComposeTestSuite (line 15) | func TestComposeTestSuite(t *testing.T) { FILE: test/init_local_test.go type InitLocalTestSuite (line 16) | type InitLocalTestSuite struct method TestWithInvalidWorkdir (line 25) | func (s *InitLocalTestSuite) TestWithInvalidWorkdir() { method TestChangeWorkdir (line 44) | func (s *InitLocalTestSuite) TestChangeWorkdir() { method initGitRepo (line 148) | func (s *InitLocalTestSuite) initGitRepo(path string) { function TestInitLocalTestSuite (line 20) | func TestInitLocalTestSuite(t *testing.T) { FILE: test/init_orgs_test.go type InitOrgsTestSuite (line 16) | type InitOrgsTestSuite struct method TestOneOrg (line 92) | func (s *InitOrgsTestSuite) TestOneOrg() { function TestInitOrgsTestSuite (line 20) | func TestInitOrgsTestSuite(t *testing.T) { function checkGhsync (line 31) | func checkGhsync(require *require.Assertions, repos int) { function checkGitcollector (line 62) | func checkGitcollector(require *require.Assertions, repos int) { FILE: test/superset.go type supersetClient (line 19) | type supersetClient struct method dashboards (line 66) | func (c *supersetClient) dashboards() ([]string, error) { method sql (line 91) | func (c *supersetClient) sql(query, dbId, schema string) ([]map[string... method gitbase (line 130) | func (c *supersetClient) gitbase(query string) ([]map[string]interface... method metadata (line 134) | func (c *supersetClient) metadata(query string) ([]map[string]interfac... method bblfsh (line 138) | func (c *supersetClient) bblfsh(filename, content string) (string, err... function newSupersetClient (line 24) | func newSupersetClient() (*supersetClient, error) {