pkg

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitTag    = ""
	GitCommit = ""
)

Functions

func Pointer added in v1.0.7

func Pointer[T interface{}](item T) *T

func WipeDir added in v1.5.1

func WipeDir(dir string)

Types

type CommitState added in v1.1.1

type CommitState uint8

CommitState is an enum for represnting the state of a commit for posting via CommitStatus

const (
	StateNone CommitState = iota
	StateSkip
	StateSuccess
	StateRunning
	StateWarning
	StateFailure
	StateError
	StatePanic
)

must be in order of best to worst, in order for WorstState to work

func BestState added in v1.5.1

func BestState(l1, l2 CommitState) CommitState

func ParseCommitState added in v1.5.1

func ParseCommitState(s string) (CommitState, error)

func WorstState added in v1.1.1

func WorstState(l1, l2 CommitState) CommitState

func (CommitState) BareString added in v1.1.1

func (s CommitState) BareString() string

type RepoURL added in v1.5.0

type RepoURL struct {
	Host, Path string
}

func NormalizeRepoUrl added in v1.5.0

func NormalizeRepoUrl(s string) (RepoURL, url.Values, error)

func (RepoURL) CloneURL added in v1.5.0

func (r RepoURL) CloneURL(username string) string

Jump to

Keyboard shortcuts

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