Documentation ¶
Index ¶
- type AuthorizedKeys
- func (ak *AuthorizedKeys) Authorize(ctx Context) (Context, error)
- func (ak *AuthorizedKeys) AuthorizeInstance(ctx Context, res *server.ResourcePolicy, inst *server.InstancePolicy) (Context, error)
- func (ak *AuthorizedKeys) AuthorizeProgram(ctx Context, res *server.ResourcePolicy, prog *server.ProgramPolicy) (Context, error)
- func (ak *AuthorizedKeys) AuthorizeProgramInstance(ctx Context, res *server.ResourcePolicy, prog *server.ProgramPolicy, ...) (Context, error)
- func (ak *AuthorizedKeys) AuthorizeProgramInstanceSource(ctx Context, res *server.ResourcePolicy, prog *server.ProgramPolicy, ...) (Context, error)
- func (ak *AuthorizedKeys) AuthorizeProgramSource(ctx Context, res *server.ResourcePolicy, prog *server.ProgramPolicy, _ string) (Context, error)
- func (ak *AuthorizedKeys) Parse(uid string, text []byte) error
- func (ak *AuthorizedKeys) ParseFile(uid, filename string) error
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) ParseFile ¶
func (ak *AuthorizedKeys) ParseFile(uid, filename string) error
Click to show internal directories.
Click to hide internal directories.