cmd_args

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LinuxTerminalAlwaysOpen   = "tail -f /dev/null"
	LinuxPermitSSHLoginByRoot = "sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config"
)

Linux Cmd

View Source
const (
	UbuntuUpdateUpgrade   = "apt-get -y update && apt-get -y upgrade"
	UbuntuServiceSSHStart = "service ssh start"
)

Ubuntu Cmd

View Source
const (
	CentOSUpdateUpgrade   = "yum -y update && yum -y upgrade"
	CentOSServiceSSHStart = "service sshd start"
)

CentOS Cmd

Variables

This section is empty.

Functions

func ArgConcat

func ArgConcat(s ...string) string

func ArgConcat2

func ArgConcat2(s0 []string, s ...string) string

func ArgConcat3

func ArgConcat3(s0, s1 []string, s ...string) string

func ArgsConcat

func ArgsConcat(s ...string) string

func CentOSInstall

func CentOSInstall(software string) string

func LinuxAddUser

func LinuxAddUser(username string) string

func LinuxChmod

func LinuxChmod(pri, filepath string) string

func LinuxEcho

func LinuxEcho(s ...string) string

func LinuxHostNameCtl

func LinuxHostNameCtl(hostname string) string

func LinuxMkdir

func LinuxMkdir(dir string) string

func LinuxServiceStart

func LinuxServiceStart(service string) string

func LinuxSetUserPassword

func LinuxSetUserPassword(password string) string

func LinuxTouch

func LinuxTouch(filepath string) string

func UbuntuInstall

func UbuntuInstall(software string) string

Types

type S3fsMount

type S3fsMount struct {
	Key        string
	Dir        string
	BucketName string
	MinioAddr  string
}

func (*S3fsMount) Args

func (s *S3fsMount) Args() string

Jump to

Keyboard shortcuts

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