commandargs

package
v0.0.0-...-7d5229d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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
}

func Parse

func Parse(e *executable.Executable, arguments []string) (CommandArgs, error)

type CommandType

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

type GenericArgs

type GenericArgs struct {
	Arguments []string
}

func (*GenericArgs) GetArguments

func (b *GenericArgs) GetArguments() []string

func (*GenericArgs) Parse

func (b *GenericArgs) Parse() error

type Shell

type Shell struct {
	Arguments      []string
	GitlabUsername string
	GitlabKeyId    string
	SshArgs        []string
	CommandType    CommandType
}

func (*Shell) GetArguments

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

func (*Shell) Parse

func (s *Shell) Parse() error

Jump to

Keyboard shortcuts

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