user

package
v3.1.0-rc.0-20240516-1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package user defines the user operations on the remote instance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	SSHClient ssh.Interface
	Name      string
	Desc      string
}

Service holds a collection of interfaces. The interfaces are broken down like this to group functions together.

func NewService

func NewService(sshClient ssh.Interface, name, desc string) *Service

NewService returns a new service given the remote instance Linux user.

func (*Service) Add

func (s *Service) Add() error

Add adds a new Linux user to the remote instance.

Jump to

Keyboard shortcuts

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