types

package
v0.0.0-...-2e0ef96 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	True  = "true"
	False = "false"
)

Variables

This section is empty.

Functions

func AuthorizedKeysToFile

func AuthorizedKeysToFile(file *os.File, keys []AuthorizedKey) error

func NormalizeBoolString

func NormalizeBoolString(boolString string) string

func NormalizeSSHPublicKey

func NormalizeSSHPublicKey(keyAsString string) (string, error)

func TemplateBoolString

func TemplateBoolString() string

func TestBoolString

func TestBoolString(boolString string, toleratesEmptyFields bool) error

func TestSSHPublicKey

func TestSSHPublicKey(keyAsString string) error

Types

type AuthorizedKey

type AuthorizedKey struct {
	Key     string
	Options []string
	Comment string
}

func AuthorizedKeysFromFile

func AuthorizedKeysFromFile(file *os.File) ([]AuthorizedKey, error)

func (*AuthorizedKey) Copy

func (key *AuthorizedKey) Copy() (*AuthorizedKey, error)

func (*AuthorizedKey) FromBlock

func (key *AuthorizedKey) FromBlock(block []byte) ([]byte, error)

func (*AuthorizedKey) FromString

func (key *AuthorizedKey) FromString(stringIn string) error

func (*AuthorizedKey) Normalize

func (key *AuthorizedKey) Normalize() error

func (*AuthorizedKey) String

func (key *AuthorizedKey) String() string

func (*AuthorizedKey) Test

func (key *AuthorizedKey) Test() error

Jump to

Keyboard shortcuts

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