chaoshubops

package
v0.0.0-...-bcdb799 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPath = "/tmp/"

Variables

This section is empty.

Functions

func GenerateKeys

func GenerateKeys() (string, string, error)

GenerateKeys ...

func GetClonePath

func GetClonePath(c ChaosHubConfig) string

GetClonePath is used to construct path for Repository.

func GitClone

func GitClone(repoData model.CloningInput, projectID string) error

GitClone Trigger is responsible for setting off the go routine for git-op

func GitPlainOpen

func GitPlainOpen(repoPath string) error

func GitSyncDefaultHub

func GitSyncDefaultHub(repoData model.CloningInput) error

GitSyncDefaultHub ...

func GitSyncHandlerForProjects

func GitSyncHandlerForProjects(repoData model.CloningInput, projectID string) error

GitSyncHandlerForProjects ...

Types

type ChaosHubConfig

type ChaosHubConfig struct {
	ProjectID     string
	RepositoryURL string
	RemoteName    string
	LocalCommit   string
	RemoteCommit  string
	HubName       string
	Branch        string
	IsPrivate     bool
	IsDefault     bool
	UserName      *string
	Password      *string
	AuthType      model.AuthType
	Token         *string
	SSHPrivateKey *string
}

ChaosHubConfig is the config used for all git operations

func GitConfigConstruct

func GitConfigConstruct(repoData model.CloningInput, projectID string) ChaosHubConfig

GitConfigConstruct is used for constructing the gitconfig

func (ChaosHubConfig) GitPull

func (c ChaosHubConfig) GitPull() error

GitPull updates the repository in provided Path

Jump to

Keyboard shortcuts

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