MCPcopy Create free account
hub / github.com/dagger/dagger / MainClientCallerMetadata

Method MainClientCallerMetadata

engine/server/session.go:1943–1949  ·  view source on GitHub ↗

The Client metadata of the main client caller (i.e. the one who created the session, typically the CLI invoked by the user)

(ctx context.Context)

Source from the content-addressed store, hash-verified

1941// The Client metadata of the main client caller (i.e. the one who created the
1942// session, typically the CLI invoked by the user)
1943func (srv *Server) MainClientCallerMetadata(ctx context.Context) (*engine.ClientMetadata, error) {
1944 client, err := srv.clientFromContext(ctx)
1945 if err != nil {
1946 return nil, err
1947 }
1948 return srv.SpecificClientMetadata(ctx, client.daggerSession.mainClientCallerID)
1949}
1950
1951// The Client metadata of a specific client ID within the same session as the
1952// current client.

Callers

nothing calls this directly

Calls 2

clientFromContextMethod · 0.95

Tested by

no test coverage detected