builder

package
v0.0.0-...-09e5c4b Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Platform
	RevaVersion    string
	Tags           []string
	Plugins        []Plugin
	Replacement    []Replace
	TempFolder     string
	Debug          bool
	Log            *zerolog.Logger
	LeaveWorkspace bool
}

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, output string) error

type GithubTagRef

type GithubTagRef struct {
	Ref    string `json:"ref"`
	NodeID string `json:"node_id"`
	URL    string `json:"url"`
	Object struct {
		Sha  string `json:"sha"`
		Type string `json:"type"`
		URL  string `json:"url"`
	} `json:"object"`
}

type GoMod

type GoMod struct {
	Module struct {
		Path string `json:"Path"`
	} `json:"Module"`
	Go      string `json:"Go"`
	Require []struct {
		Path     string `json:"Path"`
		Version  string `json:"Version"`
		Indirect bool   `json:"Indirect,omitempty"`
	} `json:"Require"`
	Exclude any `json:"Exclude"`
	Replace []struct {
		Old struct {
			Path string `json:"Path"`
		} `json:"Old"`
		New struct {
			Path    string `json:"Path"`
			Version string `json:"Version"`
		} `json:"New"`
	} `json:"Replace"`
	Retract any `json:"Retract"`
}

type Module

type Module struct {
	Path      string    `json:"Path"`
	Version   string    `json:"Version"`
	Time      time.Time `json:"Time"`
	Indirect  bool      `json:"Indirect"`
	Dir       string    `json:"Dir"`
	GoMod     string    `json:"GoMod"`
	GoVersion string    `json:"GoVersion"`
}

type Platform

type Platform struct {
	OS   string
	Arch string
}

type Plugin

type Plugin struct {
	RepositoryPath string
	Version        string
}

func (Plugin) String

func (p Plugin) String() string

type Replace

type Replace struct {
	From      string
	To        string
	ToVersion string
}

func (Replace) Format

func (r Replace) Format() string

Format formats the replacement string to be valid with the go mod edit command.

func (Replace) String

func (r Replace) String() string

Jump to

Keyboard shortcuts

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