Documentation
¶
Index ¶
Constants ¶
View Source
const PRIVKEY_OPTION_NAME = "github.com/h4sh5/sshoq-privkey_auth"
View Source
const PUBKEY_OPTION_NAME = "github.com/h4sh5/sshoq-pubkey_auth"
Variables ¶
This section is empty.
Functions ¶
func NewAgentSigningMethod ¶
func NewAgentSigningMethod(agent agent.ExtendedAgent, key ssh.PublicKey) (*agentSigningMethod, error)
Types ¶
type PrivkeyAuthOption ¶
type PrivkeyAuthOption struct {
// contains filtered or unexported fields
}
func (*PrivkeyAuthOption) Filenames ¶
func (o *PrivkeyAuthOption) Filenames() []string
type PrivkeyFileAuthMethod ¶
type PrivkeyFileAuthMethod struct {
// contains filtered or unexported fields
}
func NewPrivkeyFileAuthMethod ¶
func NewPrivkeyFileAuthMethod(filename string) *PrivkeyFileAuthMethod
func (*PrivkeyFileAuthMethod) Filename ¶
func (m *PrivkeyFileAuthMethod) Filename() string
func (*PrivkeyFileAuthMethod) PrepareRequestForAuth ¶
func (m *PrivkeyFileAuthMethod) PrepareRequestForAuth(request *http.Request, sshAgent agent.ExtendedAgent, roundTripper *http3.RoundTripper, username string, conversation *ssh3.Conversation) error
PrepareRequestForAuth implements auth.ClientAuthMethod.
type PrivkeyOptionParser ¶
type PrivkeyOptionParser struct{}
func (*PrivkeyOptionParser) FlagName ¶
func (*PrivkeyOptionParser) FlagName() string
FlagName implements config.CLIOptionParser.
func (*PrivkeyOptionParser) IsBoolFlag ¶
func (*PrivkeyOptionParser) IsBoolFlag() bool
IsBoolFlag implements config.CLIOptionParser.
func (*PrivkeyOptionParser) OptionConfigName ¶
func (*PrivkeyOptionParser) OptionConfigName() string
OptionConfigName implements config.OptionParser.
func (*PrivkeyOptionParser) Parse ¶
func (*PrivkeyOptionParser) Parse(values []string) (config.Option, error)
Parse implements config.OptionParser.
func (*PrivkeyOptionParser) Usage ¶
func (*PrivkeyOptionParser) Usage() string
Usage implements config.CLIOptionParser.
type PubkeyAuthMethod ¶
func NewPubkeyAuthMethod ¶
func NewPubkeyAuthMethod(pubkey *agent.Key) *PubkeyAuthMethod
func (*PubkeyAuthMethod) PrepareRequestForAuth ¶
func (m *PubkeyAuthMethod) PrepareRequestForAuth(request *http.Request, sshAgent agent.ExtendedAgent, roundTripper *http3.RoundTripper, username string, conversation *ssh3.Conversation) error
PrepareRequestForAuth implements auth.ClientAuthMethod.
type PubkeyAuthOption ¶
type PubkeyAuthOption struct {
// contains filtered or unexported fields
}
func (*PubkeyAuthOption) Filenames ¶
func (o *PubkeyAuthOption) Filenames() []string
type PubkeyOptionParser ¶
type PubkeyOptionParser struct{}
func (*PubkeyOptionParser) FlagName ¶
func (*PubkeyOptionParser) FlagName() string
FlagName implements config.CLIOptionParser.
func (*PubkeyOptionParser) IsBoolFlag ¶
func (*PubkeyOptionParser) IsBoolFlag() bool
IsBoolFlag implements config.CLIOptionParser.
func (*PubkeyOptionParser) OptionConfigName ¶
func (*PubkeyOptionParser) OptionConfigName() string
OptionConfigName implements config.OptionParser.
func (*PubkeyOptionParser) Parse ¶
func (*PubkeyOptionParser) Parse(values []string) (config.Option, error)
Parse implements config.OptionParser.
func (*PubkeyOptionParser) Usage ¶
func (*PubkeyOptionParser) Usage() string
Usage implements config.CLIOptionParser.
Click to show internal directories.
Click to hide internal directories.