project

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 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,
) ([]*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,
) (router.Resolvers, error)

func (*State) Runtime

func (p *State) Runtime(ctx context.Context, gw bkgw.Client, platform specs.Platform) (*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) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳