project

package
v0.0.0-...-5f03148 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

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 NewAPIProxy(router *router.Router) *APIProxy

func (*APIProxy) CheckAgent

func (*APIProxy) ForwardAgent

func (p *APIProxy) ForwardAgent(stream sshforward.SSH_ForwardAgentServer) error

func (*APIProxy) Register

func (p *APIProxy) Register(server *grpc.Server)

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

func ParseConfig(data []byte) (*Config, error)

type Dependency

type Dependency struct {
	Local string     `yaml:"local,omitempty"`
	Git   *GitSource `yaml:"git,omitempty"`
}

type Extension

type Extension struct {
	Path string `yaml:"path"`
	SDK  string `yaml:"sdk"`

	// internal-only fields for tracking state
	Schema string `yaml:"-"`
}

type GitSource

type GitSource struct {
	Remote string `yaml:"remote,omitempty"`
	Ref    string `yaml:"ref,omitempty"`
	Path   string `yaml:"path,omitempty"`
}

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 (*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

type Script

type Script struct {
	Path string `yaml:"path"`
	SDK  string `yaml:"sdk"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL