commandargs

package
v14.39.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AuthorizedKeys

type AuthorizedKeys struct {
	Arguments    []string
	ExpectedUser string
	ActualUser   string
	Key          string
}

func (*AuthorizedKeys) GetArguments

func (ak *AuthorizedKeys) GetArguments() []string

func (*AuthorizedKeys) Parse

func (ak *AuthorizedKeys) Parse() error

type AuthorizedPrincipals

type AuthorizedPrincipals struct {
	Arguments  []string
	KeyId      string
	Principals []string
}

func (*AuthorizedPrincipals) GetArguments

func (ap *AuthorizedPrincipals) GetArguments() []string

func (*AuthorizedPrincipals) Parse

func (ap *AuthorizedPrincipals) Parse() error

type CommandArgs

type CommandArgs interface {
	Parse() error
	GetArguments() []string
}

type CommandType

type CommandType string
const (
	Discover            CommandType = "discover"
	TwoFactorRecover    CommandType = "2fa_recovery_codes"
	TwoFactorVerify     CommandType = "2fa_verify"
	LfsAuthenticate     CommandType = "git-lfs-authenticate"
	LfsTransfer         CommandType = "git-lfs-transfer"
	ReceivePack         CommandType = "git-receive-pack"
	UploadPack          CommandType = "git-upload-pack"
	UploadArchive       CommandType = "git-upload-archive"
	PersonalAccessToken CommandType = "personal_access_token"
)

type Shell

type Shell struct {
	Arguments           []string
	GitlabUsername      string
	GitlabKeyId         string
	GitlabKrb5Principal string
	SshArgs             []string
	CommandType         CommandType
	Env                 sshenv.Env
}

func (*Shell) GetArguments

func (s *Shell) GetArguments() []string

func (*Shell) Parse

func (s *Shell) Parse() error

func (*Shell) ParseCommand

func (s *Shell) ParseCommand(commandString string) error

Jump to

Keyboard shortcuts

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