sshkeys

package
v0.0.0-...-93e21f3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: BSD-3-Clause Imports: 9 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 {
	server.NoAccess
	server.AccessConfig
	// contains filtered or unexported fields
}

AuthorizedKeys authorizes access for the supported (ssh-ed25519) public keys found in an SSH authorized_keys file.

Request signatures must be verified separately by an API layer (e.g. package gate.computer/gate/server/webserver).

func (*AuthorizedKeys) Authorize

func (ak *AuthorizedKeys) Authorize(ctx Context) (Context, error)

func (*AuthorizedKeys) AuthorizeInstance

func (ak *AuthorizedKeys) AuthorizeInstance(ctx Context, res *server.ResourcePolicy, inst *server.InstancePolicy) (Context, error)

func (*AuthorizedKeys) AuthorizeProgram

func (ak *AuthorizedKeys) AuthorizeProgram(ctx Context, res *server.ResourcePolicy, prog *server.ProgramPolicy) (Context, error)

func (*AuthorizedKeys) AuthorizeProgramInstance

func (ak *AuthorizedKeys) AuthorizeProgramInstance(ctx Context, res *server.ResourcePolicy, prog *server.ProgramPolicy, inst *server.InstancePolicy) (Context, error)

func (*AuthorizedKeys) AuthorizeProgramInstanceSource

func (ak *AuthorizedKeys) AuthorizeProgramInstanceSource(ctx Context, res *server.ResourcePolicy, prog *server.ProgramPolicy, inst *server.InstancePolicy, _ string) (Context, error)

func (*AuthorizedKeys) AuthorizeProgramSource

func (ak *AuthorizedKeys) AuthorizeProgramSource(ctx Context, res *server.ResourcePolicy, prog *server.ProgramPolicy, _ string) (Context, error)

func (*AuthorizedKeys) Parse

func (ak *AuthorizedKeys) Parse(uid string, text []byte) error

func (*AuthorizedKeys) ParseFile

func (ak *AuthorizedKeys) ParseFile(uid, filename string) error

Jump to

Keyboard shortcuts

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