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

Function NewInterface

dagql/interfaces.go:50–60  ·  view source on GitHub ↗

NewInterface creates a new Interface with the given name and description.

(name, description string)

Source from the content-addressed store, hash-verified

48
49// NewInterface creates a new Interface with the given name and description.
50func NewInterface(name, description string) *Interface {
51 return &Interface{
52 name: name,
53 description: description,
54 fields: make(map[string][]*InterfaceFieldSpec),
55 fieldsL: new(sync.Mutex),
56 relationsL: new(sync.RWMutex),
57 implementors: make(map[string]struct{}),
58 interfaces: make(map[string]*Interface),
59 }
60}
61
62// TypeName returns the name of the interface type.
63func (iface *Interface) TypeName() string {

Callers 4

TestInterfacesFunction · 0.92
InstallMethod · 0.92
installCoreInterfacesFunction · 0.92
NewServerFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestInterfacesFunction · 0.74