Documentation ¶
Index ¶
- func WithDockerPath(path string) func(c *Config)
- func WithLinuxAmd64(c *Config)
- type Args
- type Client
- type Config
- type Delegation
- type Delegations
- type Dependency
- type Option
- type Service
- type Snapshot
- func (s *Snapshot) AppendMain(loc string)
- func (s *Snapshot) AppendMod(file *modfile.File)
- func (s *Snapshot) BaseDependencyURL(index int) string
- func (s *Snapshot) BaseModuleURL() string
- func (s *Snapshot) Env() []string
- func (s *Snapshot) GoRoot() string
- func (s *Snapshot) HomeURL() string
- func (s *Snapshot) MatchDependency(match *modfile.Replace) *Dependency
- func (s *Snapshot) PluginMainURL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDockerPath ¶
WithDockerPath creates docker path
func WithLinuxAmd64 ¶
func WithLinuxAmd64(c *Config)
WithLinuxAmd64 create linux amd docker delegation
Types ¶
type Client ¶
type Client struct { BaseURL string // contains filtered or unexported fields }
Client represetns a client
type Delegation ¶
Delegation represents a delegation
type Delegations ¶
type Delegations []*Delegation
Delegations represents delegation
func (Delegations) Match ¶
func (d Delegations) Match(runtime *build.Runtime) *Delegation
Match matches delegation with supplied runtime
type Dependency ¶ added in v0.6.0
type Dependency struct { Mod *modfile.File Parent string ParentSet bool BaseURL string OriginURL string }
Snapshot represent a plugin snapshot
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents builder service
type Snapshot ¶
type Snapshot struct { Created time.Time Spec *build.Spec build.GoBuild ModuleDestPath string ModuleBuildPath string ModFile *modfile.File BuildModPath string ModFiles []*modfile.File Mains []string BaseDir string TempDir string GoDir string GoPath string Dependencies []*Dependency // contains filtered or unexported fields }
Snapshot represent a plugin snapshot
func NewSnapshot ¶
NewSnapshot creates a snapshot
func (*Snapshot) AppendMain ¶
AppendMain append main files
func (*Snapshot) BaseDependencyURL ¶ added in v0.6.0
BaseDependencyURL returns baseDependency
func (*Snapshot) BaseModuleURL ¶ added in v0.6.0
BaseModuleURL returns base plugin url
func (*Snapshot) MatchDependency ¶ added in v0.6.0
func (s *Snapshot) MatchDependency(match *modfile.Replace) *Dependency
func (*Snapshot) PluginMainURL ¶
Click to show internal directories.
Click to hide internal directories.