interfaces

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 4 Imported by: 0

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)

	CreateRepository(accessToken string, organization string, properties *github.Repository) (*github.Repository, error)
	DoesRepositoryExist(accessToken, repositoryOwner, repositoryName string) (bool, error)
	GetFileContentFromRepository(accessToken, repositoryOwner, repositoryName, filePath string) (string, error)

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

	CreateGPGKey(accessToken string, publicKeyContent string) (*github.GPGKey, error)
	RemoveGPGKey(accessToken string, gpgKeyID 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
}

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