Documentation ¶
Index ¶
- Constants
- type APIProxy
- type CompiledRemoteSchema
- type Config
- type Dependency
- type Extension
- type GitSource
- type RemoteSchema
- func (s RemoteSchema) Compile(ctx context.Context, cache map[string]*CompiledRemoteSchema, l *sync.RWMutex, ...) (*CompiledRemoteSchema, error)
- func (s *RemoteSchema) Dependencies() []*RemoteSchema
- func (s *RemoteSchema) Extensions() []*Extension
- func (s RemoteSchema) Generate(ctx context.Context, coreSchema string) (*filesystem.Filesystem, error)
- func (s RemoteSchema) Runtime(ctx context.Context, ext *Extension) (*filesystem.Filesystem, error)
- func (s *RemoteSchema) Scripts() []*Script
- type Script
Constants ¶
View Source
const (
DaggerSockName = "dagger-sock"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIProxy ¶
type APIProxy struct {
// contains filtered or unexported fields
}
func NewAPIProxy ¶
func (*APIProxy) CheckAgent ¶
func (p *APIProxy) CheckAgent(ctx context.Context, req *sshforward.CheckAgentRequest) (*sshforward.CheckAgentResponse, error)
func (*APIProxy) ForwardAgent ¶
func (p *APIProxy) ForwardAgent(stream sshforward.SSH_ForwardAgentServer) error
type CompiledRemoteSchema ¶
type CompiledRemoteSchema struct { RemoteSchema // contains filtered or unexported fields }
CompiledRemoteSchema is the compiled version of RemoteSchema where the SDK has built its input into an executable extension.
func (*CompiledRemoteSchema) Dependencies ¶
func (s *CompiledRemoteSchema) Dependencies() []router.ExecutableSchema
func (*CompiledRemoteSchema) Resolvers ¶
func (s *CompiledRemoteSchema) Resolvers() router.Resolvers
type Config ¶
type Config struct { Name string `yaml:"name"` Dependencies []*Dependency `yaml:"dependencies,omitempty"` Scripts []*Script `yaml:"scripts,omitempty"` Extensions []*Extension `yaml:"extensions,omitempty"` }
func ParseConfig ¶
type Dependency ¶
type RemoteSchema ¶
type RemoteSchema struct { router.LoadedSchema // contains filtered or unexported fields }
RemoteSchema holds the schema and other configuration of an extension, but has not yet been "compiled" with an SDK to an executable extension. This allows obtaining the extension metadata without necessarily being able to build it yet.
func Load ¶
func Load(ctx context.Context, gw bkgw.Client, platform specs.Platform, contextFS *filesystem.Filesystem, configPath string, sshAuthSockID string) (*RemoteSchema, error)
func (RemoteSchema) Compile ¶
func (s RemoteSchema) Compile(ctx context.Context, cache map[string]*CompiledRemoteSchema, l *sync.RWMutex, sf *singleflight.Group) (*CompiledRemoteSchema, error)
func (*RemoteSchema) Dependencies ¶
func (s *RemoteSchema) Dependencies() []*RemoteSchema
func (*RemoteSchema) Extensions ¶
func (s *RemoteSchema) Extensions() []*Extension
func (RemoteSchema) Generate ¶
func (s RemoteSchema) Generate(ctx context.Context, coreSchema string) (*filesystem.Filesystem, error)
return the project filesystem plus any generated code from the SDKs of the extensions and scripts in the project
func (RemoteSchema) Runtime ¶
func (s RemoteSchema) Runtime(ctx context.Context, ext *Extension) (*filesystem.Filesystem, error)
return the FS with the executable extension code, ready to be invoked by cloak
func (*RemoteSchema) Scripts ¶
func (s *RemoteSchema) Scripts() []*Script
Source Files ¶
Click to show internal directories.
Click to hide internal directories.