utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitHubGlientForInstallation

func GitHubGlientForInstallation(ctx context.Context, baseURL *url.URL, appID, id int64, privateKey []byte) (*github.Client, error)

GitHubGlientForInstallation returns a github client for the installation

Types

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

Version is a semantic version.

func ModuleVersionVersion

func ModuleVersionVersion(mv *ent.ModuleVersion) Version

ModuleVersionVersion returns the Version of a ModuleVersion

func ParseVersion

func ParseVersion(version string) (Version, error)

ParseVersion takes a semantic version and returns a Version

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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