pkg

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const GithubRawUrl = "https://raw.githubusercontent.com/"
View Source
const GithubUrl = "github.com"

Variables

View Source
var ErrModfileNotFound = errors.New("no go.mod file in root of default branch of the repository")
View Source
var LatestInfoError = errors.New("LatestInfoError")

Functions

func CronMopher

func CronMopher(ctx context.Context, cronString string, config MopherConfig) error

func Mopher

func Mopher(config MopherConfig) error

func SendHttpPost

func SendHttpPost(endpoint string, message string) error

Types

type InverseIndexModRef

type InverseIndexModRef struct {
	UsesVersion     string
	UserModule      string
	SemanticVersion bool
}

type LatestCommitInfo

type LatestCommitInfo struct {
	MainHash  string
	DevHash   string
	LatestTag string
}

type MopherConfig

type MopherConfig struct {
	Writer         io.Writer
	Output         string //creates writer if none is set
	Org            string
	MaxConn        int
	Graph          string
	Verbose        bool
	Dep            string
	WarnUnsyncDev  bool
	PreOutputHook  PreOutputHookFunction
	OutputTemplate string
	OutputEncode   string
}

type Parsed

type Parsed struct {
	Repos   []*github.Repository
	Modules map[string]*modfile.File
	Inverse map[string][]InverseIndexModRef
	Latest  map[string]LatestCommitInfo
	// contains filtered or unexported fields
}

func LoadOrg

func LoadOrg(org string, maxConn int) (parsed *Parsed, err error)

func (*Parsed) GetRecommendedUpdateOrder

func (this *Parsed) GetRecommendedUpdateOrder() (result []string, err error)

func (*Parsed) PrintDependencyVersionWarnings

func (this *Parsed) PrintDependencyVersionWarnings() (deprecated []string, err error)

func (*Parsed) PrintDependents

func (this *Parsed) PrintDependents(dep string) error

func (*Parsed) PrintGoVersionWarnings

func (this *Parsed) PrintGoVersionWarnings() (deprecated []string, err error)

func (*Parsed) PrintUnsincBranches

func (this *Parsed) PrintUnsincBranches() (deprecated []string, err error)

func (*Parsed) PrintUpdateOrder

func (this *Parsed) PrintUpdateOrder(filter map[string]bool) error

func (*Parsed) PrintVersionWarningsForDependency

func (this *Parsed) PrintVersionWarningsForDependency(dep string) (dependent []string, err error)

func (*Parsed) PrintWarnings

func (this *Parsed) PrintWarnings(warnUnsyncDev bool) error

func (*Parsed) PrintWrongModuleNameWarnings

func (this *Parsed) PrintWrongModuleNameWarnings() (deprecated []string, err error)

func (*Parsed) SetOutput

func (this *Parsed) SetOutput(output io.Writer)

func (*Parsed) StoreGraph

func (this *Parsed) StoreGraph(outputFile string, verbose bool) error

type PreOutputHookFunction

type PreOutputHookFunction = func(warnings string) (changedWarnings string, shouldBeWritenToOutput bool)

func GetDistinctHook

func GetDistinctHook() PreOutputHookFunction

type TagResult

type TagResult struct {
	Results []TagStruct `json:"results"`
}

type TagStruct

type TagStruct struct {
	Name string `json:"name"`
}

type TextNode

type TextNode struct {
	Id   int64
	Text string
}

func NewTextNode

func NewTextNode(text string) *TextNode

func (*TextNode) ID

func (this *TextNode) ID() int64

type UpdateModeCommand added in v0.0.3

type UpdateModeCommand struct {
	Cmd  string
	Args []string
}

func RunUpdateMode added in v0.0.3

func RunUpdateMode(mod *modfile.File) (commands []UpdateModeCommand, err error)

type VersionUsageRef

type VersionUsageRef struct {
	Name    string
	Version string
}

Jump to

Keyboard shortcuts

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