cli

package
v0.0.0-...-53678da Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToCreateUser  = errors.New("failed to create user")
	ErrFailedToCreateGroup = errors.New("failed to create group")
	ErrUserNotExists       = errors.New("user not exists")
	ErrFailedToAddKeys     = errors.New("failed to add keys")
)

Functions

func AddAuthorizedKeys

func AddAuthorizedKeys(ctx context.Context, login string, keys []string) error

func AddGroup

func AddGroup(ctx context.Context, group string) error

func AddUser

func AddUser(ctx context.Context, login string, group string) error

func AddUsers

func AddUsers(ctx context.Context, users []string, group string) error

func GroupExists

func GroupExists(ctx context.Context, group string) bool

func UserExists

func UserExists(ctx context.Context, user string) bool

func UserHomeDir

func UserHomeDir(login string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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