MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / InstallCli

Method InstallCli

agent/app/service/database_redis.go:81–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81func (u *RedisService) InstallCli() error {
82 item := dto.ContainerOperate{
83 Name: "1Panel-redis-cli-tools",
84 Image: "redis:7.4.4",
85 Networks: []dto.ContainerNetwork{{Network: "1panel-network"}},
86 }
87 return NewIContainerService().ContainerCreate(item, false)
88}
89
90func (u *RedisService) ChangePassword(req dto.ChangeRedisPass) error {
91 if err := updateInstallInfoInDB("redis", req.Database, "password", req.Value); err != nil {

Callers

nothing calls this directly

Calls 2

NewIContainerServiceFunction · 0.85
ContainerCreateMethod · 0.65

Tested by

no test coverage detected