Documentation
¶
Index ¶
- Variables
- func CreateBasicAuthHeaderValue(username, password string) string
- func CreatePrivateSSHKey(bitSize int) (privateKeyInPEM, authorizedKeys []byte, err error)
- func GeneratePrivateRSAKey(bitSize int) (*rsa.PrivateKey, error)
- func GetPublicKeyForServer(host string) (ssh.PublicKey, error)
- type HTTPConfig
- type Preparation
- type RepositoryConfig
- type SSHConfig
- type Server
- type Session
- func (s *Session) AddPublicKey(ctx context.Context, publicKeyBytes []byte) error
- func (s *Session) CreateFile(ctx context.Context, repoName, fileName, contents string) error
- func (s *Session) CreateRepo(ctx context.Context, repoName string) error
- func (s *Session) CreateTag(ctx context.Context, repoName, tagName string) error
- func (s *Session) GetRefs(ctx context.Context, repoName string) (map[string]string, error)
- func (s *Session) RemoveAllPublicKeys(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Git gitImpl
Functions ¶
func CreatePrivateSSHKey ¶
func GeneratePrivateRSAKey ¶
func GeneratePrivateRSAKey(bitSize int) (*rsa.PrivateKey, error)
Types ¶
type HTTPConfig ¶
type Preparation ¶
type Preparation struct {
Source RepositoryConfig
Destination RepositoryConfig
Server *Server
}
type RepositoryConfig ¶
type RepositoryConfig struct {
RepoName string
HTTP HTTPConfig
SSH SSHConfig
Session *Session
}
type Server ¶
type Server struct {
SSHHost string
SSHPort int
HTTPHost string
HTTPPort int
// contains filtered or unexported fields
}
func (*Server) CreateUser ¶
func (*Server) HTTPAddress ¶
func (*Server) NewSession ¶
func (*Server) SSHAddress ¶
type Session ¶
type Session struct {
Username string
// contains filtered or unexported fields
}
func (*Session) AddPublicKey ¶
func (*Session) CreateFile ¶
func (*Session) CreateRepo ¶
Click to show internal directories.
Click to hide internal directories.