MCPcopy
hub / github.com/dagger/dagger / httpServiceAuth

Function httpServiceAuth

core/integration/services_test.go:2373–2375  ·  view source on GitHub ↗
(ctx context.Context, t testing.TB, c *dagger.Client, content string, username string, token *dagger.Secret)

Source from the content-addressed store, hash-verified

2371}
2372
2373func httpServiceAuth(ctx context.Context, t testing.TB, c *dagger.Client, content string, username string, token *dagger.Secret) (*dagger.Service, string) {
2374 return httpServiceDirAuth(ctx, t, c, "", c.Directory().WithNewFile("index.html", content), username, token)
2375}
2376
2377func httpServiceDirAuth(ctx context.Context, t testing.TB, c *dagger.Client, hostname string, dir *dagger.Directory, username string, token *dagger.Secret) (*dagger.Service, string) {
2378 t.Helper()

Callers 2

httpServiceFunction · 0.85
TestHTTPAuthMethod · 0.85

Calls 3

httpServiceDirAuthFunction · 0.85
DirectoryMethod · 0.65
WithNewFileMethod · 0.45

Tested by

no test coverage detected