git

package
v0.0.0-...-696ba86 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommitChanges

func NewCommitChanges(log *logrus.Entry, stepName, repoURL string) executor.Step

func NewGitServer

func NewGitServer(cfg GitopsConfig, stepName string, deployments appsCli.DeploymentInterface, services coreclient.ServiceInterface, useProxy, istioEnabled bool) executor.Step

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewGitClient

func NewGitClient(repoURL string) Client

func (Client) PullRemote

func (c Client) PullRemote(filePath string) (string, error)

func (Client) ReplaceInRemoteFile

func (c Client) ReplaceInRemoteFile(filePath, oldValue, newValue string) error

func (Client) TryCloning

func (c Client) TryCloning() error

type GitServer

type GitServer struct {
	// contains filtered or unexported fields
}

func New

func New(c utils.Container, name string, image string, port int32, deployments appsclient.DeploymentInterface, services coreclient.ServiceInterface, istioEnabled bool) *GitServer

func (*GitServer) Create

func (gs *GitServer) Create() error

func (*GitServer) Delete

func (gs *GitServer) Delete() error

func (*GitServer) LogResource

func (gs *GitServer) LogResource() error

type GitopsConfig

type GitopsConfig struct {
	FnName               string
	RepoName             string
	GitServerImage       string
	GitServerServiceName string
	GitServerServicePort int32
	GitServerRepoName    string
	Toolbox              utils.Container
}

func NewGitopsConfig

func NewGitopsConfig(fnName, gitServerImage, gitServerRepoName string, toolbox utils.Container) (GitopsConfig, error)

func (*GitopsConfig) GetGitServerInClusterURL

func (c *GitopsConfig) GetGitServerInClusterURL() string

func (*GitopsConfig) GetGitServerURL

func (c *GitopsConfig) GetGitServerURL(useProxy bool) string

Jump to

Keyboard shortcuts

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