cmd

package
v0.0.0-...-a297e19 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

Types

type Config

type Config struct {
	TrustedUserCAKeys        string
	AuthorizedPrincipalsFile string
	RevokeKeys               string
}

---- SSH Config ----

func NewConfig

func NewConfig(trustedUserCAKeys, authorizedPrincipalsFile, revokeKeys string) *Config

func (*Config) ReadFromFile

func (c *Config) ReadFromFile(r io.Reader) error

ReadFromFile reads the configuration from the given reader.

func (*Config) WriteToFile

func (c *Config) WriteToFile(w io.Writer) error

WriteToFile writes the configuration to the given writer.

Jump to

Keyboard shortcuts

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