setup

package
v0.2.40 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigHome added in v0.0.229

func GetConfigHome() string

GetConfigHome returns the home dir

func GitCredentialsFile added in v0.0.169

func GitCredentialsFile() string

GitCredentialsFile returns the location of the git credentials file

func InGitHubActions added in v0.0.522

func InGitHubActions() bool

InGitHubActions returns true if we are running inside a github action

func IsInCluster

func IsInCluster() bool

IsInCluster tells if we are running incluster

Types

type Options

type Options struct {
	Dir                  string
	UserName             string
	UserEmail            string
	Password             string
	OutputFile           string
	Namespace            string
	OperatorNamespace    string
	SecretName           string
	GitURL               string
	GitProviderURL       string
	GitInitCommands      string
	DisableInClusterTest bool
	KubeClient           kubernetes.Interface
	CommandRunner        cmdrunner.CommandRunner
	// contains filtered or unexported fields
}

Options the options for the command

func NewCmdGitSetup

func NewCmdGitSetup() (*cobra.Command, *Options)

NewCmdGitSetup creates a command object for the command

func (*Options) AddFlags added in v0.0.438

func (o *Options) AddFlags(cmd *cobra.Command)

AddFlags adds the command line flags

func (*Options) GitClient

func (o *Options) GitClient() gitclient.Interface

func (*Options) GitCredentialsFileData added in v0.0.169

func (o *Options) GitCredentialsFileData(credentials []credentialhelper.GitCredential) ([]byte, error)

GitCredentialsFileData takes the given git credentials and writes them into a byte array.

func (*Options) Run

func (o *Options) Run() error

Run implements the command

Jump to

Keyboard shortcuts

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