Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetRepositoryOriginByConfig = func(ctx common.Context, repoConfig *config.Repository) (Repository, error) { if repoConfig == nil { return nil, fmt.Errorf("missing required config value. name: repository") } if repoConfig.Local != nil && len(repoConfig.Local.Path) > 0 { logger.Debug("Using local anchorfiles repository") return local.NewLocalRepository(repoConfig.Local), nil } else if repoConfig.Remote != nil { logger.Debugf("Using remote anchorfiles repository") return remote.NewRemoteRepository(repoConfig.Remote), nil } return nil, fmt.Errorf("could not resolve anchorfiles local repository path or git tracked remote repository") }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.