cmd_args

package
v1.2.35 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 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 S3CredNamingPolicy

type S3CredNamingPolicy struct {
	// filename begin with .
	// for example: /etc/.s3_cred_xxx
	// default is NoHidden=false -> Hidden
	// +optional
	NoHidden bool

	// filename in linux max len is 255
	// +optional
	MaxLen int

	// name gen method
	// +optional
	GenMethod uint8
}

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
}

func (*S3fsMount) Args

func (s *S3fsMount) Args() string

type UserHostConfig

type UserHostConfig struct {
	HostName string
	UserName string
	Password string
}

Jump to

Keyboard shortcuts

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