interfaces

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowserManager

type BrowserManager interface {
	OpenURL(url string) error
}

type GitHubManager

type GitHubManager interface {
	GetAuthenticatedUser(accessToken string) (*cliGitHub.AuthenticatedUser, error)
	DoesRepositoryExist(accessToken, repositoryOwner, repositoryName string) (bool, error)

	CreateSSHKey(accessToken, keyPairName, publicKeyContent string) (*github.Key, error)
	RemoveSSHKey(accessToken string, sshKeyID int64) error

	IsNotFoundError(err error) bool
}

type Logger

type Logger interface {
	Info(format string, v ...interface{})
	Warning(format string, v ...interface{})
	Error(format string, v ...interface{})
	Log(format string, v ...interface{})
	LogNoNewline(format string, v ...interface{})
	Write(p []byte) (n int, err error)
}

type SSHConfigManager

type SSHConfigManager interface {
	AddOrReplaceHost(hostKey, hostName, identityFile, user string, port int64) error
	UpdateHost(hostKey string, hostName, identityFile, user *string) error
	RemoveHostIfExists(hostKey string) error
	CountEntriesWithHostPrefix(hostPrefix string) (int, error)
}

type SSHKeysManager

type SSHKeysManager interface {
	CreateOrReplacePEM(PEMName, PEMContent string) (string, error)
	RemovePEMIfExists(PEMPath string) error
	GetPEMFilePath(PEMName string) string
}

type SSHKnownHostsManager

type SSHKnownHostsManager interface {
	RemoveIfExists(hostname string) error
	AddOrReplace(hostname, algorithm, fingerprint string) error
}

type Sleeper

type Sleeper interface {
	Sleep(d time.Duration)
}

type UserConfigManager

type UserConfigManager interface {
	GetString(key config.UserConfigKey) string
	GetBool(key config.UserConfigKey) bool
	Set(key config.UserConfigKey, value interface{})
	WriteConfig() error
	PopulateFromGitHubUser(githubUser *github.AuthenticatedUser)
}

type VSCodeExtensionsManager

type VSCodeExtensionsManager interface {
	Install(extensionName string) (cmdOutput string, cmdError error)
}

type VSCodeProcessManager

type VSCodeProcessManager interface {
	OpenOnRemote(hostKey, pathToOpen string) (cmdOutput string, cmdError error)
}

Jump to

Keyboard shortcuts

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