chaoshubops

package
v0.0.0-...-d4d4b81 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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) error

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

func GitSyncHandlerForProjects

func GitSyncHandlerForProjects(repoData model.CloningInput) error

GitSyncHandlerForProjects ...

Types

type ChaosHubConfig

type ChaosHubConfig struct {
	ProjectID     string
	RepositoryURL string
	RemoteName    string
	LocalCommit   string
	RemoteCommit  string
	HubName       string
	Branch        string
	IsPrivate     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) 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