Description
I have a dagger module that uses one custom type to define optional arguments, Is it possible to use that function from a dependant module?
Example
In module A i have something as follows:
type AssertOutputOpts struct {
ExpectedOutput *string
ExpectedError *string
ExpectedExitCode *int
DisableCache *bool
}
// Test a container output
func (m *DaggerStructureTest) AssertOutput(ctx context.Context, container *Container, options *AssertOutputOpts) (bool, error) {}
In module B I made dagger install <module A> to have it as a dependency. However the custom type generated created the properties as private so i cannot create a struct of such type:
// internal/dagger/dagger.gen.go
type DaggerStructureTestAssertOutputOpts struct {
query *querybuilder.Selection
disableCache *bool
expectedError *string
expectedExitCode *int
expectedOutput *string
id *DaggerStructureTestAssertOutputOptsID
}