filter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package filter contains the logic to filter the public keys. It offers additional restrictions on SSH certificates and SSH public keys.

Index

Constants

View Source
const EmbeddedPrefix = "embedded:"

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandFilter

type CommandFilter struct {
	// contains filtered or unexported fields
}

CommandFilter encapsulates the path and the logic to invoke the program that offers additional restrictions on public keys.

func NewCommandFilter

func NewCommandFilter(filterPath string) (*CommandFilter, error)

NewCommandFilter returns a command filter.

func (*CommandFilter) Filter

func (f *CommandFilter) Filter(input []byte) []byte

Filter invokes the filter program and returns the qualified keys.

type Doer

type Doer interface {
	// Filter filters the certificates.
	Filter([]byte) []byte
}

Doer is an interface implements Filter function.

type SudoFilterRegular

type SudoFilterRegular struct{}

SudoFilterRegular filters the certificates with SSHCA regular certificates.

func (*SudoFilterRegular) Filter

func (*SudoFilterRegular) Filter(input []byte) []byte

Filter filters the certificates with SSHCA regular certificates.

Jump to

Keyboard shortcuts

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