Documentation ¶
Index ¶
- func InstallLibPam(l logger.Logger) error
- func InstallNssAutoUser(l logger.Logger) error
- func InstallNssAutoUserConf(path string, conf *NssConf) error
- func InstallPamSSHDFile(path string, l logger.Logger) error
- func InstallPamScript(path string, l logger.Logger) error
- func NewEnrollCommand(conf *config.Node) *cobra.Command
- func NewNodeCommand(common *config.Common) *cobra.Command
- func NewPollCommand(conf *config.Node) *cobra.Command
- func NewSystemdCommand() *cobra.Command
- func ParseSystemdTemplate(user, installPath, command string) (string, error)
- func ReadNssConf(conf *NssConf) ([]byte, error)
- func ReadSSHDContent(cafile, hostKey, hostCertificateFile string) ([]byte, error)
- type Machine
- type NodeModifier
- func WithAuthFlags(af *client.AuthFlags) NodeModifier
- func WithConfig(node *config.Node) NodeModifier
- func WithDialFunc(f func() (*grpc.ClientConn, error)) NodeModifier
- func WithIps(ips []string) NodeModifier
- func WithMachinistFlags(mods ...config.CommonModifier) NodeModifier
- func WithName(name string) NodeModifier
- func WithTags(tags []string) NodeModifier
- type NssConf
- type SystemdDConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallLibPam ¶
func InstallNssAutoUser ¶
InstallNssAutoUser will attempt to install nssAutoUser if it can. Requires root. If not run as root or if not on support operating system, it will error out.
func InstallNssAutoUserConf ¶
InstallNssAutoUserConf will read from the nssautouser.conf.gotmpl file, and output in /etc/nss-autouser.conf
func InstallPamSSHDFile ¶
Pam Installer Functions
func NewSystemdCommand ¶
func ParseSystemdTemplate ¶
func ReadNssConf ¶
func ReadSSHDContent ¶
Types ¶
type Machine ¶
type Machine struct { MachinistClient mpb.ControllerClient AuthClient apb.AuthClient Repeater *retry.Options Log logger.Logger // Dial func will override any existing options to connect DialFunc func() (*grpc.ClientConn, error) *config.Node }
func New ¶
func New(mods ...NodeModifier) (*Machine, error)
func (*Machine) BeginPolling ¶
func (*Machine) MachinistCommon ¶
type NodeModifier ¶
func WithAuthFlags ¶
func WithAuthFlags(af *client.AuthFlags) NodeModifier
func WithConfig ¶
func WithConfig(node *config.Node) NodeModifier
func WithDialFunc ¶
func WithDialFunc(f func() (*grpc.ClientConn, error)) NodeModifier
func WithIps ¶
func WithIps(ips []string) NodeModifier
func WithMachinistFlags ¶
func WithMachinistFlags(mods ...config.CommonModifier) NodeModifier
func WithName ¶
func WithName(name string) NodeModifier
func WithTags ¶
func WithTags(tags []string) NodeModifier
type SystemdDConfig ¶
Directories ¶
Path | Synopsis |
---|---|
Package assets is empty here because this package contains only embedded assets; having a source file here helps `go get -u ./...` to not error.
|
Package assets is empty here because this package contains only embedded assets; having a source file here helps `go get -u ./...` to not error. |
Click to show internal directories.
Click to hide internal directories.