MCPcopy Create free account
hub / github.com/devspace-sh/devspace / RestartContainer

Method RestartContainer

helper/server/upstream.go:99–106  ·  view source on GitHub ↗

RestartContainer implements the server

(context.Context, *remote.Empty)

Source from the content-addressed store, hash-verified

97
98// RestartContainer implements the server
99func (u *Upstream) RestartContainer(context.Context, *remote.Empty) (*remote.Empty, error) {
100 err := util.NewContainerRestarter().RestartContainer()
101 if err != nil {
102 return nil, err
103 }
104
105 return &remote.Empty{}, nil
106}
107
108// Remove implements the server
109func (u *Upstream) Remove(stream remote.Upstream_RemoveServer) error {

Callers

nothing calls this directly

Calls 2

NewContainerRestarterFunction · 0.92
RestartContainerMethod · 0.65

Tested by

no test coverage detected