bumpver

package
v1.2.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorImageNotFound = errors.New("image not found")
)

Functions

func BumpFileImageVersion added in v1.1.5

func BumpFileImageVersion(logger *log.Logger, repo billy.Filesystem, path, image, tag string) error

func BumpRepoImageVersion

func BumpRepoImageVersion(logger *log.Logger, repo billy.Filesystem, path, image, tag string) error

func BumpYamlImageVersion

func BumpYamlImageVersion(yamlBytes []byte, image, tag string) (string, error)

func Execute

func Execute(logger *log.Logger, config *Config) error

Types

type Config

type Config struct {
	GitURL                  string `mapstructure:"git_url"`
	GitSSHKey               string `mapstructure:"git_ssh_key"`
	GitSSHSkipVerifyHostKey bool   `mapstructure:"git_ssh_skip_verify_host_key"`
	GitSSHKeyUser           string `mapstructure:"git_ssh_key_user"`
	GitSSHKeyPassword       string `mapstructure:"git_ssh_key_password"`
	GitCommitAuthor         string `mapstructure:"git_commit_author"`
	GitCommitEmail          string `mapstructure:"git_commit_email"`
	GitCloneDir             string `mapstructure:"git_clone_dir"`
	Path                    string `mapstructure:"path"`

	Image string `mapstructure:"image"`
	Tag   string `mapstructure:"tag"`
}

Jump to

Keyboard shortcuts

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