Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fallback ¶
type Fallback struct { StorageRaw json.RawMessage `json:"storage,omitempty" caddy:"namespace=caddy.storage inline_key=module"` // contains filtered or unexported fields }
Fallback will check if the signers exist in the storage, otherwise generate them. It is the default signer.
func (Fallback) CaddyModule ¶
func (f Fallback) CaddyModule() caddy.ModuleInfo
This method indicates that the type is a Caddy module. The returned ModuleInfo must have both a name and a constructor function. This method must not have any side-effects.
func (*Fallback) Configure ¶
func (f *Fallback) Configure(ctx session.Context, cfg internalcaddyssh.SignerAdder)
Configure adds the signers/hostkeys to the session
func (*Fallback) GoSSHSigner ¶
GoSSHSigner returns the collection of signing keys available in the storage
type Keyfile ¶
type Keyfile struct { // Path should be an acceptable URL, so for on-disk files // it should be `file:///path/to/file/on/disk` Path string `json:"path,omitempty"` Passphrase string `json:"passphrase,omitempty"` }
Keyfile is a holder of the path and passphrase of key files.
type Static ¶
type Static struct { Keys []Keyfile `json:"keys,omitempty"` // contains filtered or unexported fields }
Static is a session signer that uses pre-existing keys, which may be backed as files or retrievable via HTTP
func (Static) CaddyModule ¶
func (s Static) CaddyModule() caddy.ModuleInfo
This method indicates that the type is a Caddy module. The returned ModuleInfo must have both a name and a constructor function. This method must not have any side-effects.
func (*Static) Configure ¶
func (f *Static) Configure(ctx session.Context, cfg internalcaddyssh.SignerAdder)
Configure adds the signers/hostkeys to the session