control

package
v0.3.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TypeUsers     = "users"
	TypePorts     = "ports"
	TypePasswords = "passwords"
	TypeCaches    = "caches"
	TypeKeys      = "keys"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasController

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

func NewAliasController

func NewAliasController(targetIp string, configuration *config.MainConfig, alias string) *AliasController

func (*AliasController) ListAlias

func (ac *AliasController) ListAlias()

func (*AliasController) SetAlias

func (ac *AliasController) SetAlias()

func (*AliasController) UnsetAlias

func (ac *AliasController) UnsetAlias()

type CacheContent

type CacheContent struct {
	Ip       string `json:"ip"`
	Port     string `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	Alias    string `json:"alias"`
}

type CreateController

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

func NewCreateController

func NewCreateController(createType string, createContent string,
	configuration *config.MainConfig) *CreateController

func (CreateController) ExecuteCreate

func (cc CreateController) ExecuteCreate()

type DeleteController

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

func NewDeleteController

func NewDeleteController(deleteType string, deleteContent string,
	configuration *config.MainConfig) *DeleteController

func (DeleteController) ExecuteDelete

func (dc DeleteController) ExecuteDelete()

type GetController

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

func NewGetController

func NewGetController(getType string, getContent string,
	configuration *config.MainConfig) *GetController

func (GetController) ExecuteGet

func (gc GetController) ExecuteGet()

type PruneController

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

func NewPruneController

func NewPruneController(configuration *config.MainConfig, auto bool, timeout time.Duration,
	concurrency int) *PruneController

func (*PruneController) PruneCaches

func (pc *PruneController) PruneCaches()

type ScpController

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

func NewScpController

func NewScpController(source string, destination string, configuration *config.MainConfig) *ScpController

func (*ScpController) TryCopy

func (cc *ScpController) TryCopy(user string, concurrency int, recursive bool, sshTimeout time.Duration)

TryCopy Functional entrance

type SshController

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

func NewSshController

func NewSshController(targetIp string, configuration *config.MainConfig) *SshController

func (*SshController) TryLogin

func (sc *SshController) TryLogin(user string, concurrency int, sshTimeout time.Duration)

TryLogin Functional entrance

Jump to

Keyboard shortcuts

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