Documentation ¶
Index ¶
- Constants
- func ArgConcat(s ...string) string
- func ArgConcat2(s0 []string, s ...string) string
- func ArgConcat3(s0, s1 []string, s ...string) string
- func ArgsConcat(s ...string) string
- func CentOSInstall(software string) string
- func LinuxAddUser(username string) string
- func LinuxChmod(pri, filepath string) string
- func LinuxEcho(s ...string) string
- func LinuxHostNameCtl(hostname string) string
- func LinuxMkdir(dir string) string
- func LinuxServiceStart(service string) string
- func LinuxSetUserPassword(password string) string
- func LinuxTouch(filepath string) string
- func UbuntuInstall(software string) string
- type S3CredNamingPolicy
- type S3fsMount
- type UserHostConfig
Constants ¶
View Source
const ( CentOSUpdateUpgrade = "yum -y update && yum -y upgrade" CentOSServiceSSHStart = "service sshd start" )
CentOS Cmd
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 ( S3CredNamingGenAdmin = iota + 1 S3CredNamingGenUUID S3CredNamingGenRandomString15 S3CredNamingGenRandomString31 S3CredNamingGenRandomString63 S3CredNamingGenRandomString127 )
View Source
const ( UbuntuUpdateUpgrade = "apt-get -y update && apt-get -y upgrade" UbuntuServiceSSHStart = "service ssh start" )
Ubuntu Cmd
Variables ¶
This section is empty.
Functions ¶
func ArgConcat2 ¶
func ArgConcat3 ¶
func ArgsConcat ¶
func CentOSInstall ¶
func LinuxAddUser ¶
func LinuxChmod ¶
func LinuxHostNameCtl ¶
func LinuxMkdir ¶
func LinuxServiceStart ¶
func LinuxSetUserPassword ¶
func LinuxTouch ¶
func UbuntuInstall ¶
Types ¶
type S3CredNamingPolicy ¶
type S3fsMount ¶
type S3fsMount struct { // Minio AccessKey (short for [AccessKeyID:SecretAccessKey]) AccessKey string // Mount Directory in Linux MountDir string // Mount BucketName in Minio Cluster BucketName string // MinioAddr (short for Minio Address) MinioAddr string // +optional S3CredNamingPolicy }
type UserHostConfig ¶
Click to show internal directories.
Click to hide internal directories.