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

Method Logs

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

Source from the content-addressed store, hash-verified

683}
684
685func (c *SpaceComponent) Logs(ctx context.Context, namespace, name string) (*deploy.MultiLogReader, error) {
686 s, err := c.ss.FindByPath(ctx, namespace, name)
687 if err != nil {
688 return nil, fmt.Errorf("can't find space by path:%w", err)
689 }
690 return c.deployer.Logs(ctx, types.DeployRepo{
691 SpaceID: s.ID,
692 Namespace: namespace,
693 Name: name,
694 })
695}
696
697// HasEntryFile checks whether space repo has entry point file to run with
698func (c *SpaceComponent) HasEntryFile(ctx context.Context, space *database.Space) bool {

Callers

nothing calls this directly

Calls 2

LogsMethod · 0.65
FindByPathMethod · 0.45

Tested by

no test coverage detected