directory

package
v3.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Overview

Package directory defines the operations on remote instance directory.

Index

Constants

View Source
const (
	// TmpDir represents the tmp directory of the remote instance
	TmpDir = "/tmp/kubekey"
	// BinDir represents the bin directory of the remote instance
	BinDir = "/usr/local/bin"
	// KubeConfigDir represents the normal kubernetes data directory of the remote instance
	KubeConfigDir = "/etc/kubernetes"
	// KubeCertDir represents the normal kubernetes cert directory of the remote instance
	KubeCertDir = "/etc/kubernetes/pki"
	// KubeManifestDir represents the normal kubernetes manifest directory of the remote instance
	KubeManifestDir = "/etc/kubernetes/manifests"
	// KubeScriptDir represents the kubernetes manage tools scripts directory of the remote instance
	KubeScriptDir = "/usr/local/bin/kube-scripts"
	// KubeletFlexvolumesPluginsDir represents the kubernetes kubelet plugin volume directory of the remote instance
	KubeletFlexvolumesPluginsDir = "/usr/libexec/kubernetes/kubelet-plugins/volume/exec"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

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

func NewService

func NewService(sshClient ssh.Interface, path string, mode os.FileMode) *Service

NewService returns a new service given the remote instance directory client.

func (*Service) Chown

func (s *Service) Chown(user string) error

Chown wraps the linux command "chown <user> -R <path>".

func (*Service) Make

func (s *Service) Make() error

Make wraps the Linux command "mkdir -p -m <mode> <path>".

func (*Service) Remove

func (s *Service) Remove() error

Remove wraps the linux command "rm -rf <path>".

Jump to

Keyboard shortcuts

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