{"modulePath":"github.com/recode-sh/cli","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package interfaces\n\n## Types\n\n```go\ntype BrowserManager interface {\n\tOpenURL(url string) error\n}\n```\n\n```go\ntype GitHubManager interface {\n\tGetAuthenticatedUser(accessToken string) (*cliGitHub.AuthenticatedUser, error)\n\n\tCreateRepository(accessToken string, organization string, properties *github.Repository) (*github.Repository, error)\n\tDoesRepositoryExist(accessToken, repositoryOwner, repositoryName string) (bool, error)\n\tGetFileContentFromRepository(accessToken, repositoryOwner, repositoryName, filePath string) (string, error)\n\n\tCreateSSHKey(accessToken string, keyPairName string, publicKeyContent string) (*github.Key, error)\n\tRemoveSSHKey(accessToken string, sshKeyID int64) error\n\n\tCreateGPGKey(accessToken string, publicKeyContent string) (*github.GPGKey, error)\n\tRemoveGPGKey(accessToken string, gpgKeyID int64) error\n\n\tIsNotFoundError(err error) bool\n}\n```\n\n```go\ntype Logger interface {\n\tInfo(format string, v ...interface{})\n\tWarning(format string, v ...interface{})\n\tError(format string, v ...interface{})\n\tLog(format string, v ...interface{})\n\tLogNoNewline(format string, v ...interface{})\n\tWrite(p []byte) (n int, err error)\n}\n```\n\n```go\ntype SSHConfigManager interface {\n\tAddOrReplaceHost(hostKey, hostName, identityFile, user string, port int64) error\n\tUpdateHost(hostKey string, hostName, identityFile, user *string) error\n\tRemoveHostIfExists(hostKey string) error\n}\n```\n\n```go\ntype SSHKeysManager interface {\n\tCreateOrReplacePEM(PEMName, PEMContent string) (string, error)\n\tRemovePEMIfExists(PEMPath string) error\n\tGetPEMFilePath(PEMName string) string\n}\n```\n\n```go\ntype SSHKnownHostsManager interface {\n\tRemoveIfExists(hostname string) error\n\tAddOrReplace(hostname, algorithm, fingerprint string) error\n}\n```\n\n```go\ntype Sleeper interface {\n\tSleep(d time.Duration)\n}\n```\n\n```go\ntype UserConfigManager interface {\n\tGetString(key config.UserConfigKey) string\n\tGetBool(key config.UserConfigKey) bool\n\tSet(key config.UserConfigKey, value interface{})\n\tWriteConfig() error\n\tPopulateFromGitHubUser(githubUser *github.AuthenticatedUser)\n}\n```\n\n```go\ntype VSCodeExtensionsManager interface {\n\tInstall(extensionName string) (cmdOutput string, cmdError error)\n}\n```\n\n```go\ntype VSCodeProcessManager interface {\n\tOpenOnRemote(hostKey, pathToOpen string) (cmdOutput string, cmdError error)\n}\n```\n\n","path":"github.com/recode-sh/cli/internal/interfaces","name":"interfaces","synopsis":"","isRedistributable":true}
