Documentation ¶
Index ¶
- Constants
- func AddChecksumExt(path string) (string, bool)
- func AddFilesToRelease(repo string, tag string, dir string)
- func AppendDataPath(data []byte, path string) string
- func BuildAll(pkg string, name string, binDir string) error
- func BuildClient(pkg string, name string, binDir string) error
- func BuildRuntime(pkg string, name string, binDir string) error
- func ConfigureGitBot()
- func GenerateChecksum(data io.Reader, path string) (string, error)
- func GenerateMixinFeed()
- func GeneratePluginFeed()
- func PrepareMixinForPublish(mixin string)
- func PreparePluginForPublish(plugin string)
- func PublishMixin(mixin string)
- func PublishMixinFeed(mixin string)
- func PublishPlugin(plugin string)
- func PublishPluginFeed(plugin string)
- func XBuild(pkg string, name string, binDir string, goos string, goarch string) error
- func XBuildAll(pkg string, name string, binDir string)
- type GitMetadata
Constants ¶
View Source
const ( ReleaseRepository = "PORTER_RELEASE_REPOSITORY" PackagesRemote = "PORTER_PACKAGES_REMOTE" )
Variables ¶
This section is empty.
Functions ¶
func AddChecksumExt ¶
func AddFilesToRelease ¶
AddFilesToRelease uploads the files in the specified directory to a GitHub release. If the release does not exist already, it will be created with empty release notes.
func AppendDataPath ¶
func GenerateMixinFeed ¶
func GenerateMixinFeed()
Generate a mixin feed from any mixin versions in bin/mixins.
func GeneratePluginFeed ¶
func GeneratePluginFeed()
Generate a plugin feed from any plugin versions in bin/plugins.
func PrepareMixinForPublish ¶
func PrepareMixinForPublish(mixin string)
Prepares bin directory for publishing a mixin
func PreparePluginForPublish ¶
func PreparePluginForPublish(plugin string)
Prepares bin directory for publishing a plugin
func PublishMixinFeed ¶
func PublishMixinFeed(mixin string)
Generate an updated mixin feed and publishes it.
func PublishPluginFeed ¶
func PublishPluginFeed(plugin string)
Generate an updated plugin feed and publishes it.
Types ¶
type GitMetadata ¶
type GitMetadata struct { // Permalink is the version alias, e.g. latest, or canary Permalink string // Version is the tag or tag+commit hash Version string // Commit is the hash of the current commit Commit string // IsTaggedRelease indicates if the build is for a versioned tag IsTaggedRelease bool }
func LoadMetadata ¶
func LoadMetadata() GitMetadata
LoadMetadata populates the status of the current working copy: current version, tag and permalink
func (GitMetadata) ShouldPublishPermalink ¶
func (m GitMetadata) ShouldPublishPermalink() bool
Click to show internal directories.
Click to hide internal directories.