MCPcopy Create free account
hub / github.com/OpenCSGs/csghub-server / Status

Method Status

component/space.go:677–683  ·  view source on GitHub ↗
(ctx context.Context, namespace, name string)

Source from the content-addressed store, hash-verified

675}
676
677func (c *SpaceComponent) Status(ctx context.Context, namespace, name string) (string, string, error) {
678 s, err := c.ss.FindByPath(ctx, namespace, name)
679 if err != nil {
680 return "", SpaceStatusStopped, fmt.Errorf("can't find space by path:%w", err)
681 }
682 return c.status(ctx, s)
683}
684
685func (c *SpaceComponent) Logs(ctx context.Context, namespace, name string) (*deploy.MultiLogReader, error) {
686 s, err := c.ss.FindByPath(ctx, namespace, name)

Callers

nothing calls this directly

Calls 2

statusMethod · 0.95
FindByPathMethod · 0.45

Tested by

no test coverage detected