project

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionProxySockName = "dagger-session"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name       string               `json:"name"`
	Extensions map[string]Extension `json:"extensions,omitempty"`
	SDK        string               `json:"sdk,omitempty"`
}

type Extension

type Extension struct {
	Local *LocalExtension `json:"local,omitempty"`
	Git   *GitExtension   `json:"git,omitempty"`
}

type GitExtension

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

type LocalExtension

type LocalExtension struct {
	Path string `json:"path,omitempty"`
}

type SessionProxy added in v0.3.5

type SessionProxy struct {
	// contains filtered or unexported fields
}

func NewSessionProxy added in v0.3.5

func NewSessionProxy(router *router.Router) *SessionProxy

func (*SessionProxy) CheckAgent added in v0.3.5

func (*SessionProxy) ForwardAgent added in v0.3.5

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

func (*SessionProxy) Register added in v0.3.5

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

type State

type State struct {
	// contains filtered or unexported fields
}

func Load

func Load(
	ctx context.Context,
	workdir *core.Directory,
	configPath string,
	cache map[string]*State,
	cacheMu *sync.RWMutex,
	gw bkgw.Client,
) (*State, error)

func (*State) Extensions

func (p *State) Extensions(
	ctx context.Context,
	cache map[string]*State,
	cacheMu *sync.RWMutex,
	gw bkgw.Client,
	platform specs.Platform,
	sshAuthSockID string,
) ([]*State, error)

func (*State) Name

func (p *State) Name() string

func (*State) Resolvers

func (p *State) Resolvers(
	ctx context.Context,
	gw bkgw.Client,
	platform specs.Platform,
	sshAuthSockID string,
) (router.Resolvers, error)

func (*State) Runtime

func (p *State) Runtime(ctx context.Context, gw bkgw.Client, platform specs.Platform, sshAuthSockID string) (*core.Directory, error)

return the FS with the executable extension code, ready to be invoked by dagger

func (*State) SDK

func (p *State) SDK() string

func (*State) Schema

func (p *State) Schema(ctx context.Context, gw bkgw.Client, platform specs.Platform, sshAuthSockID string) (string, error)

Jump to

Keyboard shortcuts

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