driver

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEncryptedKey = errors.New("private keys with passphrases are not supported")

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Bump() (string, error)
	Set(string) error
	Check(string) ([]string, error)
}

Driver operates the versioning

func FromSource

func FromSource(source resource.Source) (Driver, error)

FromSource returns driver based on source configuration

type GitDriver

type GitDriver struct {
	InitialVersion string

	URI           string
	Branch        string
	PrivateKey    string
	Username      string
	Password      string
	File          string
	GitUser       string
	Depth         string
	CommitMessage string

	Runner resource.Runner
}

GitDriver accesses git

func (*GitDriver) Bump

func (gd *GitDriver) Bump() (string, error)

Bump increments version and pushs

func (*GitDriver) Check

func (gd *GitDriver) Check(cursor string) ([]string, error)

Check checks new version

func (*GitDriver) Set

func (gd *GitDriver) Set(version string) error

Set pushs version, but does not increment

Jump to

Keyboard shortcuts

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