versioning

package
v0.0.0-...-1b0671e Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2016 Capital One Services, LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-Copyright: Copyright (c) Capital One Services, LLC SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-Copyright: Copyright (c) Capital One Services, LLC SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	VERSION_PROPS = "version.properties"
	BUILD_PROPS   = "build.properties"
)

Variables

This section is empty.

Functions

func GetBranch

func GetBranch() string

func GitHash

func GitHash() string

func GitLatestTag

func GitLatestTag() string

func MustSh

func MustSh(name string, arg ...string) string

func Sh

func Sh(name string, arg ...string) (string, error)

Types

type Version

type Version struct {
	semver.Version
	// contains filtered or unexported fields
}

func LoadVersion

func LoadVersion() *Version

func LoadVersionProps

func LoadVersionProps(filename string) *Version

func New

func New(version string) *Version

func (*Version) BumpMajor

func (v *Version) BumpMajor() string

func (*Version) BumpMinor

func (v *Version) BumpMinor() string

func (*Version) BumpPatch

func (v *Version) BumpPatch() string

func (*Version) String

func (v *Version) String() string

func (*Version) ToPropString

func (v *Version) ToPropString() string

func (*Version) WriteVersion

func (v *Version) WriteVersion()

func (*Version) WriteVersionProps

func (v *Version) WriteVersionProps(filename string)

Jump to

Keyboard shortcuts

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